|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.ecore.xmi.impl.DefaultDOMHandlerImpl
Implementation of the default DOMHandler
and DOMHelper
Field Summary | |
protected ExtendedMetaData |
extendedMetaData
|
protected HashMap |
nodeToContainer
store node to container. used only to record some text/cdata nodes |
protected HashMap |
nodeToFeature
store node to containment feature mapping |
protected HashMap |
nodeToObject
store node to actual value mapping |
Constructor Summary | |
DefaultDOMHandlerImpl()
|
Method Summary | |
EObject |
getContainer(Node node)
|
DOMHelper |
getDOMHelper()
|
EStructuralFeature |
getEStructuralFeature(Node node)
|
Object |
getValue(Node node)
|
void |
recordValues(Node node,
EObject container,
EStructuralFeature feature,
Object value)
Record the DOM node and its corresponding EMF values. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final HashMap nodeToObject
protected final HashMap nodeToFeature
protected final HashMap nodeToContainer
protected ExtendedMetaData extendedMetaData
Constructor Detail |
public DefaultDOMHandlerImpl()
Method Detail |
public EObject getContainer(Node node)
getContainer
in interface DOMHelper
node
- the DOM node
EObject
container that holds the DOM node.public Object getValue(Node node)
getValue
in interface DOMHelper
node
- the attribute Attr
or element Element
node
EObject
FeatureMap.Entry
List
or Java type (e.g. String
public EStructuralFeature getEStructuralFeature(Node node)
getEStructuralFeature
in interface DOMHelper
node
- the DOM node
public void recordValues(Node node, EObject container, EStructuralFeature feature, Object value)
DOMHandler
recordValues
in interface DOMHandler
node
- the DOM nodecontainer
- the EObject
which is the node's containerfeature
- the feature for DOM node valuepublic DOMHelper getDOMHelper()
getDOMHelper
in interface DOMHandler
|
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 |