|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.plasma.sdo.core.CoreDataGraph
public class CoreDataGraph
| Constructor Summary | |
|---|---|
CoreDataGraph()
|
|
CoreDataGraph(PlasmaDataObject root)
|
|
| Method Summary | |
|---|---|
void |
accept(PlasmaDataGraphEventVisitor visitor)
Begin breadth-first traversal of this DataGraph, the given visitor receiving various events for each graph node traversed. |
void |
accept(PlasmaDataGraphVisitor visitor)
Begin breadth-first traversal of this DataGraph, the given visitor receiving "visit" events for each graph node traversed. |
void |
acceptDepthFirst(PlasmaDataGraphVisitor visitor)
Begin depth-first traversal of this DataGraph, the given visitor receiving "visit" events for each graph node traversed. |
DataObject |
createRootObject(String namespaceURI,
String typeName)
Creates a new root data object of the specified type. |
DataObject |
createRootObject(Type type)
Returns the root data object of this data graph. |
String |
dump()
|
String |
dumpDepthFirst()
|
ChangeSummary |
getChangeSummary()
Returns the change summary associated with this data graph. |
Object |
getId()
Returns an object to be used and managed by client Data Access Services
as an identifier for a Data Graph. |
String |
getPath(DataObject dataObject)
Calculates and returns the path relative to the data-graph root for the given data object. |
DataObject |
getRootObject()
Returns the root data object of this data graph. |
Type |
getType(String uri,
String typeName)
Returns the type with the given the URI,
or contained by the resource at the given URI,
and with the given name. |
UUID |
getUUID()
Returns the UUID for this data graph, which is the same UUID used for the root Data Object. |
String |
getUUIDAsString()
Returns the UUID for this data graph, which is the same UUID used for the root Data Object, as a character string. |
DataObject |
removeRootObject()
Detaches and returns the root data object of this data graph. |
void |
setId(Object id)
Sets an object to be used and managed by client Data Access Services
as an identifier for a Data Graph. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CoreDataGraph()
public CoreDataGraph(PlasmaDataObject root)
| Method Detail |
|---|
public String toString()
toString in class Objectpublic UUID getUUID()
getUUID in interface PlasmaDataGraphpublic String getUUIDAsString()
getUUIDAsString in interface PlasmaDataGraphpublic void setId(Object id)
Data Access Services
as an identifier for a Data Graph.
setId in interface PlasmaDataGraphid - the identifierpublic Object getId()
Data Access Services
as an identifier for a Data Graph.
getId in interface PlasmaDataGraph
public DataObject createRootObject(String namespaceURI,
String typeName)
specified type. An
exception is thrown if a root object exists.
createRootObject in interface DataGraphnamespaceURI - namespace of the type.typeName - name of the type.
IllegalStateException - if the root object already exists.createRootObject(Type),
getType(String, String)public DataObject createRootObject(Type type)
data object of this data graph.
createRootObject in interface DataGraphtype - the type of the new root.
DataObject.getDataGraph()public ChangeSummary getChangeSummary()
change summary associated with this data graph.
getChangeSummary in interface DataGraphChangeSummary.getDataGraph()public DataObject getRootObject()
data object of this data graph.
getRootObject in interface DataGraphDataObject.getDataGraph()public DataObject removeRootObject()
data object of this data graph.
removeRootObject in interface PlasmaDataGraphDataObject.getDataGraph()
public Type getType(String uri,
String typeName)
type with the given the URI,
or contained by the resource at the given URI,
and with the given name.
getType in interface DataGraphuri - the namespace URI of a type or the location URI of a resource containing a type.typeName - name of a type.
public String getPath(DataObject dataObject)
getPath in interface PlasmaDataGraphdataObject - the target data object
public void accept(PlasmaDataGraphVisitor visitor)
accept in interface PlasmaDataGraphvisitor - the graph visitor receiving traversal eventsDataGraph,
DataObject,
PlasmaDataGraph,
PlasmaDataObject,
PlasmaDataGraphVisitor.visit()public void acceptDepthFirst(PlasmaDataGraphVisitor visitor)
acceptDepthFirst in interface PlasmaDataGraphvisitor - the graph visitor receiving traversal eventsDataGraph,
DataObject,
PlasmaDataGraph,
PlasmaDataObject,
PlasmaDataGraphVisitor.visit()public void accept(PlasmaDataGraphEventVisitor visitor)
accept in interface PlasmaDataGraphvisitor - the graph visitor receiving traversal eventsDataGraph,
DataObject,
PlasmaDataGraph,
PlasmaDataObject,
PlasmaDataGraphEventVisitor.start(),
PlasmaDataGraphEventVisitor.end()public String dump()
dump in interface PlasmaDataGraphpublic String dumpDepthFirst()
dumpDepthFirst in interface PlasmaDataGraph
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||