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 ResourceShape
createResourceShape()
String
getFamilyName()
String
getGivenName()
String
getName()
void
setFamilyName(String familyName)
void
setGivenName(String givenName)
void
setName(String name)
String
toString()
String
toString(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:
getFamilyName
in 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:
getGivenName
in 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:
setFamilyName
in interfaceIPerson
-
setGivenName
public void setGivenName(String givenName)
- Specified by:
setGivenName
in interfaceIPerson
-
-