org.apache.tuscany.sdo.util
Class BasicSequence

java.lang.Object
  extended by org.apache.tuscany.sdo.util.BasicSequence
All Implemented Interfaces:
commonj.sdo.Sequence, org.eclipse.emf.ecore.util.FeatureMap.Internal.Wrapper

public class BasicSequence
extends java.lang.Object
implements commonj.sdo.Sequence, org.eclipse.emf.ecore.util.FeatureMap.Internal.Wrapper

SDO Sequance implementation which delegates to a feature map.


Field Summary
protected  org.eclipse.emf.ecore.util.FeatureMap.Internal featureMap
           
 
Constructor Summary
BasicSequence(org.eclipse.emf.ecore.util.FeatureMap.Internal featureMap)
           
 
Method Summary
 void add(int index, int propertyIndex, java.lang.Object value)
           
 boolean add(int propertyIndex, java.lang.Object value)
           
 void add(int index, commonj.sdo.Property property, java.lang.Object value)
           
 void add(int index, java.lang.String text)
          Deprecated.  
 void add(int index, java.lang.String propertyName, java.lang.Object value)
           
 boolean add(commonj.sdo.Property property, java.lang.Object value)
           
 void add(java.lang.String text)
          Deprecated.  
 boolean add(java.lang.String propertyName, java.lang.Object value)
           
 void addText(int index, java.lang.String text)
           
 void addText(java.lang.String text)
           
 org.eclipse.emf.ecore.util.FeatureMap featureMap()
           
protected  org.eclipse.emf.ecore.EStructuralFeature getEStructuralFeature(int propertyIndex)
           
protected  org.eclipse.emf.ecore.EStructuralFeature getEStructuralFeature(java.lang.String propertyName, java.lang.Object value)
           
static commonj.sdo.Property getFeatureProperty(org.eclipse.emf.ecore.EStructuralFeature feature)
           
 commonj.sdo.Property getProperty(int index)
           
 java.lang.Object getValue(int index)
           
 void move(int toIndex, int fromIndex)
           
 void remove(int index)
           
 java.lang.Object setValue(int index, java.lang.Object value)
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

featureMap

protected org.eclipse.emf.ecore.util.FeatureMap.Internal featureMap
Constructor Detail

BasicSequence

public BasicSequence(org.eclipse.emf.ecore.util.FeatureMap.Internal featureMap)
Method Detail

featureMap

public org.eclipse.emf.ecore.util.FeatureMap featureMap()
Specified by:
featureMap in interface org.eclipse.emf.ecore.util.FeatureMap.Internal.Wrapper

size

public int size()
Specified by:
size in interface commonj.sdo.Sequence

getProperty

public commonj.sdo.Property getProperty(int index)
Specified by:
getProperty in interface commonj.sdo.Sequence

getFeatureProperty

public static commonj.sdo.Property getFeatureProperty(org.eclipse.emf.ecore.EStructuralFeature feature)

getValue

public java.lang.Object getValue(int index)
Specified by:
getValue in interface commonj.sdo.Sequence

setValue

public java.lang.Object setValue(int index,
                                 java.lang.Object value)
Specified by:
setValue in interface commonj.sdo.Sequence

getEStructuralFeature

protected org.eclipse.emf.ecore.EStructuralFeature getEStructuralFeature(java.lang.String propertyName,
                                                                         java.lang.Object value)

getEStructuralFeature

protected org.eclipse.emf.ecore.EStructuralFeature getEStructuralFeature(int propertyIndex)

add

public boolean add(java.lang.String propertyName,
                   java.lang.Object value)
Specified by:
add in interface commonj.sdo.Sequence

add

public boolean add(int propertyIndex,
                   java.lang.Object value)
Specified by:
add in interface commonj.sdo.Sequence

add

public boolean add(commonj.sdo.Property property,
                   java.lang.Object value)
Specified by:
add in interface commonj.sdo.Sequence

add

public void add(int index,
                java.lang.String propertyName,
                java.lang.Object value)
Specified by:
add in interface commonj.sdo.Sequence

add

public void add(int index,
                int propertyIndex,
                java.lang.Object value)
Specified by:
add in interface commonj.sdo.Sequence

add

public void add(int index,
                commonj.sdo.Property property,
                java.lang.Object value)
Specified by:
add in interface commonj.sdo.Sequence

add

public void add(java.lang.String text)
Deprecated. 

Specified by:
add in interface commonj.sdo.Sequence

add

public void add(int index,
                java.lang.String text)
Deprecated. 

Specified by:
add in interface commonj.sdo.Sequence

addText

public void addText(java.lang.String text)
Specified by:
addText in interface commonj.sdo.Sequence

addText

public void addText(int index,
                    java.lang.String text)
Specified by:
addText in interface commonj.sdo.Sequence

remove

public void remove(int index)
Specified by:
remove in interface commonj.sdo.Sequence

move

public void move(int toIndex,
                 int fromIndex)
Specified by:
move in interface commonj.sdo.Sequence

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2007 Apache Software Foundation. All Rights Reserved.