net.sf.sail.core.beans.assembly
Class IndexedPropertyRef

java.lang.Object
  extended by net.sf.sail.core.beans.assembly.PropertyRef
      extended by net.sf.sail.core.beans.assembly.IndexedPropertyRef

public class IndexedPropertyRef
extends PropertyRef

Version of PropertyRef that points to an index within the property

Author:
turadg
See Also:
PropertyRef

Constructor Summary
IndexedPropertyRef(java.lang.Object target, java.lang.String propertyName, int index)
           
 
Method Summary
 java.lang.Object getCurrentValue()
           
 int getIndex()
           
 void set(java.lang.Object value)
           
 void setIndex(int index)
           
 java.lang.String toString()
           
 
Methods inherited from class net.sf.sail.core.beans.assembly.PropertyRef
getPropertyName, getTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IndexedPropertyRef

public IndexedPropertyRef(java.lang.Object target,
                          java.lang.String propertyName,
                          int index)
Method Detail

getIndex

public int getIndex()

setIndex

public void setIndex(int index)

set

public void set(java.lang.Object value)
         throws java.lang.IllegalAccessException,
                java.lang.reflect.InvocationTargetException,
                java.lang.NoSuchMethodException
Overrides:
set in class PropertyRef
Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException

getCurrentValue

public java.lang.Object getCurrentValue()
                                 throws java.lang.IllegalAccessException,
                                        java.lang.reflect.InvocationTargetException,
                                        java.lang.NoSuchMethodException
Overrides:
getCurrentValue in class PropertyRef
Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
See Also:
PropertyRef.getCurrentValue()

toString

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


Copyright © 2004-2008 TELS Center. All Rights Reserved.