info.sswap.api.model
Interface SSWAPNode

All Superinterfaces:
SSWAPElement, SSWAPIndividual, SSWAPModel
All Known Subinterfaces:
SSWAPGraph, SSWAPObject, SSWAPProvider, SSWAPResource, SSWAPSubject
All Known Implementing Classes:
EmpireGeneratedNodeImpl, GraphImpl, NodeImpl, ObjectImpl, ProviderImpl, ResourceImpl, SubjectImpl, TranslatedSubjectImpl

public interface SSWAPNode
extends SSWAPIndividual

SSWAPNodes are special individuals in SSWAP protocol, and they are handled specially. These individuals include SSWAPProvider, SSWAPResource, SSWAPGraph, SSWAPSubject, and SSWAPObject.

Author:
Blazej Bulka
See Also:
SSWAPProvider, SSWAPResource, SSWAPGraph, SSWAPSubject, SSWAPObject

Method Summary
 SSWAPGraph asSSWAPGraph()
          Type-safe cast to SSWAPGraph.
 SSWAPObject asSSWAPObject()
          Type-safe cast to SSWAPObject.
 SSWAPProvider asSSWAPProvider()
          Type-safe cast to SSWAPProvider.
 SSWAPResource asSSWAPResource()
          Type-safe cast to SSWAPResource.
 SSWAPSubject asSSWAPSubject()
          Type-safe cast to SSWAPSubject.
 java.net.URI getID()
          Gets a unique identifier of this node.
 boolean isSSWAPGraph()
          Checks whether this node is a SSWAPGraph
 boolean isSSWAPObject()
          Checks whether this node is a SSWAPObject
 boolean isSSWAPProvider()
          Checks whether this node is a SSWAPProvider.
 boolean isSSWAPResource()
          Checks whether this node is a SSWAPResource.
 boolean isSSWAPSubject()
          Checks whether this node is a SSWAPSubject
 
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

getID

java.net.URI getID()
Gets a unique identifier of this node. For nodes that are not blank nodes, this method returns a regular URI of this node (as returned by getURI() method). For blank nodes, this method returns a document-wide unique identifier of this blank node.

Returns:
a document-wide unique identifier of this node.

isSSWAPProvider

boolean isSSWAPProvider()
Checks whether this node is a SSWAPProvider.

Returns:
true if this node is a SSWAPProvider

isSSWAPResource

boolean isSSWAPResource()
Checks whether this node is a SSWAPResource.

Returns:
true if this node is a SSWAPResource

isSSWAPGraph

boolean isSSWAPGraph()
Checks whether this node is a SSWAPGraph

Returns:
true if this node is a SSWAPGraph

isSSWAPSubject

boolean isSSWAPSubject()
Checks whether this node is a SSWAPSubject

Returns:
true if this node is a SSWAPSubject

isSSWAPObject

boolean isSSWAPObject()
Checks whether this node is a SSWAPObject

Returns:
true if this node is a SSWAPObject

asSSWAPProvider

SSWAPProvider asSSWAPProvider()
Type-safe cast to SSWAPProvider. This is only possible for nodes that are actually SSWAPProviders.

Returns:
a SSWAPProvider, if this node is a SSWAPProvider, null otherwise.

asSSWAPResource

SSWAPResource asSSWAPResource()
Type-safe cast to SSWAPResource. This is only possible for nodes that are actually SSWAPResources.

Returns:
a SSWAPResource, if this node is a SSWAPResource, null otherwise.

asSSWAPGraph

SSWAPGraph asSSWAPGraph()
Type-safe cast to SSWAPGraph. This is only possible for nodes that are actually SSWAPGraphs.

Returns:
a SSWAPGraph, if this node is a SSWAPGraph, null otherwise.

asSSWAPSubject

SSWAPSubject asSSWAPSubject()
Type-safe cast to SSWAPSubject. This is only possible for nodes that are actually SSWAPSubjects.

Returns:
a SSWAPSubject, if this node is a SSWAPSubject, null otherwise.

asSSWAPObject

SSWAPObject asSSWAPObject()
Type-safe cast to SSWAPObject. This is only possible for nodes that are actually SSWAPObjects.

Returns:
a SSWAPObject, if this node is a SSWAPObject, null otherwise.


Copyright (c) 2011, iPlant Collaborative, University of Arizona, Cold Spring Harbor Laboratories, University of Texas at Austin.