|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dftproject.genesis.core.data.nodes.ResourceSet
public class ResourceSet
A ResourceSet is used to retrieve all resource nodes matching certain criteria. It also returns all the named "fields" so that you don't have to do a second look up for them.
| Constructor Summary | |
|---|---|
ResourceSet(DataView view)
Creates a resource set based on the given view. |
|
| Method Summary | |
|---|---|
void |
addOptional(IResourceNode predicate)
Adds an optional field. |
void |
addOptional(IResourceNode predicate,
INode object)
Adds an optional field that must match the given object. |
void |
addOptional(IResourceNode predicate,
INode object,
INode defaultObject,
IResourceNode defaultGraph)
Adds an optional field that must match the given object. |
void |
addProperty(IResourceNode predicate,
INode object,
IResourceNode graph)
Adds the given field from the requested resources. |
void |
addRequired(IResourceNode predicate)
Adds a required field |
void |
addRequired(IResourceNode predicate,
IExpression expression)
Adds a required fields that must match the given expression. |
void |
addRequired(IResourceNode predicate,
INode object)
Adds a required field that must match the given object. |
NodeIterator |
getResources()
Returns an iterator to the requested resources. |
void |
removeProperty(IResourceNode predicate,
IResourceNode graph)
Removes the given field from the requested resources. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceSet(DataView view)
view - a data view| Method Detail |
|---|
public void addRequired(IResourceNode predicate)
predicate - the field name
public void addRequired(IResourceNode predicate,
INode object)
predicate - the field nameobject - the object
public void addRequired(IResourceNode predicate,
IExpression expression)
predicate - the field nameexpression - the expressionpublic void addOptional(IResourceNode predicate)
predicate - the field name
public void addOptional(IResourceNode predicate,
INode object)
predicate - the field nameobject - the object
public void addOptional(IResourceNode predicate,
INode object,
INode defaultObject,
IResourceNode defaultGraph)
predicate - the field nameobject - the objectdefaultObject - the default object, for when the requested object
does not existdefaultGraph - the default graph, for when the requested object does
not exist
public NodeIterator getResources()
throws DataException
DataException - if there is a SQL exception
public void removeProperty(IResourceNode predicate,
IResourceNode graph)
throws DataException
predicate - the field namegraph - the graph
DataException - if there is a SQL exception
public void addProperty(IResourceNode predicate,
INode object,
IResourceNode graph)
throws DataException
predicate - the field nameobject - the valuegraph - the graph
DataException - if there is a SQL exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||