Package com.sodius.oslc.core.model
Class Person
- java.lang.Object
-
- org.eclipse.lyo.oslc4j.core.model.AbstractResource
-
- com.sodius.oslc.core.model.Person
-
- All Implemented Interfaces:
IExtendedResource,IResource
@OslcNamespace("http://xmlns.com/foaf/0.1/") @OslcName("Person") @OslcResourceShape(title="FOAF Person Resource Shape", describes="http://xmlns.com/foaf/0.1/Person") public class Person extends AbstractResource
Represents people.See the FOAF Vocabulary specification for details:
http://xmlns.com/foaf/spec/- Since:
- 1.1.0
-
-
Constructor Summary
Constructors Constructor Description Person()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URIgetEmail()StringgetFamilyName()StringgetGivenName()StringgetIdentifier()StringgetLogin()StringgetName()URIgetPhoto()BooleanisArchived()voidsetArchived(Boolean archived)voidsetEmail(String email)Sets the email address of the person.voidsetEmail(URI email)Sets the email URI of the person.voidsetFamilyName(String familyName)voidsetGivenName(String givenName)voidsetIdentifier(String identifier)voidsetLogin(String login)voidsetName(String name)voidsetPhoto(URI photo)-
Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
-
-
-
Method Detail
-
getIdentifier
@OslcDescription("A unique identifier for a resource. Assigned by the service provider when a resource is created. Not intended for end-user display.") @OslcOccurs(ExactlyOne) @OslcPropertyDefinition("http://purl.org/dc/terms/identifier") @OslcName("identifier") @OslcTitle("Identifier") public String getIdentifier()
-
setIdentifier
public void setIdentifier(String identifier)
-
getName
@OslcDescription("A FOAF name ") @OslcPropertyDefinition("http://xmlns.com/foaf/0.1/name") @OslcOccurs(ZeroOrOne) @OslcName("name") @OslcTitle("Name") @OslcValueType(String) public String getName()
-
setName
public void setName(String name)
-
getGivenName
@OslcPropertyDefinition("http://xmlns.com/foaf/0.1/givenName") @OslcOccurs(ZeroOrOne) @OslcName("givenName") @OslcTitle("Given Name") @OslcValueType(String) public String getGivenName()
-
setGivenName
public void setGivenName(String givenName)
-
getFamilyName
@OslcPropertyDefinition("http://xmlns.com/foaf/0.1/familyName") @OslcOccurs(ZeroOrOne) @OslcName("familyName") @OslcTitle("Family Name") @OslcValueType(String) public String getFamilyName()
-
setFamilyName
public void setFamilyName(String familyName)
-
getPhoto
@OslcPropertyDefinition("http://xmlns.com/foaf/0.1/img") @OslcName("img") @OslcTitle("Photo") public URI getPhoto()
-
setPhoto
public void setPhoto(URI photo)
-
getLogin
@OslcPropertyDefinition("http://xmlns.com/foaf/0.1/nick") @OslcName("nick") @OslcTitle("Login") public String getLogin()
-
setLogin
public void setLogin(String login)
-
getEmail
@OslcPropertyDefinition("http://xmlns.com/foaf/0.1/mbox") @OslcName("mbox") @OslcTitle("Email") public URI getEmail()
-
setEmail
public void setEmail(String email)
Sets the email address of the person. This method callssetEmail(URI)using amailtoscheme. The email address is not expected to start with"mailto:", but this method gracefully handles this case.- Parameters:
email- the email address of the person, e.g.bob@mycompany.com- Throws:
IllegalArgumentException- if the email address violates RFC 2396 and cannot be transformed to a URI- See Also:
setEmail(URI)
-
setEmail
public void setEmail(URI email)
Sets the email URI of the person.- Parameters:
email- a mailto: URI scheme with the email address of the person- Since:
- 1.10.2
-
isArchived
@OslcPropertyDefinition("http://open-services.net/ns/core#archived") @OslcTitle("Archived") public Boolean isArchived()
-
setArchived
public void setArchived(Boolean archived)
-
-