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, setNode
protected 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 TranslatorAdapter
public boolean isAdapterForType(Object type)
public void load()
TranslatorAdapter
load
in class TranslatorAdapter
public void save()
TranslatorAdapter
save
in class TranslatorAdapter
Copyright © 2005–2015 Sonatype, Inc.. All rights reserved.