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