Package org.glassfish.hk2.xml.internal
Class MethodInformation
java.lang.Object
org.glassfish.hk2.xml.internal.MethodInformation
- All Implemented Interfaces:
MethodInformationI
Information needed for proxy from a method
- Author:
- jwells
-
Constructor Summary
ConstructorsConstructorDescriptionMethodInformation(AltMethod originalMethod, MethodType methodType, String decapitalizedMethodProperty, QName representedProperty, String defaultValue, AltClass baseChildType, AltClass gsType, boolean key, boolean isList, boolean isArray, boolean isReference, Format format, AltClass listParameterizedType, String xmlWrapperTag, AdapterInformation adapterInfo, boolean required, String originalMethodName) -
Method Summary
Modifier and TypeMethodDescriptionReturns information about the type adapter for this method.Returns the parameterized type of the list, or null if this is not a list or the type of the list is unknownThe name of the method upon which the annotation was found.booleanisArray()booleanisKey()booleanisList()booleanbooleantoString()
-
Constructor Details
-
MethodInformation
public MethodInformation(AltMethod originalMethod, MethodType methodType, String decapitalizedMethodProperty, QName representedProperty, String defaultValue, AltClass baseChildType, AltClass gsType, boolean key, boolean isList, boolean isArray, boolean isReference, Format format, AltClass listParameterizedType, String xmlWrapperTag, AdapterInformation adapterInfo, boolean required, String originalMethodName)
-
-
Method Details
-
getOriginalMethod
- Specified by:
getOriginalMethodin interfaceMethodInformationI- Returns:
- the originalMethod
-
getMethodType
- Specified by:
getMethodTypein interfaceMethodInformationI- Returns:
- the methodType
-
getGetterSetterType
- Specified by:
getGetterSetterTypein interfaceMethodInformationI- Returns:
- the getterSetterType
-
getRepresentedProperty
- Specified by:
getRepresentedPropertyin interfaceMethodInformationI- Returns:
- the representedProperty
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceMethodInformationI- Returns:
- the defaultValue
-
getBaseChildType
- Specified by:
getBaseChildTypein interfaceMethodInformationI- Returns:
- the baseChildType
-
isKey
public boolean isKey()- Specified by:
isKeyin interfaceMethodInformationI- Returns:
- true if this is a method that returns a key
-
isList
public boolean isList()- Specified by:
isListin interfaceMethodInformationI- Returns:
- true if the method is for a List
-
isArray
public boolean isArray()- Specified by:
isArrayin interfaceMethodInformationI- Returns:
- true if the method is for an array
-
isReference
public boolean isReference()- Specified by:
isReferencein interfaceMethodInformationI- Returns:
- true if this is a reference method
-
isRequired
public boolean isRequired()- Specified by:
isRequiredin interfaceMethodInformationI- Returns:
- true if this is a required field
-
getDecapitalizedMethodProperty
- Specified by:
getDecapitalizedMethodPropertyin interfaceMethodInformationI- Returns:
- The decapitilized version of the property name
-
getFormat
- Specified by:
getFormatin interfaceMethodInformationI- Returns:
- Attribute, Element or Value
-
getListParameterizedType
Description copied from interface:MethodInformationIReturns the parameterized type of the list, or null if this is not a list or the type of the list is unknown- Specified by:
getListParameterizedTypein interfaceMethodInformationI- Returns:
- The fully qualified class name of the lists parameterized type
-
getWrapperTag
- Specified by:
getWrapperTagin interfaceMethodInformationI- Returns:
- The wrapper tag or null if there is none
-
getAdapterInformation
Description copied from interface:MethodInformationIReturns information about the type adapter for this method. Returns null if there is no adapter- Specified by:
getAdapterInformationin interfaceMethodInformationI- Returns:
- The adapter information on this method or null if there is none
-
getOriginalMethodName
Description copied from interface:MethodInformationIThe name of the method upon which the annotation was found. May be useful in add-on parsers that need to find other annotations on the method- Specified by:
getOriginalMethodNamein interfaceMethodInformationI- Returns:
- The name of the original method on the interface
-
toString
-