org.eclipse.emf.databinding
Class IEMFListProperty.ListElementAccess<O>

java.lang.Object
  extended by org.eclipse.emf.databinding.IEMFListProperty.ListElementAccess<O>
Type Parameters:
O -
Enclosing interface:
IEMFListProperty

public abstract static class IEMFListProperty.ListElementAccess<O>
extends java.lang.Object

PROVISIONAL: This API is subject to arbitrary change, including renaming or removal.

This API is highly experimental and if possible will get moved upwards to Core-Databinding

Delegate used to read/write an element of an observed list

Since:
2.7

Nested Class Summary
static class IEMFListProperty.ListElementAccess.WriteData
          PROVISIONAL: This API is subject to arbitrary change, including renaming or removal.
 
Constructor Summary
IEMFListProperty.ListElementAccess()
           
 
Method Summary
abstract  int getReadValueIndex(java.util.List<O> list)
          The index in the list the value is read from or IEMFListProperty.ListElementAccess.WriteData.NO_INDEX if not available
 IEMFListProperty.ListElementAccess.WriteData getWriteValueData(java.util.List<O> list)
          The data used to add/replace when writing the value back to the list
abstract  int getWriteValueIndex(java.util.List<O> list)
          The index in the list the value is written to or IEMFListProperty.ListElementAccess.WriteData.NO_INDEX if appended
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IEMFListProperty.ListElementAccess

public IEMFListProperty.ListElementAccess()
Method Detail

getReadValueIndex

public abstract int getReadValueIndex(java.util.List<O> list)
The index in the list the value is read from or IEMFListProperty.ListElementAccess.WriteData.NO_INDEX if not available

Parameters:
list - the list to search in
Returns:
the index or IEMFListProperty.ListElementAccess.WriteData.NO_INDEX if not found

getWriteValueIndex

public abstract int getWriteValueIndex(java.util.List<O> list)
The index in the list the value is written to or IEMFListProperty.ListElementAccess.WriteData.NO_INDEX if appended

Parameters:
list - the list the value will is written in
Returns:
The index in the list the value is written to or IEMFListProperty.ListElementAccess.WriteData.NO_INDEX if appended

getWriteValueData

public IEMFListProperty.ListElementAccess.WriteData getWriteValueData(java.util.List<O> list)
The data used to add/replace when writing the value back to the list

Parameters:
list - the list the value will is written in
Returns:
the data

Copyright 2001-2012 IBM Corporation and others.
All Rights Reserved.