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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResourceShapecreateResourceShape()StringgetFamilyName()StringgetGivenName()StringgetName()voidsetFamilyName(String familyName)voidsetGivenName(String givenName)voidsetName(String name)StringtoString()StringtoString(boolean asLocalResource)-
Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
-
-
-
Constructor Detail
-
Person
public Person()
-
Person
public Person(URI about)
-
-
Method Detail
-
createResourceShape
public static ResourceShape createResourceShape() throws OslcCoreApplicationException, URISyntaxException
-
toString
public String toString(boolean asLocalResource)
-
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
public void setFamilyName(String familyName)
- Specified by:
setFamilyNamein interfaceIPerson
-
setGivenName
public void setGivenName(String givenName)
- Specified by:
setGivenNamein interfaceIPerson
-
-