info.sswap.api.model
Interface SSWAPObject

All Superinterfaces:
SSWAPElement, SSWAPIndividual, SSWAPModel, SSWAPNode
All Known Implementing Classes:
ObjectImpl

public interface SSWAPObject
extends SSWAPNode

Object of SSWAP Graph. Objects in SSWAP represent the results of a service's mapping of the SSWAP Subject to (one or more) SSWAP Objects.

To create a new SSWAP Object use SSWAPProtocol.createObject().

Author:
Blazej Bulka
See Also:
SSWAPProtocol, SSWAPSubject

Method Summary
 SSWAPSubject getSubject()
          Gets the subject that maps onto this object.
 java.util.Collection<SSWAPSubject> getSubjects()
          Gets all the subjects that map onto this object.
 
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

getSubject

SSWAPSubject getSubject()
Gets the subject that maps onto this object. In the situation when more than one subject maps onto this object, only the first subject is returned.

Returns:
the subject that maps onto this object or null, if no subject maps currently onto this object.

getSubjects

java.util.Collection<SSWAPSubject> getSubjects()
Gets all the subjects that map onto this object.

Returns:
a set of SSWAPSubjects (all of them dereferenced objects).


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