Class CreationFactory
- java.lang.Object
-
- org.eclipse.lyo.oslc4j.core.model.AbstractResource
-
- org.eclipse.lyo.oslc4j.core.model.CreationFactory
-
- All Implemented Interfaces:
IExtendedResource
,IResource
@OslcNamespace("http://open-services.net/ns/core#") @OslcResourceShape(title="OSLC Creation Factory Resource Shape", describes="http://open-services.net/ns/core#CreationFactory") public class CreationFactory extends AbstractResource
-
-
Constructor Summary
Constructors Constructor Description CreationFactory()
CreationFactory(String title, URI creation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addResourceShape(URI resourceShape)
void
addResourceType(URI resourceType)
void
addUsage(URI usage)
URI
getCreation()
String
getLabel()
URI[]
getResourceShapes()
URI[]
getResourceTypes()
String
getTitle()
URI[]
getUsages()
void
setCreation(URI creation)
void
setLabel(String label)
void
setResourceShapes(URI[] resourceShapes)
void
setResourceTypes(URI[] resourceTypes)
void
setTitle(String title)
void
setUsages(URI[] usages)
-
Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
-
-
-
Method Detail
-
addResourceShape
public void addResourceShape(URI resourceShape)
-
addResourceType
public void addResourceType(URI resourceType)
-
addUsage
public void addUsage(URI usage)
-
getCreation
@OslcDescription("To create a new resource via the factory, post it to this URI") @OslcOccurs(ExactlyOne) @OslcPropertyDefinition("http://open-services.net/ns/core#creation") @OslcReadOnly @OslcTitle("Creation") public URI getCreation()
-
getLabel
@OslcDescription("Very short label for use in menu items") @OslcPropertyDefinition("http://open-services.net/ns/core#label") @OslcReadOnly @OslcTitle("Label") public String getLabel()
-
getResourceShapes
@OslcDescription("A creation factory may provide resource shapes that describe shapes of resources that may be created") @OslcName("resourceShape") @OslcPropertyDefinition("http://open-services.net/ns/core#resourceShape") @OslcRange("http://open-services.net/ns/core#ResourceShape") @OslcReadOnly @OslcTitle("Resource Shapes") @OslcValueShape("resourceShapes/resourceShape") public URI[] getResourceShapes()
-
getResourceTypes
@OslcDescription("The expected resource type URI of the resource that will be created using this creation factory. These would be the URIs found in the result resource\'s rdf:type property") @OslcName("resourceType") @OslcPropertyDefinition("http://open-services.net/ns/core#resourceType") @OslcReadOnly @OslcTitle("Resource Types") public URI[] getResourceTypes()
-
getTitle
@OslcDescription("Title string that could be used for display") @OslcOccurs(ExactlyOne) @OslcPropertyDefinition("http://purl.org/dc/terms/title") @OslcReadOnly @OslcTitle("Title") @OslcValueType(XMLLiteral) public String getTitle()
-
getUsages
@OslcDescription("An identifier URI for the domain specified usage of this creation factory. If a service provides multiple creation factories, it may designate the primary or default one that should be used with a property value of http://open-services.net/ns/core#default") @OslcName("usage") @OslcPropertyDefinition("http://open-services.net/ns/core#usage") @OslcReadOnly @OslcTitle("Usages") public URI[] getUsages()
-
setCreation
public void setCreation(URI creation)
-
setLabel
public void setLabel(String label)
-
setResourceShapes
public void setResourceShapes(URI[] resourceShapes)
-
setResourceTypes
public void setResourceTypes(URI[] resourceTypes)
-
setTitle
public void setTitle(String title)
-
setUsages
public void setUsages(URI[] usages)
-
-