public class ListAdapter extends TranslatorAdapter
Modifier and Type | Field and Description |
---|---|
private org.eclipse.emf.ecore.EClass |
elementType |
protected java.util.List |
list |
node, resource
Constructor and Description |
---|
ListAdapter(SSESyncResource resc,
org.w3c.dom.Element containerNode,
java.util.List<?> list,
org.eclipse.emf.ecore.EClass elementType) |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.Object newValue,
int position) |
protected java.lang.String |
getElementName(java.lang.Object o) |
protected java.lang.Object |
getElementValue(java.lang.Object o) |
protected java.lang.Object |
getObject(org.w3c.dom.Element childElement,
boolean createIfNeeded) |
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 |
remove(java.lang.Object oldValue,
int position) |
void |
save()
Save the xml value of this adapter from the model.
|
void |
update(java.lang.Object oldValue,
java.lang.Object newValue,
int index) |
absoluteIndexOf, createWSAfter, createWSBefore, formatNode, getElementText, getFirstChildWithName, getNode, getNthChildWithName, namedIndexOf, removeChildElement, setNode
protected java.util.List list
private org.eclipse.emf.ecore.EClass elementType
public ListAdapter(SSESyncResource resc, org.w3c.dom.Element containerNode, java.util.List<?> list, org.eclipse.emf.ecore.EClass elementType)
public 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)
public void add(java.lang.Object newValue, int position)
public void remove(java.lang.Object oldValue, int position)
public void update(java.lang.Object oldValue, java.lang.Object newValue, int index)
update
in class TranslatorAdapter
protected java.lang.String getElementName(java.lang.Object o)
protected java.lang.Object getElementValue(java.lang.Object o)
protected java.lang.Object getObject(org.w3c.dom.Element childElement, boolean createIfNeeded)
public boolean isAdapterForType(java.lang.Object type)
public void load()
TranslatorAdapter
load
in class TranslatorAdapter
public void save()
TranslatorAdapter
save
in class TranslatorAdapter