|
|||||||||
| PREV CLASS SOURCE NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.eclipse.emf.ecore.xmi.impl.XMLMapImpl
This class represents a mapping from Ecore constructs to the XML representation of those constructs. It is used by the XML serializer and deserializer to load and save XML files.
| Field Summary | |
protected java.util.Map |
eClassToFeatures
|
protected java.util.Map |
ecoreToXMLInfo
|
protected java.lang.String |
idAttributeName
|
protected EPackage |
noNamespacePkg
|
protected java.util.Set |
processedEPackages
|
protected java.util.Map |
urisToNamesToClassifiers
|
protected static java.lang.String |
XSD2ECORE
|
| Constructor Summary | |
XMLMapImpl()
Constructor for XMLMap. |
|
| Method Summary | |
void |
add(ENamedElement element,
XMLResource.XMLInfo info)
Add an XMLInfo object for an Ecore construct to the map. |
EClassifier |
getClassifier(java.lang.String namespaceURI,
java.lang.String name)
Returns the EClassifier with the given namespace URI and name. |
EStructuralFeature |
getFeature(EClass eClass,
java.lang.String namespaceURI,
java.lang.String name)
Returns the feature for the given class with the given namespace URI and name. |
java.util.List |
getFeatures(EClass eClass)
Returns the list of features for the given class in the order in which they should be saved. |
java.lang.String |
getIDAttributeName()
Gets the name of the XML attribute that holds IDs. |
XMLResource.XMLInfo |
getInfo(ENamedElement element)
Returns the XMLInfo object for the given Ecore construct, if there is one. |
EPackage |
getNoNamespacePackage()
Gets the package to use when namespaces are not used. |
void |
setIDAttributeName(java.lang.String name)
Sets the name of the XML attribute that holds IDs. |
void |
setNoNamespacePackage(EPackage pkg)
Sets the package to use when namespaces are not used in an XML file; this affects loading only. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final java.lang.String XSD2ECORE
protected java.util.Map ecoreToXMLInfo
protected EPackage noNamespacePkg
protected java.lang.String idAttributeName
protected java.util.Map urisToNamesToClassifiers
protected java.util.Map eClassToFeatures
protected java.util.Set processedEPackages
| Constructor Detail |
public XMLMapImpl()
| Method Detail |
public void add(ENamedElement element,
XMLResource.XMLInfo info)
add in interface XMLResource.XMLMappublic XMLResource.XMLInfo getInfo(ENamedElement element)
getInfo in interface XMLResource.XMLMappublic void setNoNamespacePackage(EPackage pkg)
XMLResource.XMLMapsetNoNamespacePackage in interface XMLResource.XMLMappublic EPackage getNoNamespacePackage()
XMLResource.XMLMapgetNoNamespacePackage in interface XMLResource.XMLMappublic void setIDAttributeName(java.lang.String name)
XMLResource.XMLMapsetIDAttributeName in interface XMLResource.XMLMappublic java.lang.String getIDAttributeName()
XMLResource.XMLMapgetIDAttributeName in interface XMLResource.XMLMap
public EClassifier getClassifier(java.lang.String namespaceURI,
java.lang.String name)
XMLResource.XMLMapgetClassifier in interface XMLResource.XMLMap
public EStructuralFeature getFeature(EClass eClass,
java.lang.String namespaceURI,
java.lang.String name)
XMLResource.XMLMapgetFeature in interface XMLResource.XMLMappublic java.util.List getFeatures(EClass eClass)
XMLResource.XMLMapgetFeatures in interface XMLResource.XMLMap
|
Copyright 2001-2003 IBM Corporation and others. All Rights Reserved. |
||||||||
| PREV CLASS SOURCE NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||