public interface DataGraph extends Serializable
data objects
along with their metadata, that is, data describing the data. A data graph
also contains a change summary which is used to
record changes made to the objects in the graph.| Modifier and Type | Method and Description |
|---|---|
DataObject |
createRootObject(String namespaceURI,
String typeName)
Creates a new root data object of the
specified type. |
DataObject |
createRootObject(Type type)
Creates a new root data object of the specified type.
|
ChangeSummary |
getChangeSummary()
Returns the
change summary associated with this data
graph. |
DataObject |
getRootObject()
Returns the root
data object of this data graph. |
Type |
getType(String uri,
String typeName)
|
DataObject getRootObject()
data object of this data graph.DataObject.getDataGraph()ChangeSummary getChangeSummary()
change summary associated with this data
graph.ChangeSummary.getDataGraph()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.uri - the namespace URI of a type or the location URI of a resource
containing a type.typeName - name of a type.DataObject createRootObject(String namespaceURI, String typeName)
specified type. An
exception is thrown if a root object exists.namespaceURI - namespace of the type.typeName - name of the type.IllegalStateException - if the root object already exists.createRootObject(Type),
getType(String, String)DataObject createRootObject(Type type)
type - the type of the new root.IllegalStateException - if the root object already exists.createRootObject(String, String)Copyright © 2024. All rights reserved.