Class MethodName

java.lang.Object
org.simpleframework.xml.core.MethodName

class MethodName extends Object
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 Details

    • type

      private MethodType type
      This is the type of method this method name represents.
    • method

      private Method method
      This is the actual method that this method name represents.
    • name

      private String name
      This is the Java Bean method name that is represented.
  • Constructor Details

    • MethodName

      public MethodName(Method method, MethodType type, String name)
      Constructor for the MethodName 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 representing
      type - type used to determine if it is a set or get
      name - this is the Java Bean property name of the method
  • Method Details

    • getName

      public String 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

      public MethodType 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

      public Method 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