|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.fc.emf.ModelParser
@Deprecated public class ModelParser
Utility class providing a set functions related to working with the Ecore
model used by EMF XMLToSDO and SDOToXML Function Components.
THIS CLASS IS DEPRECATED FOR THE IBM Tivoli Directory Integrator 7.0
RELEASE AND WILL BE COMPLETELY REMOVED IN A FUTURE RELEASE!
Field Summary | |
---|---|
static java.lang.String |
DOCROOT_CLASSNAME
Deprecated. The name of the classes used in the Ecore models for the document root classes. |
static java.lang.String |
ROOT_NAME
Deprecated. The name of the XML root object. |
static java.lang.String |
XMLNSPREFIX_FEATURE_NAME
Deprecated. The name of the feature used in the Ecore models for the namespaces maps. |
Constructor Summary | |
---|---|
ModelParser(ResourceHash resHash)
Deprecated. |
Method Summary | |
---|---|
void |
checkPackagesForConformity(java.util.Collection packageCollection,
boolean isNamespaceAware)
Deprecated. |
static org.eclipse.emf.ecore.sdo.EDataObject |
createRootObject(org.eclipse.emf.ecore.EPackage epackage)
Deprecated. |
org.eclipse.emf.ecore.sdo.EDataObject |
createRootObject(java.lang.String xsdFile)
Deprecated. |
org.eclipse.emf.ecore.EStructuralFeature |
getFeature(org.eclipse.emf.ecore.EClass eclass,
java.lang.String name,
java.util.Map prefixToURIMap)
Deprecated. |
static java.lang.String |
getFeatureName(org.eclipse.emf.ecore.EStructuralFeature feature)
Deprecated. |
static java.lang.String |
getFeatureNamespace(org.eclipse.emf.ecore.EStructuralFeature feature)
Deprecated. |
java.util.Collection |
getPackageCollection(java.lang.String xsdFile)
Deprecated. |
static org.eclipse.emf.ecore.EClass |
getRootClass(org.eclipse.emf.ecore.EPackage epackage)
Deprecated. |
static org.eclipse.emf.ecore.EPackage |
getRootPackage(java.util.Collection packageCollection)
Deprecated. |
static int |
getSeparatorPosition(java.lang.String path)
Deprecated. |
static boolean |
isAttribute(org.eclipse.emf.ecore.EStructuralFeature feature)
Deprecated. |
static boolean |
isElement(org.eclipse.emf.ecore.EStructuralFeature feature)
Deprecated. |
static boolean |
isIgnored(java.lang.String name)
Deprecated. |
static boolean |
isSeparator(char c)
Deprecated. |
static java.lang.String |
makeFeaturePath(org.eclipse.emf.ecore.EStructuralFeature feature,
java.lang.String path,
java.util.Map uriToPrefixMap,
boolean alwaysPrefix)
Deprecated. |
java.util.Map |
parseNamespaces(java.lang.String namespaces,
boolean isPrefixToURIMap)
Deprecated. |
static void |
updateFactoryInstances(java.util.Collection packageCollection)
Deprecated. |
static void |
updatePackageRegistry(java.util.Collection packageCollection,
org.eclipse.emf.ecore.EPackage.Registry packageRegistry)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ROOT_NAME
public static final java.lang.String XMLNSPREFIX_FEATURE_NAME
public static final java.lang.String DOCROOT_CLASSNAME
Constructor Detail |
---|
@Deprecated public ModelParser(ResourceHash resHash)
Method Detail |
---|
@Deprecated public static boolean isIgnored(java.lang.String name)
@Deprecated public static boolean isSeparator(char c)
@Deprecated public static java.lang.String getFeatureName(org.eclipse.emf.ecore.EStructuralFeature feature)
feature
object.
@Deprecated public static java.lang.String getFeatureNamespace(org.eclipse.emf.ecore.EStructuralFeature feature)
feature
object.
@Deprecated public static boolean isAttribute(org.eclipse.emf.ecore.EStructuralFeature feature)
feature
object represents an XML
attribute.
@Deprecated public static boolean isElement(org.eclipse.emf.ecore.EStructuralFeature feature)
feature
object represents an XML
element.
@Deprecated public static java.lang.String makeFeaturePath(org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.String path, java.util.Map uriToPrefixMap, boolean alwaysPrefix)
uriToPrefixMap
parameter, or with a namespace URI if a
prefix does not exist and the alwaysPrefix
parameter is
true
.
feature
- EStructuralFeature object that represents an XML element or
attribute.path
- the path expression from the root till the current XML element
or attribute.uriToPrefixMap
- namespace URI to prefix map.alwaysPrefix
- if true
and no prefix is defined for the
namespace of the XML element or attribute, for prefix is used
the namespace URI.@Deprecated public static int getSeparatorPosition(java.lang.String path)
@Deprecated public static org.eclipse.emf.ecore.EPackage getRootPackage(java.util.Collection packageCollection)
packageCollection
- collection of EPackage objects
@Deprecated public static org.eclipse.emf.ecore.sdo.EDataObject createRootObject(org.eclipse.emf.ecore.EPackage epackage)
epackage
package.
epackage
- specifies the package which root class is used in the object
creation
epackage
package. If the package has no root class null
is
returned.@Deprecated public static void updatePackageRegistry(java.util.Collection packageCollection, org.eclipse.emf.ecore.EPackage.Registry packageRegistry)
packageCollection
- a collection of EPackagespackageRegistry
- a package registry@Deprecated public static void updateFactoryInstances(java.util.Collection packageCollection)
packageCollection
- collection of EPackage objects@Deprecated public static org.eclipse.emf.ecore.EClass getRootClass(org.eclipse.emf.ecore.EPackage epackage)
@Deprecated public void checkPackagesForConformity(java.util.Collection packageCollection, boolean isNamespaceAware) throws java.lang.Exception
packageCollection
- the Ecore model package collection.isNamespaceAware
- if true
siblings with case-insensitive equality
in names but from different namespaces will be considered
different.
java.lang.Exception
- if there are siblings with case-insenstive equal names and
the XML elements or attributes are in the same namespace.
java.lang.Exception
- if there are siblings with case-insensitive equal names and
the XML elements or attributes are in different namespaces
but the isNamespaceAware
is false.@Deprecated public java.util.Map parseNamespaces(java.lang.String namespaces, boolean isPrefixToURIMap) throws java.lang.Exception
isPrefixToURIMap
parameter.
namespaces
- string object describing a mapping between prefixes and
namespace URIs. Each mapping is delimited by an end-of-line
character. On each line the prefix is delimited from the
namespace URI by an equal sign.isPrefixToURIMap
- if true
the created map is prefix to URI map,
otherwise it is a URI to prefix map.
namespaces
attribute.
java.lang.Exception
- if the namespace mapping format (prefix=namespaceURI) is not
obeyed.@Deprecated public java.util.Collection getPackageCollection(java.lang.String xsdFile) throws java.lang.Exception
Collection
containing all packages in the
model.
xsdFile
- specifies the location of the XML Schema File.
java.lang.Exception
- if the XML Schema file is not found or is not valid XML
Schema.@Deprecated public org.eclipse.emf.ecore.sdo.EDataObject createRootObject(java.lang.String xsdFile) throws java.lang.Exception
xsdFile
file.
xsdFile
- specifies an XML Schema file.
java.lang.Exception
- if the specified file does not exist or contains an invalid
XML Schema.
java.lang.Exception
- if the XML Schema does not define a root element@Deprecated public org.eclipse.emf.ecore.EStructuralFeature getFeature(org.eclipse.emf.ecore.EClass eclass, java.lang.String name, java.util.Map prefixToURIMap) throws java.lang.Exception
eclass
- the EClass object which features are searched.name
- the name of the XML element or attribute, probably with
namespace prefix.prefixToURIMap
- prefix to namespace URI map.
name
parameter.
java.lang.Exception
- if no feature matches the specified name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |