Class QueryCapability
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
org.eclipse.lyo.oslc4j.core.model.QueryCapability
- All Implemented Interfaces:
IExtendedResource
,IResource
@OslcNamespace("http://open-services.net/ns/core#")
@OslcResourceShape(title="OSLC Query Capability Resource Shape",
describes="http://open-services.net/ns/core#QueryCapability")
public class QueryCapability
extends AbstractResource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addResourceType
(URI resourceType) void
getLabel()
URI[]
getTitle()
URI[]
void
void
setQueryBase
(URI queryBase) void
setResourceShape
(URI resourceShape) 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
-
QueryCapability
public QueryCapability() -
QueryCapability
-
-
Method Details
-
addResourceType
-
addUsage
-
getLabel
@OslcDescription("Very short label for use in menu items") @OslcPropertyDefinition("http://open-services.net/ns/core#label") @OslcReadOnly @OslcTitle("Label") public String getLabel() -
getQueryBase
@OslcDescription("The base URI to use for queries. Queries are invoked via HTTP GET on a query URI formed by appending a key=value pair to the base URI, as described in Query Capabilities section") @OslcOccurs(ExactlyOne) @OslcPropertyDefinition("http://open-services.net/ns/core#queryBase") @OslcReadOnly @OslcTitle("Query Base") public URI getQueryBase() -
getResourceShape
@OslcDescription("The Query Capability SHOULD provide a Resource Shape that describes the query base URI") @OslcName("resourceShape") @OslcPropertyDefinition("http://open-services.net/ns/core#resourceShape") @OslcRange("http://open-services.net/ns/core#ResourceShape") @OslcReadOnly @OslcTitle("Resource Shape") @OslcValueShape("resourceShapes/resourceShape") public URI getResourceShape() -
getResourceTypes
@OslcDescription("The expected resource type URI that will be returned with this query capability. 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 query capability. If a service provides multiple query capabilities, it may designate the primary or default one that should be used with a property value of http://open-services/ns/core#default") @OslcName("usage") @OslcPropertyDefinition("http://open-services.net/ns/core#usage") @OslcReadOnly @OslcTitle("Usages") public URI[] getUsages() -
setLabel
-
setQueryBase
-
setResourceShape
-
setResourceTypes
-
setTitle
-
setUsages
-