Package com.ibm.di.fc.emf
Class GraphObjects
- java.lang.Object
-
- com.ibm.di.fc.emf.GraphObjects
-
@Deprecated public class GraphObjects extends java.lang.Object
Deprecated.This class is used for traversing Data Object structures. It can create Entry Attributes corresponding to the Data Objects in the Data Graph and to add new Data Object to it.
THIS CLASS HAS BEEN DEPRECATED SINCE THE IBM Tivoli Directory Integrator 7.0 RELEASE AND WILL BE COMPLETELY REMOVED IN A FUTURE RELEASE!
-
-
Constructor Summary
Constructors Constructor Description GraphObjects(ResourceHash resHash)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
applyAttribute(org.eclipse.emf.ecore.sdo.EDataObject root, Attribute attribute, java.util.Map prefixToURIMap)
Deprecated.void
applyClassToModel(org.eclipse.emf.ecore.EClass rootClass, java.lang.String featurePath, org.eclipse.emf.ecore.EClass dataType, java.util.Map prefixToURIMap)
Deprecated.java.util.List
getAttributes(org.eclipse.emf.ecore.sdo.EDataObject root, java.util.Map uriToPrefixMap, boolean alwaysPrefix)
Deprecated.
-
-
-
Constructor Detail
-
GraphObjects
@Deprecated public GraphObjects(ResourceHash resHash)
Deprecated.Initializes the object.- Parameters:
resHash
- Specifies the logger used for logging information and errors messages.
-
-
Method Detail
-
getAttributes
@Deprecated public java.util.List getAttributes(org.eclipse.emf.ecore.sdo.EDataObject root, java.util.Map uriToPrefixMap, boolean alwaysPrefix)
Deprecated.Traverse the data graph rooted atroot
and creates Entry Attributes for the Data Objects.- Parameters:
root
- Data Object specifying the root element of the data graph.uriToPrefixMap
- namespace URI to prefix map.alwaysPrefix
- iftrue
the XML element or attribute names are prefixed with namespace URI if no prefix is present.- Returns:
- list with Entry Attributes containing Data Objects from the data graph.
-
applyAttribute
@Deprecated public void applyAttribute(org.eclipse.emf.ecore.sdo.EDataObject root, Attribute attribute, java.util.Map prefixToURIMap) throws java.lang.Exception
Deprecated.Adds the value(s) of the Entry Attribute to the data graph rooted atroot
. The Entry Attribute's name specifies the position of the value(s) in the data graph. If part of the intermediate elements from the root to the values' position do not exists they are also created.- Parameters:
root
- Data Object specifying the root element of the data graph.attribute
- an Entry Attribute which name specifies the position in the data graph where the Entry Attribute's value(s) have to be inserted.prefixToURIMap
- prefix to namespace URI map.- Throws:
java.lang.Exception
- if the Entry Attribute's name contains a non-existing XML element or attribute name according to the XML Schema. if the Entry Attribute's name specifies an XML element or attribute that.
-
applyClassToModel
@Deprecated public void applyClassToModel(org.eclipse.emf.ecore.EClass rootClass, java.lang.String featurePath, org.eclipse.emf.ecore.EClass dataType, java.util.Map prefixToURIMap) throws java.lang.Exception
Deprecated.The method changes the type of a feature in the model specified by path expression defining the nesting of the XML elements.- Parameters:
rootClass
- the root class in the Ecore model.featurePath
- path expression representing the path from to root class to the feature.dataType
- the feature's new data type.prefixToURIMap
- prefix to namespace URI map- Throws:
java.lang.Exception
- if the Entry Attribute's name contains a non-existing XML element or attribute name according to the model.
-
-