org.eclipse.emf.ecore.xmi
Interface DOMHelper
- All Known Implementing Classes:
- DefaultDOMHandlerImpl
- public interface DOMHelper
This interface provides methods which given a DOM node return corresponding EMF objects.
- Since:
- 2.1.0
getContainer
public EObject getContainer(Node node)
- Parameters:
node
- the DOM node
- Returns:
- the
EObject
container that holds the DOM node.
getEStructuralFeature
public EStructuralFeature getEStructuralFeature(Node node)
- Parameters:
node
- the DOM node
- Returns:
- the feature for the DOM node value.
getValue
public Object getValue(Node node)
- Parameters:
node
- the attribute Attr
or element Element
node
- Returns:
- the corresponding EMF value, one of:
EObject
FeatureMap.Entry
List
or Java type (e.g. String