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 -
Method Summary
Modifier and TypeMethodDescriptiongetEmail()getLogin()getName()getPhoto()voidsetArchived(Boolean archived) voidSets the email address of the person.voidSets the email URI of the person.voidsetFamilyName(String familyName) voidsetGivenName(String givenName) voidsetIdentifier(String identifier) voidvoidvoidMethods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
Constructor Details
-
Person
public Person()
-
-
Method Details
-
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
-
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
-
getGivenName
@OslcPropertyDefinition("http://xmlns.com/foaf/0.1/givenName") @OslcOccurs(ZeroOrOne) @OslcName("givenName") @OslcTitle("Given Name") @OslcValueType(String) public String getGivenName() -
setGivenName
-
getFamilyName
@OslcPropertyDefinition("http://xmlns.com/foaf/0.1/familyName") @OslcOccurs(ZeroOrOne) @OslcName("familyName") @OslcTitle("Family Name") @OslcValueType(String) public String getFamilyName() -
setFamilyName
-
getPhoto
@OslcPropertyDefinition("http://xmlns.com/foaf/0.1/img") @OslcName("img") @OslcTitle("Photo") public URI getPhoto() -
setPhoto
-
getLogin
@OslcPropertyDefinition("http://xmlns.com/foaf/0.1/nick") @OslcName("nick") @OslcTitle("Login") public String getLogin() -
setLogin
-
getEmail
@OslcPropertyDefinition("http://xmlns.com/foaf/0.1/mbox") @OslcName("mbox") @OslcTitle("Email") public URI getEmail() -
setEmail
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
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
-