org.openanzo.common.ontology
Class NamedGraphImpl

java.lang.Object
  extended by org.openanzo.jastor.GraphThingImpl
      extended by org.openanzo.common.ontology.NamedGraphImpl
All Implemented Interfaces:
NamedGraph, CoreThing, GraphThing

public class NamedGraphImpl
extends GraphThingImpl
implements NamedGraph

Implementation of NamedGraph Use the org.openanzo.common.ontology.AnzoFactory to create instances of this class.

(URI: http://openanzo.org/types/NamedGraph)



Field Summary
 
Fields inherited from interface org.openanzo.common.ontology.NamedGraph
TYPE
 
Method Summary
 User addCreatedBy()
          Adds an anonymous value for the 'createdBy' property
 User addCreatedBy(org.openrdf.model.Resource resource)
          Adds a value for the 'createdBy' property.
 void addCreatedBy(User createdBy)
          Adds a value for the 'createdBy' property
 User addLastModifiedByUser()
          Adds an anonymous value for the 'lastModifiedByUser' property
 User addLastModifiedByUser(org.openrdf.model.Resource resource)
          Adds a value for the 'lastModifiedByUser' property.
 void addLastModifiedByUser(User lastModifiedByUser)
          Adds a value for the 'lastModifiedByUser' property
 info.aduna.collections.iterators.CloseableIterator<User> getCreatedBy()
          Get an Iterator the 'createdBy' property values.
 java.lang.String getHasMetadataGraph()
          Gets the 'hasMetadataGraph' property value
 info.aduna.collections.iterators.CloseableIterator<User> getLastModifiedByUser()
          Get an Iterator the 'lastModifiedByUser' property values.
 java.util.Calendar getModified()
          Gets the 'modified' property value
 java.lang.Long getRevision()
          Gets the 'revision' property value
 ACL getUsesAcl()
          Gets the 'usesAcl' property value
 java.util.Collection<org.openrdf.model.Statement> listStatements()
          Get set of statements that makeup this THINGS's properties and types
 void registerListener(ThingListener listener)
          Register a ThingListener for this THING
 void removeCreatedBy(org.openrdf.model.Resource createdBy)
          Remove a 'createdBy' property value.
 void removeCreatedBy(User createdBy)
          Removes a value for the 'createdBy' property.
 void removeLastModifiedByUser(org.openrdf.model.Resource lastModifiedByUser)
          Remove a 'lastModifiedByUser' property value.
 void removeLastModifiedByUser(User lastModifiedByUser)
          Removes a value for the 'lastModifiedByUser' property.
 void setHasMetadataGraph(java.lang.String hasMetadataGraph)
          Sets the 'hasMetadataGraph' property value
 void setModified(java.util.Calendar modified)
          Sets the 'modified' property value
 void setRevision(java.lang.Long revision)
          Sets the 'revision' property value
 ACL setUsesAcl()
          Sets the 'usesAcl' property value to an anonymous node
 void setUsesAcl(ACL usesAcl)
          Sets the 'usesAcl' property value
 ACL setUsesAcl(org.openrdf.model.Resource resource)
          Sets the 'usesAcl' property value to the given resource, and add's rdf:type properties.
 void unregisterListener(ThingListener listener)
          Unregister a ThingListener for this THING
 
Methods inherited from class org.openanzo.jastor.GraphThingImpl
clearCache, equals, getLiteral, getLiteralValue, getProperties, getPropertyValue, getPropertyValue, graph, isRDFType, removeStatements, resource, setPropertyValue, setPropertyValue, toString, 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, removeStatements, resource, 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

getHasMetadataGraph

public java.lang.String getHasMetadataGraph()
                                     throws JastorException
Description copied from interface: NamedGraph
Gets the 'hasMetadataGraph' property value

Specified by:
getHasMetadataGraph in interface NamedGraph
Returns:
String
Throws:
JastorException
See Also:
NamedGraph.hasMetadataGraphProperty

setHasMetadataGraph

public void setHasMetadataGraph(java.lang.String hasMetadataGraph)
                         throws JastorException
Description copied from interface: NamedGraph
Sets the 'hasMetadataGraph' property value

Specified by:
setHasMetadataGraph in interface NamedGraph
Parameters:
hasMetadataGraph - String
Throws:
JastorException
See Also:
NamedGraph.hasMetadataGraphProperty

getModified

public java.util.Calendar getModified()
                               throws JastorException
Description copied from interface: NamedGraph
Gets the 'modified' property value

Specified by:
getModified in interface NamedGraph
Returns:
Calendar
Throws:
JastorException
See Also:
NamedGraph.modifiedProperty

setModified

public void setModified(java.util.Calendar modified)
                 throws JastorException
Description copied from interface: NamedGraph
Sets the 'modified' property value

Specified by:
setModified in interface NamedGraph
Parameters:
modified - Calendar
Throws:
JastorException
See Also:
NamedGraph.modifiedProperty

getRevision

public java.lang.Long getRevision()
                           throws JastorException
Description copied from interface: NamedGraph
Gets the 'revision' property value

Specified by:
getRevision in interface NamedGraph
Returns:
Long
Throws:
JastorException
See Also:
NamedGraph.revisionProperty

setRevision

public void setRevision(java.lang.Long revision)
                 throws JastorException
Description copied from interface: NamedGraph
Sets the 'revision' property value

Specified by:
setRevision in interface NamedGraph
Parameters:
revision - Long
Throws:
JastorException
See Also:
NamedGraph.revisionProperty

getCreatedBy

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

Specified by:
getCreatedBy in interface NamedGraph
Returns:
Iterator of User
Throws:
JastorException
See Also:
NamedGraph.createdByProperty

addCreatedBy

public void addCreatedBy(User createdBy)
                  throws JastorException
Description copied from interface: NamedGraph
Adds a value for the 'createdBy' property

Specified by:
addCreatedBy in interface NamedGraph
Parameters:
createdBy - The User to add
Throws:
JastorException
See Also:
NamedGraph.createdByProperty

addCreatedBy

public User addCreatedBy()
                  throws JastorException
Description copied from interface: NamedGraph
Adds an anonymous value for the 'createdBy' property

Specified by:
addCreatedBy in interface NamedGraph
Returns:
The anoymous User created
Throws:
JastorException
See Also:
NamedGraph.createdByProperty

addCreatedBy

public User addCreatedBy(org.openrdf.model.Resource resource)
                  throws JastorException
Description copied from interface: NamedGraph
Adds a value for the 'createdBy' property. This method is equivalent constructing a new instance of User with the factory and calling addCreatedBy(org.openanzo.common.ontology.User createdBy) The resource argument have rdf:type http://openanzo.org/RBAC#User. That is, this method should not be used as a shortcut for creating new objects in the model.

Specified by:
addCreatedBy in interface NamedGraph
Parameters:
resource - The Resource to add
Returns:
The org.openanzo.common.ontology.User created
Throws:
JastorException
See Also:
NamedGraph.createdByProperty

removeCreatedBy

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

removeCreatedBy

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

getLastModifiedByUser

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

Specified by:
getLastModifiedByUser in interface NamedGraph
Returns:
Iterator of User
Throws:
JastorException
See Also:
NamedGraph.lastModifiedByUserProperty

addLastModifiedByUser

public void addLastModifiedByUser(User lastModifiedByUser)
                           throws JastorException
Description copied from interface: NamedGraph
Adds a value for the 'lastModifiedByUser' property

Specified by:
addLastModifiedByUser in interface NamedGraph
Parameters:
lastModifiedByUser - The User to add
Throws:
JastorException
See Also:
NamedGraph.lastModifiedByUserProperty

addLastModifiedByUser

public User addLastModifiedByUser()
                           throws JastorException
Description copied from interface: NamedGraph
Adds an anonymous value for the 'lastModifiedByUser' property

Specified by:
addLastModifiedByUser in interface NamedGraph
Returns:
The anoymous User created
Throws:
JastorException
See Also:
NamedGraph.lastModifiedByUserProperty

addLastModifiedByUser

public User addLastModifiedByUser(org.openrdf.model.Resource resource)
                           throws JastorException
Description copied from interface: NamedGraph
Adds a value for the 'lastModifiedByUser' property. This method is equivalent constructing a new instance of User with the factory and calling addLastModifiedByUser(org.openanzo.common.ontology.User lastModifiedByUser) The resource argument have rdf:type http://openanzo.org/RBAC#User. That is, this method should not be used as a shortcut for creating new objects in the model.

Specified by:
addLastModifiedByUser in interface NamedGraph
Parameters:
resource - The Resource to add
Returns:
The org.openanzo.common.ontology.User created
Throws:
JastorException
See Also:
NamedGraph.lastModifiedByUserProperty

removeLastModifiedByUser

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

removeLastModifiedByUser

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

getUsesAcl

public ACL getUsesAcl()
               throws JastorException
Description copied from interface: NamedGraph
Gets the 'usesAcl' property value

Specified by:
getUsesAcl in interface NamedGraph
Returns:
ACL
Throws:
JastorException
See Also:
NamedGraph.usesAclProperty

setUsesAcl

public void setUsesAcl(ACL usesAcl)
                throws JastorException
Description copied from interface: NamedGraph
Sets the 'usesAcl' property value

Specified by:
setUsesAcl in interface NamedGraph
Parameters:
usesAcl - ACL
Throws:
JastorException
See Also:
NamedGraph.usesAclProperty

setUsesAcl

public ACL setUsesAcl()
               throws JastorException
Description copied from interface: NamedGraph
Sets the 'usesAcl' property value to an anonymous node

Specified by:
setUsesAcl in interface NamedGraph
Returns:
ACL, the created value
Throws:
JastorException
See Also:
NamedGraph.usesAclProperty

setUsesAcl

public ACL setUsesAcl(org.openrdf.model.Resource resource)
               throws JastorException
Description copied from interface: NamedGraph
Sets the 'usesAcl' property value to the given resource, and add's rdf:type properties. This method is equivalent constructing a new instance of ACL with the factory. and calling setUsesAcl(org.openanzo.common.ontology.ACL usesAcl) The resource argument have rdf:type http://openanzo.org/RBAC#ACL. That is, this method should not be used as a shortcut for creating new objects in the model.

Specified by:
setUsesAcl in interface NamedGraph
Parameters:
resource - Resource must not be be null.
Returns:
ACL, the newly created value
Throws:
JastorException
See Also:
NamedGraph.usesAclProperty

registerListener

public void registerListener(ThingListener listener)
Description copied from interface: CoreThing
Register a ThingListener for this THING

Specified by:
registerListener in interface CoreThing
Overrides:
registerListener in class GraphThingImpl
Parameters:
listener - ThingListener

unregisterListener

public void unregisterListener(ThingListener listener)
Description copied from interface: CoreThing
Unregister a ThingListener for this THING

Specified by:
unregisterListener in interface CoreThing
Overrides:
unregisterListener in class GraphThingImpl
Parameters:
listener - ThingListener


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