@OslcNamespace(value="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 and Description |
---|
CreationFactory() |
CreationFactory(String title,
URI creation) |
Modifier and Type | Method and 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) |
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
public void addResourceShape(URI resourceShape)
public void addResourceType(URI resourceType)
public void addUsage(URI usage)
@OslcDescription(value="To create a new resource via the factory, post it to this URI") @OslcOccurs(value=ExactlyOne) @OslcPropertyDefinition(value="http://open-services.net/ns/core#creation") @OslcReadOnly @OslcTitle(value="Creation") public URI getCreation()
@OslcDescription(value="Very short label for use in menu items") @OslcPropertyDefinition(value="http://open-services.net/ns/core#label") @OslcReadOnly @OslcTitle(value="Label") public String getLabel()
@OslcDescription(value="A creation factory may provide resource shapes that describe shapes of resources that may be created") @OslcName(value="resourceShape") @OslcPropertyDefinition(value="http://open-services.net/ns/core#resourceShape") @OslcRange(value="http://open-services.net/ns/core#ResourceShape") @OslcReadOnly @OslcTitle(value="Resource Shapes") @OslcValueShape(value="resourceShapes/resourceShape") public URI[] getResourceShapes()
@OslcDescription(value="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(value="resourceType") @OslcPropertyDefinition(value="http://open-services.net/ns/core#resourceType") @OslcReadOnly @OslcTitle(value="Resource Types") public URI[] getResourceTypes()
@OslcDescription(value="Title string that could be used for display") @OslcOccurs(value=ExactlyOne) @OslcPropertyDefinition(value="http://purl.org/dc/terms/title") @OslcReadOnly @OslcTitle(value="Title") @OslcValueType(value=XMLLiteral) public String getTitle()
@OslcDescription(value="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(value="usage") @OslcPropertyDefinition(value="http://open-services.net/ns/core#usage") @OslcReadOnly @OslcTitle(value="Usages") public URI[] getUsages()
public void setCreation(URI creation)
public void setLabel(String label)
public void setResourceShapes(URI[] resourceShapes)
public void setResourceTypes(URI[] resourceTypes)
public void setTitle(String title)
public void setUsages(URI[] usages)
Copyright © 2017. All rights reserved.