public class ListAdapter extends TranslatorAdapter
| Modifier and Type | Field and Description |
|---|---|
protected List |
list |
node, resource| Constructor and Description |
|---|
ListAdapter(SSESyncResource resc,
Element containerNode,
List<?> list,
org.eclipse.emf.ecore.EClass elementType) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Object newValue,
int position) |
protected String |
getElementName(Object o) |
protected Object |
getElementValue(Object o) |
protected Object |
getObject(Element childElement,
boolean createIfNeeded) |
boolean |
isAdapterForType(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,
Object changedFeature,
Object oldValue,
Object newValue,
int pos) |
void |
remove(Object oldValue,
int position) |
void |
save()
Save the xml value of this adapter from the model.
|
void |
update(Object oldValue,
Object newValue,
int index) |
absoluteIndexOf, createWSAfter, createWSBefore, formatNode, getElementText, getFirstChildWithName, getNode, getNthChildWithName, namedIndexOf, removeChildElement, setNodeprotected List list
public ListAdapter(SSESyncResource resc, Element containerNode, List<?> list, org.eclipse.emf.ecore.EClass elementType)
public void notifyChanged(org.eclipse.wst.sse.core.internal.provisional.INodeNotifier notifier,
int eventType,
Object changedFeature,
Object oldValue,
Object newValue,
int pos)
public void add(Object newValue, int position)
public void remove(Object oldValue, int position)
public void update(Object oldValue, Object newValue, int index)
update in class TranslatorAdapterpublic boolean isAdapterForType(Object type)
public void load()
TranslatorAdapterload in class TranslatorAdapterpublic void save()
TranslatorAdaptersave in class TranslatorAdapterCopyright © 2005–2021 Eclipse Foundation. All rights reserved.