Method | Description | |
---|---|---|
GetAnnotation ( Method method ) : Annotation |
This is used to synthesize an XML annotation given a method. The provided method must follow the Java Bean conventions and either be a getter or a setter. If this criteria is satisfied then a suitable XML annotation is created to be used. Typically a match is performed on whether the method type is a Java collection or an array, if neither criteria are true a normal XML element is used. Synthesizing in this way ensures the best results.
|
|
GetInstance ( Method method ) : MethodPart |
This is used to acquire a
|
|
GetInstance ( Method method, Annotation label ) : MethodPart |
This is used to acquire a
|
|
GetMethodType ( Method method ) : MethodType |
This is used to acquire a
|
|
GetName ( Method method, Annotation label ) : |
This is used to acquire a
|
|
GetParameterType ( Method method ) : Class |
This is the parameter type associated with the provided method. The first parameter is returned if the provided method is a setter. If the method takes more than one parameter or if it takes no parameters then null is returned from this.
|
|
GetRead ( Method method, MethodType type ) : |
This is used to acquire a
|
|
GetReturnType ( Method method ) : Class |
This is the return type associated with the provided method. The return type of the method is provided only if the method adheres to the Java Bean conventions regarding getter methods. If the method takes a parameter then this will return null.
|
|
GetType ( Method method ) : Class |
This is used to extract the type from a method. Type type of a method is the return type for a getter and a parameter type for a setter. Such a parameter will only be returned if the method observes the Java Bean conventions for a property method.
|
|
GetTypeName ( String name, MethodType type ) : String |
This is used to acquire the name of the method in a Java Bean property style. Thus any "get", "is", or "set" prefix is removed from the name and the following character is changed to lower case if it does not represent an acronym.
|
|
GetWrite ( Method method, MethodType type ) : |
This is used to acquire a
|
|
MethodPartFactory ( ) : System |
Constructor for the
|
public GetAnnotation ( Method method ) : Annotation | ||
method | Method | /// this is the method to extract the annotation for /// |
return | Annotation |
public GetInstance ( Method method ) : MethodPart | ||
method | Method | /// this is the method to acquire the part for /// |
return | MethodPart |
public GetInstance ( Method method, Annotation label ) : MethodPart | ||
method | Method | /// this is the method to acquire the part for /// |
label | Annotation | /// this is the annotation associated with the method /// |
return | MethodPart |
public GetMethodType ( Method method ) : MethodType | ||
method | Method | /// this is the method to acquire the type for /// |
return | MethodType |
public GetName ( Method method, Annotation label ) : |
||
method | Method | /// this is the method to acquire the name for /// |
label | Annotation | /// this is the annotation associated with the method /// |
return |
public GetParameterType ( Method method ) : Class | ||
method | Method | /// this is the method to get the parameter type for /// |
return | Class |
public GetRead ( Method method, MethodType type ) : |
||
method | Method | /// this is the method to acquire the name for /// |
type | MethodType | /// this is the method type to acquire the name for /// |
return |
public GetReturnType ( Method method ) : Class | ||
method | Method | /// this is the method to get the return type for /// |
return | Class |
public GetType ( Method method ) : Class | ||
method | Method | /// this is the method to acquire the type for /// |
return | Class |
public GetTypeName ( String name, MethodType type ) : String | ||
name | String | /// this is the name of the method to be converted /// |
type | MethodType | /// this is the type of method the name represents /// |
return | String |
public GetWrite ( Method method, MethodType type ) : |
||
method | Method | /// this is the method to acquire the name for /// |
type | MethodType | /// this is the method type to acquire the name for /// |
return |