Package org.simpleframework.xml.core
Class MethodName
java.lang.Object
org.simpleframework.xml.core.MethodName
The
MethodName
object is used to represent the name
of a Java Bean method. This contains the Java Bean name the type
and the actual method it represents. This allows the scanner to
create MethodPart
objects based on the method type.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMethodName
(Method method, MethodType type, String name) Constructor for theMethodName
objects. -
Method Summary
-
Field Details
-
type
This is the type of method this method name represents. -
method
This is the actual method that this method name represents. -
name
This is the Java Bean method name that is represented.
-
-
Constructor Details
-
MethodName
Constructor for theMethodName
objects. This is used to create a method name representation of a method based on the method type and the Java Bean name of that method.- Parameters:
method
- this is the actual method this is representingtype
- type used to determine if it is a set or getname
- this is the Java Bean property name of the method
-
-
Method Details
-
getName
This provides the name of the method part as acquired from the method name. The name represents the Java Bean property name of the method and is used to pair getter and setter methods.- Returns:
- this returns the Java Bean name of the method part
-
getType
This is the method type for the method part. This is used in the scanning process to determine which type of method a instance represents, this allows set and get methods to be paired.- Returns:
- the method type that this part represents
-
getMethod
This is the method for this point of contact. This is what will be invoked by the serialization or deserialization process when an XML element or attribute is to be used.- Returns:
- this returns the method associated with this
-