org.apache.commons.clazz.reflect.common
Class ReflectedListProperty

java.lang.Object
  extended by org.apache.commons.clazz.common.ClazzElementSupport
      extended by org.apache.commons.clazz.common.ClazzFeatureSupport
          extended by org.apache.commons.clazz.reflect.common.ReflectedAccessorPairProperty
              extended by org.apache.commons.clazz.reflect.common.ReflectedListProperty
All Implemented Interfaces:
ClazzElement, ClazzFeature, ClazzProperty, ReflectedProperty

public class ReflectedListProperty
extends ReflectedAccessorPairProperty

Version:
$Id: ReflectedListProperty.java 155436 2005-02-26 13:17:48Z dirkv $
Author:
Dmitri Plotnikov

Constructor Summary
ReflectedListProperty(Clazz declaringClazz, String name)
          Constructor for ReflectedListProperty.
 
Method Summary
 Object get(Object instance)
           
 Method getAddIndexedMethod()
          Returns the addIndexedMethod.
 Method getAddMethod()
          Returns the addMethod.
 Class getContentType()
          Returns the contentType.
 Method getGetMethod()
          Returns the getMethod.
 Object getList(Object instance)
           
 Method getRemoveIndexedMethod()
          Returns the removeIndexedMethod.
 Method getRemoveMethod()
          Returns the removeMethod.
 Method getSetMethod()
          Returns the setMethod.
 Method getSizeMethod()
          Returns the sizeMethod.
 boolean isCollection()
          Returns true if the property is a collection.
 void set(Object instance, Object value)
           
 void setAddIndexedMethod(Method addIndexedMethod)
          Sets the addIndexedMethod.
 void setAddMethod(Method addMethod)
          Sets the addMethod.
 void setContentType(Class valueType)
          Sets the contentType.
 void setGetMethod(Method getMethod)
          Sets the getMethod.
 void setRemoveIndexedMethod(Method removeIndexedMethod)
          Sets the removeIndexedMethod.
 void setRemoveMethod(Method removeMethod)
          Sets the removeMethod.
 void setSetMethod(Method setMethod)
          Sets the setMethod.
 void setSizeMethod(Method sizeMethod)
          Sets the sizeMethod.
 String toString()
           
 
Methods inherited from class org.apache.commons.clazz.reflect.common.ReflectedAccessorPairProperty
getAliases, getClazz, getContentClazz, getField, getKeyClazz, getName, getReadMethod, getType, getWriteMethod, isMap, isReadOnly, setAliases, setField, setReadMethod, setType, setWriteMethod
 
Methods inherited from class org.apache.commons.clazz.common.ClazzFeatureSupport
getDeclaringClazz
 
Methods inherited from class org.apache.commons.clazz.common.ClazzElementSupport
getAttribute, getAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.commons.clazz.ClazzFeature
getDeclaringClazz
 
Methods inherited from interface org.apache.commons.clazz.ClazzElement
getAttribute, getAttributes
 

Constructor Detail

ReflectedListProperty

public ReflectedListProperty(Clazz declaringClazz,
                             String name)
Constructor for ReflectedListProperty.

Parameters:
declaringClazz -
name -
Method Detail

isCollection

public boolean isCollection()
Description copied from interface: ClazzProperty
Returns true if the property is a collection.

Specified by:
isCollection in interface ClazzProperty
Overrides:
isCollection in class ReflectedAccessorPairProperty
See Also:
ClazzProperty.isCollection()

getContentType

public Class getContentType()
Returns the contentType.

Returns:
Class

setContentType

public void setContentType(Class valueType)
Sets the contentType.

Parameters:
contentType - The contentType to set

getGetMethod

public Method getGetMethod()
Returns the getMethod.

Returns:
Method

setGetMethod

public void setGetMethod(Method getMethod)
Sets the getMethod.

Parameters:
getMethod - The getMethod to set

getSetMethod

public Method getSetMethod()
Returns the setMethod.

Returns:
Method

setSetMethod

public void setSetMethod(Method setMethod)
Sets the setMethod.

Parameters:
setMethod - The setMethod to set

getAddMethod

public Method getAddMethod()
Returns the addMethod.

Returns:
Method

setAddMethod

public void setAddMethod(Method addMethod)
Sets the addMethod.

Parameters:
addMethod - The addMethod to set

getAddIndexedMethod

public Method getAddIndexedMethod()
Returns the addIndexedMethod.

Returns:
Method

setAddIndexedMethod

public void setAddIndexedMethod(Method addIndexedMethod)
Sets the addIndexedMethod.

Parameters:
addIndexedMethod - The addIndexedMethod to set

getRemoveMethod

public Method getRemoveMethod()
Returns the removeMethod.

Returns:
Method

setRemoveMethod

public void setRemoveMethod(Method removeMethod)
Sets the removeMethod.

Parameters:
removeMethod - The removeMethod to set

getRemoveIndexedMethod

public Method getRemoveIndexedMethod()
Returns the removeIndexedMethod.

Returns:
Method

setRemoveIndexedMethod

public void setRemoveIndexedMethod(Method removeIndexedMethod)
Sets the removeIndexedMethod.

Parameters:
removeIndexedMethod - The removeIndexedMethod to set

getSizeMethod

public Method getSizeMethod()
Returns the sizeMethod.

Returns:
Method

setSizeMethod

public void setSizeMethod(Method sizeMethod)
Sets the sizeMethod.

Parameters:
sizeMethod - The sizeMethod to set

toString

public String toString()
Overrides:
toString in class Object

get

public Object get(Object instance)
Specified by:
get in interface ClazzProperty
Overrides:
get in class ReflectedAccessorPairProperty
See Also:
ClazzProperty.get(java.lang.Object)

getList

public Object getList(Object instance)

set

public void set(Object instance,
                Object value)
Specified by:
set in interface ClazzProperty
Overrides:
set in class ReflectedAccessorPairProperty
See Also:
ClazzProperty.set(Object, Object)


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.