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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
addResourceShape
(URI resourceShape) void
addResourceType
(URI resourceType) void
getLabel()
URI[]
URI[]
getTitle()
URI[]
void
setCreation
(URI creation) void
void
setResourceShapes
(URI[] resourceShapes) void
setResourceTypes
(URI[] resourceTypes) void
void
Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
Constructor Details
-
CreationFactory
public CreationFactory() -
CreationFactory
-
-
Method Details
-
addResourceShape
-
addResourceType
-
addUsage
-
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
-
setLabel
-
setResourceShapes
-
setResourceTypes
-
setTitle
-
setUsages
-