class ValueUpdateAdapter extends TranslatorAdapter implements org.eclipse.wst.sse.core.internal.provisional.INodeAdapter
| Modifier and Type | Field and Description |
|---|---|
private org.eclipse.emf.ecore.EStructuralFeature |
feature |
private java.util.List<org.w3c.dom.Node> |
linkedWhitespaceNodes |
private org.eclipse.emf.ecore.EObject |
modelObject |
node, resource| Constructor and Description |
|---|
ValueUpdateAdapter(SSESyncResource resource,
org.w3c.dom.Element node,
org.eclipse.emf.ecore.EObject object,
org.eclipse.emf.ecore.EStructuralFeature feature) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<org.w3c.dom.Node> |
getLinkedWhitespaceNodes() |
boolean |
isAdapterForType(java.lang.Object type) |
void |
load()
Load the model value from this adapter's xml value
|
void |
notifyChanged(org.eclipse.wst.sse.core.internal.provisional.INodeNotifier notifier,
int eventType,
java.lang.Object changedFeature,
java.lang.Object oldValue,
java.lang.Object newValue,
int pos) |
void |
save()
Save the xml value of this adapter from the model.
|
private void |
setElementTextValue(org.w3c.dom.Element element,
java.lang.Object oldValue,
java.lang.Object newValue)
Sets the text value of an existing node, attempting to preserve whitespace
|
void |
setLinkedWhitespaceNodes(java.util.List<org.w3c.dom.Node> linkedWhitespaceNodes) |
void |
update(java.lang.Object oldValue,
java.lang.Object newValue,
int index) |
absoluteIndexOf, createWSAfter, createWSBefore, formatNode, getElementText, getFirstChildWithName, getNode, getNthChildWithName, namedIndexOf, removeChildElement, setNodeprivate org.eclipse.emf.ecore.EObject modelObject
private org.eclipse.emf.ecore.EStructuralFeature feature
private java.util.List<org.w3c.dom.Node> linkedWhitespaceNodes
public ValueUpdateAdapter(SSESyncResource resource, org.w3c.dom.Element node, org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature)
public boolean isAdapterForType(java.lang.Object type)
isAdapterForType in interface org.eclipse.wst.sse.core.internal.provisional.INodeAdapterpublic void notifyChanged(org.eclipse.wst.sse.core.internal.provisional.INodeNotifier notifier,
int eventType,
java.lang.Object changedFeature,
java.lang.Object oldValue,
java.lang.Object newValue,
int pos)
notifyChanged in interface org.eclipse.wst.sse.core.internal.provisional.INodeAdapterpublic void load()
TranslatorAdapterload in class TranslatorAdapterpublic void save()
TranslatorAdaptersave in class TranslatorAdapterpublic void update(java.lang.Object oldValue,
java.lang.Object newValue,
int index)
update in class TranslatorAdapterprivate void setElementTextValue(org.w3c.dom.Element element,
java.lang.Object oldValue,
java.lang.Object newValue)
element - oldValue - newValue - public java.util.List<org.w3c.dom.Node> getLinkedWhitespaceNodes()
public void setLinkedWhitespaceNodes(java.util.List<org.w3c.dom.Node> linkedWhitespaceNodes)