org.openanzo.rdfs
Class ContainerImpl

java.lang.Object
  extended by org.openanzo.jastor.GraphThingImpl
      extended by org.openanzo.rdfs.ContainerImpl
All Implemented Interfaces:
CoreThing, GraphThing, _Resource, Container

public class ContainerImpl
extends GraphThingImpl
implements Container

Implementation of Container Use the org.openanzo.rdfs.RDFSFactory to create instances of this class.

(URI: http://www.w3.org/2000/01/rdf-schema#Container)



Field Summary
 
Fields inherited from interface org.openanzo.rdfs.Container
TYPE
 
Method Summary
 void addComment(java.lang.String comment)
          Add a 'comment' property value
 void addIsDefinedBy(_Resource isDefinedBy)
          Adds a value for the 'isDefinedBy' property
 _Resource addIsDefinedBy()
          Adds an anonymous value for the 'isDefinedBy' property
 _Resource addIsDefinedBy(org.openrdf.model.Resource resource)
          Adds a value for the 'isDefinedBy' property.
 void addLabel(java.lang.String label)
          Add a 'label' property value
 void addMember(_Resource member)
          Adds a value for the 'member' property
 _Resource addMember()
          Adds an anonymous value for the 'member' property
 _Resource addMember(org.openrdf.model.Resource resource)
          Adds a value for the 'member' property.
 void addSeeAlso(_Resource seeAlso)
          Adds a value for the 'seeAlso' property
 _Resource addSeeAlso()
          Adds an anonymous value for the 'seeAlso' property
 _Resource addSeeAlso(org.openrdf.model.Resource resource)
          Adds a value for the 'seeAlso' property.
 Class addType()
          Adds an anonymous value for the 'type' property
 void addType(Class type)
          Adds a value for the 'type' property
 Class addType(org.openrdf.model.Resource resource)
          Adds a value for the 'type' property.
 void addValue(_Resource value)
          Adds a value for the 'value' property
 _Resource addValue()
          Adds an anonymous value for the 'value' property
 _Resource addValue(org.openrdf.model.Resource resource)
          Adds a value for the 'value' property.
 info.aduna.collections.iterators.CloseableIterator<java.lang.String> getComment()
          Iterates through the 'comment' property values.
 info.aduna.collections.iterators.CloseableIterator<_Resource> getIsDefinedBy()
          Get an Iterator the 'isDefinedBy' property values.
 info.aduna.collections.iterators.CloseableIterator<java.lang.String> getLabel()
          Iterates through the 'label' property values.
 info.aduna.collections.iterators.CloseableIterator<_Resource> getMember()
          Get an Iterator the 'member' property values.
 info.aduna.collections.iterators.CloseableIterator<_Resource> getSeeAlso()
          Get an Iterator the 'seeAlso' property values.
 info.aduna.collections.iterators.CloseableIterator<Class> getType()
          Get an Iterator the 'type' property values.
 info.aduna.collections.iterators.CloseableIterator<_Resource> getValue()
          Get an Iterator the 'value' property values.
 java.util.Collection<org.openrdf.model.Statement> listStatements()
          Get set of statements that makeup this THINGS's properties and types
 void removeComment(java.lang.String comment)
          Remove a 'comment' property value.
 void removeIsDefinedBy(_Resource isDefinedBy)
          Removes a value for the 'isDefinedBy' property.
 void removeIsDefinedBy(org.openrdf.model.Resource isDefinedBy)
          Remove a 'isDefinedBy' property value.
 void removeLabel(java.lang.String label)
          Remove a 'label' property value.
 void removeMember(_Resource member)
          Removes a value for the 'member' property.
 void removeMember(org.openrdf.model.Resource member)
          Remove a 'member' property value.
 void removeSeeAlso(_Resource seeAlso)
          Removes a value for the 'seeAlso' property.
 void removeSeeAlso(org.openrdf.model.Resource seeAlso)
          Remove a 'seeAlso' property value.
 void removeType(Class type)
          Removes a value for the 'type' property.
 void removeType(org.openrdf.model.Resource type)
          Remove a 'type' property value.
 void removeValue(_Resource value)
          Removes a value for the 'value' property.
 void removeValue(org.openrdf.model.Resource value)
          Remove a 'value' property value.
 
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

getComment

public info.aduna.collections.iterators.CloseableIterator<java.lang.String> getComment()
                                                                                throws JastorException
Description copied from interface: _Resource
Iterates through the 'comment' property values. This Iteartor may be used to remove all such values.

Specified by:
getComment in interface _Resource
Returns:
Iterator of String
Throws:
JastorException
See Also:
_Resource.commentProperty

addComment

public void addComment(java.lang.String comment)
                throws JastorException
Description copied from interface: _Resource
Add a 'comment' property value

Specified by:
addComment in interface _Resource
Parameters:
comment - String, the value to add
Throws:
JastorException
See Also:
_Resource.commentProperty

removeComment

public void removeComment(java.lang.String comment)
                   throws JastorException
Description copied from interface: _Resource
Remove a 'comment' property value. 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:
removeComment in interface _Resource
Parameters:
comment - String, the value to remove
Throws:
JastorException
See Also:
_Resource.commentProperty

getLabel

public info.aduna.collections.iterators.CloseableIterator<java.lang.String> getLabel()
                                                                              throws JastorException
Description copied from interface: _Resource
Iterates through the 'label' property values. This Iteartor may be used to remove all such values.

Specified by:
getLabel in interface _Resource
Returns:
Iterator of String
Throws:
JastorException
See Also:
_Resource.labelProperty

addLabel

public void addLabel(java.lang.String label)
              throws JastorException
Description copied from interface: _Resource
Add a 'label' property value

Specified by:
addLabel in interface _Resource
Parameters:
label - String, the value to add
Throws:
JastorException
See Also:
_Resource.labelProperty

removeLabel

public void removeLabel(java.lang.String label)
                 throws JastorException
Description copied from interface: _Resource
Remove a 'label' property value. 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:
removeLabel in interface _Resource
Parameters:
label - String, the value to remove
Throws:
JastorException
See Also:
_Resource.labelProperty

getType

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

Specified by:
getType in interface _Resource
Returns:
Iterator of Class
Throws:
JastorException
See Also:
_Resource.typeProperty

addType

public void addType(Class type)
             throws JastorException
Description copied from interface: _Resource
Adds a value for the 'type' property

Specified by:
addType in interface _Resource
Parameters:
type - The Class to add
Throws:
JastorException
See Also:
_Resource.typeProperty

addType

public Class addType()
              throws JastorException
Description copied from interface: _Resource
Adds an anonymous value for the 'type' property

Specified by:
addType in interface _Resource
Returns:
The anoymous Class created
Throws:
JastorException
See Also:
_Resource.typeProperty

addType

public Class addType(org.openrdf.model.Resource resource)
              throws JastorException
Description copied from interface: _Resource
Adds a value for the 'type' property. This method is equivalent constructing a new instance of Class with the factory and calling addType(org.openanzo.rdfs.Class type) The resource argument have rdf:type http://www.w3.org/2000/01/rdf-schema#Class. That is, this method should not be used as a shortcut for creating new objects in the model.

Specified by:
addType in interface _Resource
Parameters:
resource - The Resource to add
Returns:
The org.openanzo.rdfs.Class created
Throws:
JastorException
See Also:
_Resource.typeProperty

removeType

public void removeType(Class type)
                throws JastorException
Description copied from interface: _Resource
Removes a value for the 'type' 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:
removeType in interface _Resource
Parameters:
type - The Class to remove
Throws:
JastorException
See Also:
_Resource.typeProperty

removeType

public void removeType(org.openrdf.model.Resource type)
                throws JastorException
Description copied from interface: _Resource
Remove a 'type' property value. 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:
removeType in interface _Resource
Parameters:
type - Class, the value to remove
Throws:
JastorException
See Also:
_Resource.typeProperty

getValue

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

Specified by:
getValue in interface _Resource
Returns:
Iterator of _Resource
Throws:
JastorException
See Also:
_Resource.valueProperty

addValue

public void addValue(_Resource value)
              throws JastorException
Description copied from interface: _Resource
Adds a value for the 'value' property

Specified by:
addValue in interface _Resource
Parameters:
value - The _Resource to add
Throws:
JastorException
See Also:
_Resource.valueProperty

addValue

public _Resource addValue()
                   throws JastorException
Description copied from interface: _Resource
Adds an anonymous value for the 'value' property

Specified by:
addValue in interface _Resource
Returns:
The anoymous _Resource created
Throws:
JastorException
See Also:
_Resource.valueProperty

addValue

public _Resource addValue(org.openrdf.model.Resource resource)
                   throws JastorException
Description copied from interface: _Resource
Adds a value for the 'value' property. This method is equivalent constructing a new instance of _Resource with the factory and calling addValue(org.openanzo.rdfs._Resource value) The resource argument have rdf:type http://www.w3.org/2000/01/rdf-schema#Resource. That is, this method should not be used as a shortcut for creating new objects in the model.

Specified by:
addValue in interface _Resource
Parameters:
resource - The Resource to add
Returns:
The org.openanzo.rdfs._Resource created
Throws:
JastorException
See Also:
_Resource.valueProperty

removeValue

public void removeValue(_Resource value)
                 throws JastorException
Description copied from interface: _Resource
Removes a value for the 'value' 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:
removeValue in interface _Resource
Parameters:
value - The _Resource to remove
Throws:
JastorException
See Also:
_Resource.valueProperty

removeValue

public void removeValue(org.openrdf.model.Resource value)
                 throws JastorException
Description copied from interface: _Resource
Remove a 'value' property value. 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:
removeValue in interface _Resource
Parameters:
value - _Resource, the value to remove
Throws:
JastorException
See Also:
_Resource.valueProperty

getIsDefinedBy

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

Specified by:
getIsDefinedBy in interface _Resource
Returns:
Iterator of _Resource
Throws:
JastorException
See Also:
_Resource.isDefinedByProperty

addIsDefinedBy

public void addIsDefinedBy(_Resource isDefinedBy)
                    throws JastorException
Description copied from interface: _Resource
Adds a value for the 'isDefinedBy' property

Specified by:
addIsDefinedBy in interface _Resource
Parameters:
isDefinedBy - The _Resource to add
Throws:
JastorException
See Also:
_Resource.isDefinedByProperty

addIsDefinedBy

public _Resource addIsDefinedBy()
                         throws JastorException
Description copied from interface: _Resource
Adds an anonymous value for the 'isDefinedBy' property

Specified by:
addIsDefinedBy in interface _Resource
Returns:
The anoymous _Resource created
Throws:
JastorException
See Also:
_Resource.isDefinedByProperty

addIsDefinedBy

public _Resource addIsDefinedBy(org.openrdf.model.Resource resource)
                         throws JastorException
Description copied from interface: _Resource
Adds a value for the 'isDefinedBy' property. This method is equivalent constructing a new instance of _Resource with the factory and calling addIsDefinedBy(org.openanzo.rdfs._Resource isDefinedBy) The resource argument have rdf:type http://www.w3.org/2000/01/rdf-schema#Resource. That is, this method should not be used as a shortcut for creating new objects in the model.

Specified by:
addIsDefinedBy in interface _Resource
Parameters:
resource - The Resource to add
Returns:
The org.openanzo.rdfs._Resource created
Throws:
JastorException
See Also:
_Resource.isDefinedByProperty

removeIsDefinedBy

public void removeIsDefinedBy(_Resource isDefinedBy)
                       throws JastorException
Description copied from interface: _Resource
Removes a value for the 'isDefinedBy' 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:
removeIsDefinedBy in interface _Resource
Parameters:
isDefinedBy - The _Resource to remove
Throws:
JastorException
See Also:
_Resource.isDefinedByProperty

removeIsDefinedBy

public void removeIsDefinedBy(org.openrdf.model.Resource isDefinedBy)
                       throws JastorException
Description copied from interface: _Resource
Remove a 'isDefinedBy' property value. 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:
removeIsDefinedBy in interface _Resource
Parameters:
isDefinedBy - _Resource, the value to remove
Throws:
JastorException
See Also:
_Resource.isDefinedByProperty

getMember

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

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

addMember

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

Specified by:
addMember in interface _Resource
Parameters:
member - The _Resource to add
Throws:
JastorException
See Also:
_Resource.memberProperty

addMember

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

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

addMember

public _Resource addMember(org.openrdf.model.Resource resource)
                    throws JastorException
Description copied from interface: _Resource
Adds a value for the 'member' property. This method is equivalent constructing a new instance of _Resource with the factory and calling addMember(org.openanzo.rdfs._Resource member) The resource argument have rdf:type http://www.w3.org/2000/01/rdf-schema#Resource. That is, this method should not be used as a shortcut for creating new objects in the model.

Specified by:
addMember in interface _Resource
Parameters:
resource - The Resource to add
Returns:
The org.openanzo.rdfs._Resource created
Throws:
JastorException
See Also:
_Resource.memberProperty

removeMember

public void removeMember(_Resource member)
                  throws JastorException
Description copied from interface: _Resource
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 _Resource
Parameters:
member - The _Resource to remove
Throws:
JastorException
See Also:
_Resource.memberProperty

removeMember

public void removeMember(org.openrdf.model.Resource member)
                  throws JastorException
Description copied from interface: _Resource
Remove a 'member' property value. 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 _Resource
Parameters:
member - _Resource, the value to remove
Throws:
JastorException
See Also:
_Resource.memberProperty

getSeeAlso

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

Specified by:
getSeeAlso in interface _Resource
Returns:
Iterator of _Resource
Throws:
JastorException
See Also:
_Resource.seeAlsoProperty

addSeeAlso

public void addSeeAlso(_Resource seeAlso)
                throws JastorException
Description copied from interface: _Resource
Adds a value for the 'seeAlso' property

Specified by:
addSeeAlso in interface _Resource
Parameters:
seeAlso - The _Resource to add
Throws:
JastorException
See Also:
_Resource.seeAlsoProperty

addSeeAlso

public _Resource addSeeAlso()
                     throws JastorException
Description copied from interface: _Resource
Adds an anonymous value for the 'seeAlso' property

Specified by:
addSeeAlso in interface _Resource
Returns:
The anoymous _Resource created
Throws:
JastorException
See Also:
_Resource.seeAlsoProperty

addSeeAlso

public _Resource addSeeAlso(org.openrdf.model.Resource resource)
                     throws JastorException
Description copied from interface: _Resource
Adds a value for the 'seeAlso' property. This method is equivalent constructing a new instance of _Resource with the factory and calling addSeeAlso(org.openanzo.rdfs._Resource seeAlso) The resource argument have rdf:type http://www.w3.org/2000/01/rdf-schema#Resource. That is, this method should not be used as a shortcut for creating new objects in the model.

Specified by:
addSeeAlso in interface _Resource
Parameters:
resource - The Resource to add
Returns:
The org.openanzo.rdfs._Resource created
Throws:
JastorException
See Also:
_Resource.seeAlsoProperty

removeSeeAlso

public void removeSeeAlso(_Resource seeAlso)
                   throws JastorException
Description copied from interface: _Resource
Removes a value for the 'seeAlso' 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:
removeSeeAlso in interface _Resource
Parameters:
seeAlso - The _Resource to remove
Throws:
JastorException
See Also:
_Resource.seeAlsoProperty

removeSeeAlso

public void removeSeeAlso(org.openrdf.model.Resource seeAlso)
                   throws JastorException
Description copied from interface: _Resource
Remove a 'seeAlso' property value. 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:
removeSeeAlso in interface _Resource
Parameters:
seeAlso - _Resource, the value to remove
Throws:
JastorException
See Also:
_Resource.seeAlsoProperty


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