|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SSWAPResource
Describes a resource (a service) in SSWAP. Services in SSWAP are described by
canonical/protocol graphs (e.g., RDG
).
RDG
Method Summary | |
---|---|
java.net.URI |
getAboutURI()
Gets the URI pointing to a human-readable description of this resource. |
SSWAPGraph |
getGraph()
Gets the SSWAP graph of the resource. |
java.util.Collection<SSWAPGraph> |
getGraphs()
Gets all the SSWAP graphs of the resource. |
java.net.URI |
getIcon()
Gets the URI of the icon for this resource (if defined). |
java.net.URI |
getInputURI()
Gets the URI pointing to a human-readable user interface for this resource. |
java.net.URI |
getMetadata()
Gets the URI containing the machine-readable metadata for this resource. |
java.lang.String |
getName()
Gets the name of the resource. |
java.lang.String |
getOneLineDescription()
Gets one line description of the resource. |
java.net.URI |
getOutputURI()
|
SSWAPProvider |
getProvider()
Gets the object describing the provider of this resource. |
RDG |
getRDG()
Gets the RDG where this resource is defined. |
void |
setAboutURI(java.net.URI aboutURI)
Sets the URI pointing to a human-readable description of this resource. |
void |
setGraph(SSWAPGraph graph)
Sets the SSWAPGraph for this resource. |
void |
setGraphs(java.util.Collection<SSWAPGraph> graphs)
Sets the SSWAPGraphs for this resource. |
void |
setIcon(java.net.URI icon)
Sets the URI of the icon for this resource |
void |
setInputURI(java.net.URI inputURI)
Sets the URI pointing to a human-readable user interface for this resource. |
void |
setMetadata(java.net.URI metadata)
Sets the URI pointing to the machine-readable metadata for this resource. |
void |
setName(java.lang.String name)
Sets the name of the resource. |
void |
setOneLineDescription(java.lang.String oneLineDescription)
Sets one line description of the resource. |
void |
setOutputURI(java.net.URI outputURI)
|
void |
setProvider(SSWAPProvider provider)
Sets the provider for this resource. |
void |
validateProvider()
|
Methods inherited from interface info.sswap.api.model.SSWAPNode |
---|
asSSWAPGraph, asSSWAPObject, asSSWAPProvider, asSSWAPResource, asSSWAPSubject, getID, isSSWAPGraph, isSSWAPObject, isSSWAPProvider, isSSWAPResource, isSSWAPSubject |
Methods inherited from interface info.sswap.api.model.SSWAPIndividual |
---|
addProperty, addProperty, addProperty, addProperty, addType, clearProperty, getDeclaredType, getDeclaredTypes, getInferredIndividual, getProperties, getProperties, getProperty, getType, getTypes, hasValue, hasValue, isAnonymous, isCompatibleWith, isOfType, removeProperty, removeProperty, removeType, setProperty, setProperty, setProperty, setProperty |
Methods inherited from interface info.sswap.api.model.SSWAPElement |
---|
addComment, addLabel, asBoolean, asDouble, asIndividual, asInteger, asList, asLiteral, asString, getComment, getLabel, isIndividual, isList, isLiteral |
Methods inherited from interface info.sswap.api.model.SSWAPModel |
---|
addImport, checkProfile, dereference, dereference, doClosure, getDocument, getImports, getInputStream, getNsPrefixMap, getReasoningService, getTypeSignature, getURI, isDereferenced, removeImport, removeNsPrefix, serialize, serialize, setNsPrefix, validate |
Method Detail |
---|
java.lang.String getName()
void setName(java.lang.String name)
name
- the name of the resource (must not be null).java.lang.String getOneLineDescription()
void setOneLineDescription(java.lang.String oneLineDescription)
oneLineDescription
- the new one line description of the resource, or null if the current description is to be removed.java.net.URI getAboutURI()
void setAboutURI(java.net.URI aboutURI)
aboutURI
- URI pointing to a human-readable description of this resource, or null if there is no such description
for the resource.java.net.URI getMetadata()
void setMetadata(java.net.URI metadata)
metadata
- URI pointing to a machine-readable metadata for this resource, or null if there is no metadata for
this resource.java.net.URI getInputURI()
void setInputURI(java.net.URI inputURI)
inputURI
- URI pointing to a human-readable interface for this resource, or null if there is no such interface
for this resource.java.net.URI getOutputURI()
void setOutputURI(java.net.URI outputURI)
SSWAPProvider getProvider()
void setProvider(SSWAPProvider provider)
provider
- a SSWAPProvider object.SSWAPGraph getGraph()
void setGraph(SSWAPGraph graph)
graph
- the graph to be set for this resourcejava.util.Collection<SSWAPGraph> getGraphs()
void setGraphs(java.util.Collection<SSWAPGraph> graphs)
graphs
- a collection of SSWAPGraphsjava.net.URI getIcon()
void setIcon(java.net.URI icon)
icon
- the URI of the icon or nullRDG getRDG() throws DataAccessException
DataAccessException
- if it is necessary to retrieve the whole RDG and an error should occur while accessing itvoid validateProvider() throws ValidationException
ValidationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |