ibspan.tss.um.ontology
Class OpinionSetImpl

java.lang.Object
  extended by com.hp.hpl.jena.rdf.listeners.StatementListener
      extended by com.ibm.adtech.jastor.ThingImpl
          extended by ibspan.tss.um.ontology.OpinionSetImpl
All Implemented Interfaces:
ModelChangedListener, com.ibm.adtech.jastor.Thing, OpinionSet

public class OpinionSetImpl
extends com.ibm.adtech.jastor.ThingImpl
implements OpinionSet

Implementation of OpinionSet Use the ibspan.tss.um.ontology.UserModellingFactory to create instances of this class.

(URI: http://www.ibspan.waw.pl/tss/UserModelling#OpinionSet)



Field Summary
 
Fields inherited from class com.ibm.adtech.jastor.ThingImpl
_model, _resource, _typeUri, copyright
 
Fields inherited from interface ibspan.tss.um.ontology.OpinionSet
TYPE
 
Fields inherited from interface com.ibm.adtech.jastor.Thing
copyright
 
Method Summary
 Opinion addContainsOpinion()
          Adds an anonymous value for the 'containsOpinion' property
 void addContainsOpinion(Opinion containsOpinion)
          Adds a value for the 'containsOpinion' property
 Opinion addContainsOpinion(Resource resource)
          Adds a value for the 'containsOpinion' property.
 void addedStatement(Statement stmt)
           
 void clearCache()
           
 Iterator getContainsOpinion()
          Get an Iterator the 'containsOpinion' property values.
 XSDDateTime getWasChanged()
          Gets the 'wasChanged' property value
 List listStatements()
           
 void registerListener(com.ibm.adtech.jastor.ThingListener listener)
           
 void removeContainsOpinion(Opinion containsOpinion)
          Removes a value for the 'containsOpinion' property.
 void removedStatement(Statement stmt)
           
 void setWasChanged(XSDDateTime wasChanged)
          Sets the 'wasChanged' property value
 void unregisterListener(com.ibm.adtech.jastor.ThingListener listener)
           
 
Methods inherited from class com.ibm.adtech.jastor.ThingImpl
equals, isRDFType, model, removeStatements, resource, toString, uri
 
Methods inherited from class com.hp.hpl.jena.rdf.listeners.StatementListener
addedStatements, addedStatements, addedStatements, addedStatements, notifyEvent, removedStatements, removedStatements, removedStatements, removedStatements
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.adtech.jastor.Thing
isRDFType, model, removeStatements, resource, uri
 

Method Detail

listStatements

public List listStatements()
Specified by:
listStatements in interface com.ibm.adtech.jastor.Thing
Overrides:
listStatements in class com.ibm.adtech.jastor.ThingImpl

clearCache

public void clearCache()
Specified by:
clearCache in interface com.ibm.adtech.jastor.Thing
Overrides:
clearCache in class com.ibm.adtech.jastor.ThingImpl

getContainsOpinion

public Iterator getContainsOpinion()
                            throws com.ibm.adtech.jastor.JastorException
Description copied from interface: OpinionSet
Get an Iterator the 'containsOpinion' property values. This Iteartor may be used to remove all such values.

Specified by:
getContainsOpinion in interface OpinionSet
Returns:
Iterator of Opinion
Throws:
com.ibm.adtech.jastor.JastorException
See Also:
OpinionSet.containsOpinionProperty

addContainsOpinion

public void addContainsOpinion(Opinion containsOpinion)
                        throws com.ibm.adtech.jastor.JastorException
Description copied from interface: OpinionSet
Adds a value for the 'containsOpinion' property

Specified by:
addContainsOpinion in interface OpinionSet
Throws:
com.ibm.adtech.jastor.JastorException
See Also:
OpinionSet.containsOpinionProperty

addContainsOpinion

public Opinion addContainsOpinion()
                           throws com.ibm.adtech.jastor.JastorException
Description copied from interface: OpinionSet
Adds an anonymous value for the 'containsOpinion' property

Specified by:
addContainsOpinion in interface OpinionSet
Returns:
The anoymous Opinion created
Throws:
com.ibm.adtech.jastor.JastorException
See Also:
OpinionSet.containsOpinionProperty

addContainsOpinion

public Opinion addContainsOpinion(Resource resource)
                           throws com.ibm.adtech.jastor.JastorException
Description copied from interface: OpinionSet
Adds a value for the 'containsOpinion' property. This method is equivalent constructing a new instance of Opinion with the factory and calling addContainsOpinion(ibspan.tss.um.ontology.Opinion containsOpinion) The resource argument have rdf:type http://www.ibspan.waw.pl/tss/UserModelling#Opinion. That is, this method should not be used as a shortcut for creating new objects in the model.

Specified by:
addContainsOpinion in interface OpinionSet
Throws:
com.ibm.adtech.jastor.JastorException
See Also:
OpinionSet.containsOpinionProperty

removeContainsOpinion

public void removeContainsOpinion(Opinion containsOpinion)
                           throws com.ibm.adtech.jastor.JastorException
Description copied from interface: OpinionSet
Removes a value for the 'containsOpinion' property. This method should not be invoked while iterator through values. In that case, the remove() method of the Iterator itself should be used.

Specified by:
removeContainsOpinion in interface OpinionSet
Throws:
com.ibm.adtech.jastor.JastorException
See Also:
OpinionSet.containsOpinionProperty

getWasChanged

public XSDDateTime getWasChanged()
                          throws com.ibm.adtech.jastor.JastorException
Description copied from interface: OpinionSet
Gets the 'wasChanged' property value

Specified by:
getWasChanged in interface OpinionSet
Returns:
XSDDateTime
Throws:
com.ibm.adtech.jastor.JastorException
See Also:
OpinionSet.wasChangedProperty

setWasChanged

public void setWasChanged(XSDDateTime wasChanged)
                   throws com.ibm.adtech.jastor.JastorException
Description copied from interface: OpinionSet
Sets the 'wasChanged' property value

Specified by:
setWasChanged in interface OpinionSet
Throws:
com.ibm.adtech.jastor.JastorException
See Also:
OpinionSet.wasChangedProperty

registerListener

public void registerListener(com.ibm.adtech.jastor.ThingListener listener)
Specified by:
registerListener in interface com.ibm.adtech.jastor.Thing
Overrides:
registerListener in class com.ibm.adtech.jastor.ThingImpl

unregisterListener

public void unregisterListener(com.ibm.adtech.jastor.ThingListener listener)
Specified by:
unregisterListener in interface com.ibm.adtech.jastor.Thing
Overrides:
unregisterListener in class com.ibm.adtech.jastor.ThingImpl

addedStatement

public void addedStatement(Statement stmt)
Specified by:
addedStatement in interface ModelChangedListener
Overrides:
addedStatement in class StatementListener

removedStatement

public void removedStatement(Statement stmt)
Specified by:
removedStatement in interface ModelChangedListener
Overrides:
removedStatement in class StatementListener