com.agfa.hap.sdo.implementation
Class DataGraphImplementation

java.lang.Object
  extended by com.agfa.hap.sdo.implementation.DataGraphImplementation
All Implemented Interfaces:
DataGraph, java.io.Serializable

public class DataGraphImplementation
extends java.lang.Object
implements DataGraph, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
DataGraphImplementation()
           
DataGraphImplementation(DataObject rootObject)
           
 
Method Summary
 DataObject createRootObject(java.lang.String namespaceURI, java.lang.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(java.lang.String uri, java.lang.String typeName)
          Returns the type with the given the URI, or contained by the resource at the given URI, and with the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataGraphImplementation

public DataGraphImplementation()

DataGraphImplementation

public DataGraphImplementation(DataObject rootObject)
Method Detail

getRootObject

public DataObject getRootObject()
Description copied from interface: DataGraph
Returns the root data object of this data graph.

Specified by:
getRootObject in interface DataGraph
Returns:
the root data object.
See Also:
DataObject.getDataGraph()

getChangeSummary

public ChangeSummary getChangeSummary()
Description copied from interface: DataGraph
Returns the change summary associated with this data graph.

Specified by:
getChangeSummary in interface DataGraph
Returns:
the change summary.
See Also:
ChangeSummary.getDataGraph()

getType

public Type getType(java.lang.String uri,
                    java.lang.String typeName)
Description copied from interface: DataGraph
Returns the type with the given the URI, or contained by the resource at the given URI, and with the given name.

Specified by:
getType in interface DataGraph
Parameters:
uri - the namespace URI of a type or the location URI of a resource containing a type.
typeName - name of a type.
Returns:
the type with the corresponding namespace and name.

createRootObject

public DataObject createRootObject(java.lang.String namespaceURI,
                                   java.lang.String typeName)
Description copied from interface: DataGraph
Creates a new root data object of the specified type. An exception is thrown if a root object exists.

Specified by:
createRootObject in interface DataGraph
Parameters:
namespaceURI - namespace of the type.
typeName - name of the type.
Returns:
the new root.
See Also:
DataGraph.createRootObject(Type), DataGraph.getType(String, String)

createRootObject

public DataObject createRootObject(Type type)
Description copied from interface: DataGraph
Creates a new root data object of the specified type. An exception is thrown if a root object exists.

Specified by:
createRootObject in interface DataGraph
Parameters:
type - the type of the new root.
Returns:
the new root.
See Also:
DataGraph.createRootObject(String, String)


Copyright © 2007. All Rights Reserved.