org.apache.commons.clazz.reflect.extended
Class ReflectedMappedProperty

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.extended.ReflectedMappedProperty
All Implemented Interfaces:
ClazzElement, ClazzFeature, ClazzProperty, ReflectedProperty

public class ReflectedMappedProperty
extends ReflectedAccessorPairProperty

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

Constructor Summary
ReflectedMappedProperty(Clazz declaringClazz, String name)
          Constructor for ReflectedMappedProperty.
 
Method Summary
 Object get(Object instance)
           
 Class getContentType()
          Returns the contentType.
 Method getGetMethod()
          Returns the getMethod.
 Method getKeySetMethod()
          Returns the keySetMethod.
 Class getKeyType()
          Returns the keyType.
 Map getMap(Object instance)
           
 Method getPutMethod()
          Returns the putMethod.
 Method getRemoveMethod()
          Returns the removeMethod.
 boolean isMap()
          Returns true if the property is a map.
 void set(Object instance, Object value)
           
 void setContentType(Class valueType)
          Sets the contentType.
 void setGetMethod(Method getMethod)
          Sets the getMethod.
 void setKeySetMethod(Method keySetMethod)
          Sets the keySetMethod.
 void setKeyType(Class keyType)
          Sets the keyType.
 void setPutMethod(Method putMethod)
          Sets the putMethod.
 void setRemoveMethod(Method removeMethod)
          Sets the removeMethod.
 String toString()
           
 
Methods inherited from class org.apache.commons.clazz.reflect.common.ReflectedAccessorPairProperty
getAliases, getClazz, getContentClazz, getField, getKeyClazz, getName, getReadMethod, getType, getWriteMethod, isCollection, 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

ReflectedMappedProperty

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

Parameters:
declaringClazz -
name -
Method Detail

isMap

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

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

getKeyType

public Class getKeyType()
Returns the keyType.

Returns:
Class

setKeyType

public void setKeyType(Class keyType)
Sets the keyType.

Parameters:
keyType - The keyType to set

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

getPutMethod

public Method getPutMethod()
Returns the putMethod.

Returns:
Method

setPutMethod

public void setPutMethod(Method putMethod)
Sets the putMethod.

Parameters:
putMethod - The putMethod 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

getKeySetMethod

public Method getKeySetMethod()
Returns the keySetMethod.

Returns:
Method

setKeySetMethod

public void setKeySetMethod(Method keySetMethod)
Sets the keySetMethod.

Parameters:
keySetMethod - The keySetMethod 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)

getMap

public Map getMap(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.