org.openanzo.common.ontology
Class RoleImpl

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

public class RoleImpl
extends GraphThingImpl
implements Role

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

(URI: http://openanzo.org/RBAC#Role)



Field Summary
 
Fields inherited from interface org.openanzo.common.ontology.Role
TYPE
 
Method Summary
 Role addSubRoleOf()
          Adds an anonymous value for the 'subRoleOf' property
 Role addSubRoleOf(org.openrdf.model.Resource resource)
          Adds a value for the 'subRoleOf' property.
 void addSubRoleOf(Role subRoleOf)
          Adds a value for the 'subRoleOf' property
 info.aduna.collections.iterators.CloseableIterator<Role> getSubRoleOf()
          Get an Iterator the 'subRoleOf' property values.
 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 removeSubRoleOf(org.openrdf.model.Resource subRoleOf)
          Remove a 'subRoleOf' property value.
 void removeSubRoleOf(Role subRoleOf)
          Removes a value for the 'subRoleOf' property.
 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

getSubRoleOf

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

Specified by:
getSubRoleOf in interface Role
Returns:
Iterator of Role
Throws:
JastorException
See Also:
Role.subRoleOfProperty

addSubRoleOf

public void addSubRoleOf(Role subRoleOf)
                  throws JastorException
Description copied from interface: Role
Adds a value for the 'subRoleOf' property

Specified by:
addSubRoleOf in interface Role
Parameters:
subRoleOf - The Role to add
Throws:
JastorException
See Also:
Role.subRoleOfProperty

addSubRoleOf

public Role addSubRoleOf()
                  throws JastorException
Description copied from interface: Role
Adds an anonymous value for the 'subRoleOf' property

Specified by:
addSubRoleOf in interface Role
Returns:
The anoymous Role created
Throws:
JastorException
See Also:
Role.subRoleOfProperty

addSubRoleOf

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

Specified by:
addSubRoleOf in interface Role
Parameters:
resource - The Resource to add
Returns:
The org.openanzo.common.ontology.Role created
Throws:
JastorException
See Also:
Role.subRoleOfProperty

removeSubRoleOf

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

removeSubRoleOf

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

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.