info.sswap.api.model
Interface SSWAPProperty

All Superinterfaces:
SSWAPElement, SSWAPModel
All Known Implementing Classes:
PropertyImpl

public interface SSWAPProperty
extends SSWAPElement

A SSWAPProperty is a specific instance of a SSWAPPredicate with an assigned value, associated with a SSWAPIndividual. A property consists of a name (URI) and a non-null value (SSWAPElement). Like String, a SSWAPProperty is immutable. To create a SSWAPProperty, assign a property/value pair to an individual; see SSWAPIndividual.

Author:
Blazej Bulka
See Also:
SSWAPElement, SSWAPIndividual, SSWAPPredicate

Method Summary
 SSWAPIndividual getIndividual()
          Gets the individual for which this property is assigned.
 SSWAPPredicate getPredicate()
          Gets the SSWAPPredicate for this property.
 SSWAPElement getValue()
          Gets the value of the property.
 void removeProperty()
          Removes the property from the individual.
 
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

getValue

SSWAPElement getValue()
Gets the value of the property.

Returns:
the SSWAPElement (dereferenced) containing the value.

getPredicate

SSWAPPredicate getPredicate()
Gets the SSWAPPredicate for this property.

Returns:
SSWAPPredicate for this property

getIndividual

SSWAPIndividual getIndividual()
Gets the individual for which this property is assigned. If the property is no longer is associated with an individual (e.g., it was removed), this method returns null.

Returns:
the individual or null (if the property is no longer associated with an individual)

removeProperty

void removeProperty()
Removes the property from the individual.



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