|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.ecore.util.BasicExtendedMetaData org.eclipse.emf.mapping.ecore2xml.util.Ecore2XMLExtendedMetaData
public class Ecore2XMLExtendedMetaData
Maps XML elements to Ecore named elements based on registered Ecore2XML mappings.
Nested Class Summary |
---|
Field Summary | |
---|---|
protected Ecore2XMLRegistry |
ecore2xmlRegistry
|
protected java.util.Map<java.lang.String,XMLResource.XMLMap> |
xmlMaps
|
Fields inherited from class org.eclipse.emf.ecore.util.BasicExtendedMetaData |
---|
annotationMap, annotationURI, demandRegistry, extendedMetaDataHolderCache, registry, UNINITIALIZED_EDATA_TYPE, UNINITIALIZED_ESTRUCTURAL_FEATURE, UNINITIALIZED_INT, UNINITIALIZED_STRING |
Constructor Summary | |
---|---|
Ecore2XMLExtendedMetaData()
|
|
Ecore2XMLExtendedMetaData(Ecore2XMLRegistry ecore2xmlRegistry)
|
|
Ecore2XMLExtendedMetaData(EPackage.Registry ePackageRegistry,
Ecore2XMLRegistry ecore2xmlRegistry)
|
|
Ecore2XMLExtendedMetaData(java.lang.String annotationURI,
EPackage.Registry ePackageRegistry,
Ecore2XMLRegistry ecore2xmlRegistry)
|
Method Summary | |
---|---|
protected EClassifier |
getClassifier(java.lang.String namespaceURI,
java.lang.String name)
|
int |
getFeatureKind(EStructuralFeature eStructuralFeature)
Returns the kind of XML structure that should be used to represent the given structural feature. |
protected XMLResource.XMLInfo |
getInfo(ENamedElement element)
|
java.lang.String |
getName(EClassifier eClassifier)
Returns the XML name for a classifier. |
java.lang.String |
getName(EStructuralFeature eStructuralFeature)
Returns the XML name for a structural feature. |
java.lang.String |
getNamespace(EPackage ePackage)
Returns the namespace to use for model instance serializations of the specified package. |
EPackage |
getPackage(java.lang.String namespace)
Retrieves the package with the specified namespace URI from the package registry associated with this instance. |
EClassifier |
getType(EPackage ePackage,
java.lang.String name)
Returns the classifier with the given XML name within the given package. |
protected boolean |
isFeatureKindSpecific()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Ecore2XMLRegistry ecore2xmlRegistry
protected final java.util.Map<java.lang.String,XMLResource.XMLMap> xmlMaps
Constructor Detail |
---|
public Ecore2XMLExtendedMetaData()
public Ecore2XMLExtendedMetaData(Ecore2XMLRegistry ecore2xmlRegistry)
public Ecore2XMLExtendedMetaData(EPackage.Registry ePackageRegistry, Ecore2XMLRegistry ecore2xmlRegistry)
public Ecore2XMLExtendedMetaData(java.lang.String annotationURI, EPackage.Registry ePackageRegistry, Ecore2XMLRegistry ecore2xmlRegistry)
Method Detail |
---|
protected XMLResource.XMLInfo getInfo(ENamedElement element)
protected EClassifier getClassifier(java.lang.String namespaceURI, java.lang.String name)
public EPackage getPackage(java.lang.String namespace)
ExtendedMetaData
getPackage
in interface ExtendedMetaData
getPackage
in class BasicExtendedMetaData
public java.lang.String getName(EClassifier eClassifier)
ExtendedMetaData
details key: "name"
getName
in interface ExtendedMetaData
getName
in class BasicExtendedMetaData
public java.lang.String getName(EStructuralFeature eStructuralFeature)
ExtendedMetaData
details key: "name"
getName
in interface ExtendedMetaData
getName
in class BasicExtendedMetaData
public java.lang.String getNamespace(EPackage ePackage)
ExtendedMetaData
details key: "namespace"
getNamespace
in interface ExtendedMetaData
getNamespace
in class BasicExtendedMetaData
public EClassifier getType(EPackage ePackage, java.lang.String name)
ExtendedMetaData
getType
in interface ExtendedMetaData
getType
in class BasicExtendedMetaData
public int getFeatureKind(EStructuralFeature eStructuralFeature)
ExtendedMetaData
details key: "kind"
getFeatureKind
in interface ExtendedMetaData
getFeatureKind
in class BasicExtendedMetaData
ExtendedMetaData.UNSPECIFIED_FEATURE
,
ExtendedMetaData.SIMPLE_FEATURE
,
ExtendedMetaData.ATTRIBUTE_FEATURE
,
ExtendedMetaData.ATTRIBUTE_WILDCARD_FEATURE
,
ExtendedMetaData.ELEMENT_FEATURE
,
ExtendedMetaData.ELEMENT_WILDCARD_FEATURE
,
ExtendedMetaData.GROUP_FEATURE
protected boolean isFeatureKindSpecific()
isFeatureKindSpecific
in class BasicExtendedMetaData
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |