Package org.eclipse.lyo.oslc.domains
Class Person
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
org.eclipse.lyo.oslc.domains.Person
- All Implemented Interfaces:
IPerson,IExtendedResource,IResource
@OslcNamespace("http://xmlns.com/foaf/0.1/")
@OslcName("Person")
@OslcResourceShape(title="Person Shape",
describes="http://xmlns.com/foaf/0.1/Person")
public class Person
extends AbstractResource
implements IPerson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceShapegetName()voidsetFamilyName(String familyName) voidsetGivenName(String givenName) voidtoString()toString(boolean asLocalResource) Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
Constructor Details
-
Person
public Person() -
Person
-
-
Method Details
-
createResourceShape
public static ResourceShape createResourceShape() throws OslcCoreApplicationException, URISyntaxException -
toString
-
toString
-
getFamilyName
@OslcName("familyName") @OslcPropertyDefinition("http://xmlns.com/foaf/0.1/familyName") @OslcDescription("Family name of person expressed as simple text string.") @OslcOccurs(ExactlyOne) @OslcValueType(String) @OslcReadOnly(false) public String getFamilyName()- Specified by:
getFamilyNamein interfaceIPerson
-
getGivenName
@OslcName("givenName") @OslcPropertyDefinition("http://xmlns.com/foaf/0.1/givenName") @OslcDescription("Given name of person expressed as simple text string. ") @OslcOccurs(ExactlyOne) @OslcValueType(String) @OslcReadOnly(false) public String getGivenName()- Specified by:
getGivenNamein interfaceIPerson
-
getName
@OslcName("name") @OslcPropertyDefinition("http://xmlns.com/foaf/0.1/name") @OslcDescription("The full name of a person expressed as simple text string.") @OslcOccurs(ExactlyOne) @OslcValueType(String) @OslcReadOnly(false) public String getName() -
setFamilyName
- Specified by:
setFamilyNamein interfaceIPerson
-
setGivenName
- Specified by:
setGivenNamein interfaceIPerson
-
setName
-