public class CoreDataGraph extends Object implements PlasmaDataGraph
| Constructor and Description |
|---|
CoreDataGraph() |
CoreDataGraph(PlasmaDataObject root) |
| Modifier and Type | Method and Description |
|---|---|
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)
|
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() |
public CoreDataGraph()
public CoreDataGraph(PlasmaDataObject root)
public 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 PlasmaDataGraphpublic 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 DataGraphDataObject.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 String getPath(DataObject dataObject)
getPath in interface PlasmaDataGraphdataObject - the target data objectpublic 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 PlasmaDataGraphCopyright © 2017. All rights reserved.