Class ResourceShape
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
org.eclipse.lyo.oslc4j.core.model.ResourceShape
- All Implemented Interfaces:
IExtendedResource
,IResource
@OslcNamespace("http://open-services.net/ns/core#")
@OslcResourceShape(title="OSLC Resource Shape Resource Shape",
describes="http://open-services.net/ns/core#ResourceShape")
public final class ResourceShape
extends AbstractResource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDescribeItem
(URI describeItem) void
addProperty
(Property property) URI[]
getName()
Property[]
getProperty
(URI definition) getTitle()
void
setDescribes
(URI[] describes) void
setDescription
(String description) void
void
setProperties
(Property[] properties) void
Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
Constructor Details
-
ResourceShape
public ResourceShape() -
ResourceShape
-
-
Method Details
-
addDescribeItem
-
addProperty
-
getProperty
-
getDescribes
@OslcDescription("Type or types of resource described by this shape") @OslcPropertyDefinition("http://open-services.net/ns/core#describes") @OslcReadOnly @OslcTitle("Describes") public URI[] getDescribes() -
getProperties
@OslcDescription("The properties that are allowed or required by this shape") @OslcName("property") @OslcPropertyDefinition("http://open-services.net/ns/core#property") @OslcRange("http://open-services.net/ns/core#Property") @OslcReadOnly @OslcRepresentation(Inline) @OslcTitle("Properties") @OslcValueShape("resourceShapes/property") @OslcValueType(LocalResource) public Property[] getProperties() -
getName
@OslcDescription("The local name of the defined resource") @OslcOccurs(ExactlyOne) @OslcPropertyDefinition("http://open-services.net/ns/core#name") @OslcReadOnly @OslcTitle("Name") public String getName() -
getTitle
@OslcDescription("Title of the resource shape. SHOULD include only content that is valid and suitable inside an XHTML <div> element") @OslcPropertyDefinition("http://purl.org/dc/terms/title") @OslcReadOnly @OslcTitle("Title") @OslcValueType(XMLLiteral) public String getTitle() -
getDescription
@OslcDescription("The description of the defined constraint.") @OslcPropertyDefinition("http://purl.org/dc/terms/description") @OslcReadOnly @OslcTitle("Description") @OslcValueType(XMLLiteral) public String getDescription() -
setDescribes
-
setProperties
-
setName
-
setTitle
-
setDescription
-