org.openanzo.atom.jastor.queso
Class CollectionImpl

java.lang.Object
  extended by org.openanzo.jastor.GraphThingImpl
      extended by org.openanzo.atom.jastor.queso.CollectionImpl
All Implemented Interfaces:
Collection, CoreThing, GraphThing

public class CollectionImpl
extends GraphThingImpl
implements Collection

Implementation of Collection Use the org.openanzo.atom.jastor.queso.QuesoFactory to create instances of this class.

(URI: http://boca.adtech.ibm.com/schemas/queso#Collection)



Field Summary
 
Fields inherited from interface org.openanzo.atom.jastor.queso.Collection
TYPE
 
Method Summary
 Entry addMember()
          Adds an anonymous value for the 'member' property
 void addMember(Entry member)
          Adds a value for the 'member' property
 Entry addMember(org.openrdf.model.Resource resource)
          Adds a value for the 'member' property.
 info.aduna.collections.iterators.CloseableIterator<Entry> getMember()
          Get an Iterator the 'member' property values.
 java.util.Collection<org.openrdf.model.Statement> listStatements()
          Get set of statements that makeup this THINGS's properties and types
 void removeMember(Entry member)
          Removes a value for the 'member' property.
 
Methods inherited from class org.openanzo.jastor.GraphThingImpl
clearCache, equals, getLiteral, getLiteralValue, getProperties, getPropertyValue, getPropertyValue, graph, isRDFType, registerListener, removeStatements, resource, setPropertyValue, setPropertyValue, toString, unregisterListener, uri
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openanzo.jastor.GraphThing
getProperties, getPropertyValue, getPropertyValue, graph, setPropertyValue, setPropertyValue
 
Methods inherited from interface org.openanzo.jastor.CoreThing
clearCache, isRDFType, registerListener, removeStatements, resource, unregisterListener, uri
 

Method Detail

listStatements

public java.util.Collection<org.openrdf.model.Statement> listStatements()
Description copied from interface: CoreThing
Get set of statements that makeup this THINGS's properties and types

Specified by:
listStatements in interface CoreThing
Overrides:
listStatements in class GraphThingImpl
Returns:
set of statements that makeup this THINGS's properties and types

getMember

public info.aduna.collections.iterators.CloseableIterator<Entry> getMember()
                                                                    throws JastorException
Description copied from interface: Collection
Get an Iterator the 'member' property values. This Iteartor may be used to remove all such values.

Specified by:
getMember in interface Collection
Returns:
Iterator of Entry
Throws:
JastorException
See Also:
Collection.memberProperty

addMember

public void addMember(Entry member)
               throws JastorException
Description copied from interface: Collection
Adds a value for the 'member' property

Specified by:
addMember in interface Collection
Throws:
JastorException
See Also:
Collection.memberProperty

addMember

public Entry addMember()
                throws JastorException
Description copied from interface: Collection
Adds an anonymous value for the 'member' property

Specified by:
addMember in interface Collection
Returns:
The anoymous Entry created
Throws:
JastorException
See Also:
Collection.memberProperty

addMember

public Entry addMember(org.openrdf.model.Resource resource)
                throws JastorException
Description copied from interface: Collection
Adds a value for the 'member' property. This method is equivalent constructing a new instance of Entry with the factory and calling addMember(org.openanzo.atom.jastor.queso.Entry member) The resource argument have rdf:type http://boca.adtech.ibm.com/schemas/queso#Entry. That is, this method should not be used as a shortcut for creating new objects in the model.

Specified by:
addMember in interface Collection
Throws:
JastorException
See Also:
Collection.memberProperty

removeMember

public void removeMember(Entry member)
                  throws JastorException
Description copied from interface: Collection
Removes a value for the 'member' 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:
removeMember in interface Collection
Throws:
JastorException
See Also:
Collection.memberProperty


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.