org.apache.commons.clazz.reflect.extended
Class ExtendedReflectedListPropertyIntrospector.RemoveIndexedAccessorMethodParser
java.lang.Object
org.apache.commons.clazz.reflect.common.AccessorMethodParser
org.apache.commons.clazz.reflect.extended.ExtendedReflectedListPropertyIntrospector.RemoveIndexedAccessorMethodParser
- Enclosing class:
- ExtendedReflectedListPropertyIntrospector
public static class ExtendedReflectedListPropertyIntrospector.RemoveIndexedAccessorMethodParser
- extends AccessorMethodParser
Parser for the removeFoo(index)
method:
- Name starts with "remove" followed by capitalized singular
form of the property name
- One integer parameter
Method Summary |
protected int |
requiredParameterCount()
If a method parsed by this parser must have a number or parameters,
override and return that number. |
protected String |
requiredPrefix()
If a method parsed by this parser must have a certain prefix,
override and return a non-null prefix string |
protected boolean |
testParameterType(int index,
Class parameterType)
To check constraints on the type of a parameter, override
and perform the check. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExtendedReflectedListPropertyIntrospector.RemoveIndexedAccessorMethodParser
public ExtendedReflectedListPropertyIntrospector.RemoveIndexedAccessorMethodParser()
requiredPrefix
protected String requiredPrefix()
- Description copied from class:
AccessorMethodParser
- If a method parsed by this parser must have a certain prefix,
override and return a non-null prefix string
- Overrides:
requiredPrefix
in class AccessorMethodParser
requiredParameterCount
protected int requiredParameterCount()
- Description copied from class:
AccessorMethodParser
- If a method parsed by this parser must have a number or parameters,
override and return that number.
- Overrides:
requiredParameterCount
in class AccessorMethodParser
testParameterType
protected boolean testParameterType(int index,
Class parameterType)
- Description copied from class:
AccessorMethodParser
- To check constraints on the type of a parameter, override
and perform the check.
- Overrides:
testParameterType
in class AccessorMethodParser
- Returns:
- boolean True if the return type passes the parser's constraints
Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.