org.openanzo.common.ontology
Interface Role

All Superinterfaces:
CoreThing, GraphThing
All Known Implementing Classes:
RoleImpl

public interface Role
extends GraphThing

Interface for Role ontology class
Use the org.openanzo.common.ontology.AnzoFactory to create instances of this interface.

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


RDF Schema Standard Properties
comment : Class of Roles used by Cart



Field Summary
static org.openrdf.model.URI subRoleOfProperty
          The Anzo Property for subRoleOf
static org.openrdf.model.URI TYPE
          The rdf:type for this ontology class
 
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.
 void removeSubRoleOf(org.openrdf.model.Resource subRoleOf)
          Remove a 'subRoleOf' property value.
 void removeSubRoleOf(Role subRoleOf)
          Removes a value for the 'subRoleOf' property.
 
Methods inherited from interface org.openanzo.jastor.GraphThing
getProperties, getPropertyValue, getPropertyValue, graph, setPropertyValue, setPropertyValue
 
Methods inherited from interface org.openanzo.jastor.CoreThing
clearCache, isRDFType, listStatements, registerListener, removeStatements, resource, unregisterListener, uri
 

Field Detail

TYPE

static final org.openrdf.model.URI TYPE
The rdf:type for this ontology class


subRoleOfProperty

static final org.openrdf.model.URI subRoleOfProperty
The Anzo Property for subRoleOf

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


Method Detail

getSubRoleOf

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

Returns:
Iterator of Role
Throws:
JastorException
See Also:
subRoleOfProperty

addSubRoleOf

void addSubRoleOf(Role subRoleOf)
                  throws JastorException
Adds a value for the 'subRoleOf' property

Parameters:
subRoleOf - The Role to add
Throws:
JastorException
See Also:
subRoleOfProperty

addSubRoleOf

Role addSubRoleOf()
                  throws JastorException
Adds an anonymous value for the 'subRoleOf' property

Returns:
The anoymous Role created
Throws:
JastorException
See Also:
subRoleOfProperty

addSubRoleOf

Role addSubRoleOf(org.openrdf.model.Resource resource)
                  throws JastorException
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.

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

removeSubRoleOf

void removeSubRoleOf(Role subRoleOf)
                     throws JastorException
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.

Parameters:
subRoleOf - The Role to remove
Throws:
JastorException
See Also:
subRoleOfProperty

removeSubRoleOf

void removeSubRoleOf(org.openrdf.model.Resource subRoleOf)
                     throws JastorException
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.

Parameters:
subRoleOf - Role, the value to remove
Throws:
JastorException
See Also:
subRoleOfProperty


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