|
||||||||||
| 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
public class DefaultDOMHandlerImpl
Implementation of the default DOMHandler and DOMHelper
| Field Summary | |
|---|---|
protected ExtendedMetaData |
extendedMetaData
|
protected java.util.HashMap<org.w3c.dom.Node,EObject> |
nodeToContainer
store node to container. used only to record some text/cdata nodes |
protected java.util.HashMap<org.w3c.dom.Node,EStructuralFeature> |
nodeToFeature
store node to containment feature mapping |
protected java.util.HashMap<org.w3c.dom.Node,java.lang.Object> |
nodeToObject
store node to actual value mapping |
| Constructor Summary | |
|---|---|
DefaultDOMHandlerImpl()
|
|
| Method Summary | |
|---|---|
EObject |
getContainer(org.w3c.dom.Node node)
|
DOMHelper |
getDOMHelper()
|
EStructuralFeature |
getEStructuralFeature(org.w3c.dom.Node node)
|
java.lang.Object |
getValue(org.w3c.dom.Node node)
|
void |
recordValues(org.w3c.dom.Node node,
EObject container,
EStructuralFeature feature,
java.lang.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 java.util.HashMap<org.w3c.dom.Node,java.lang.Object> nodeToObject
protected final java.util.HashMap<org.w3c.dom.Node,EStructuralFeature> nodeToFeature
protected final java.util.HashMap<org.w3c.dom.Node,EObject> nodeToContainer
protected ExtendedMetaData extendedMetaData
| Constructor Detail |
|---|
public DefaultDOMHandlerImpl()
| Method Detail |
|---|
public EObject getContainer(org.w3c.dom.Node node)
getContainer in interface DOMHelpernode - the DOM node
EObject container that holds the DOM node.public java.lang.Object getValue(org.w3c.dom.Node node)
getValue in interface DOMHelpernode - the attribute Attr or element Element node
EObject
FeatureMap.Entry
List
or Java type (e.g. Stringpublic EStructuralFeature getEStructuralFeature(org.w3c.dom.Node node)
getEStructuralFeature in interface DOMHelpernode - the DOM node
public void recordValues(org.w3c.dom.Node node,
EObject container,
EStructuralFeature feature,
java.lang.Object value)
DOMHandler
recordValues in interface DOMHandlernode - the DOM nodecontainer - the EObject which is the node's containerfeature - the feature for DOM node valuevalue - the EMF value which is obtained by querying the value of the specified feature on the container
EObject.eGet(EStructuralFeature);
this value is used to create the public 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 | |||||||||