Class MethodName


  • class MethodName
    extends java.lang.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 Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.reflect.Method method
      This is the actual method that this method name represents.
      private java.lang.String name
      This is the Java Bean method name that is represented.
      private MethodType type
      This is the type of method this method name represents.
    • Constructor Summary

      Constructors 
      Constructor Description
      MethodName​(java.lang.reflect.Method method, MethodType type, java.lang.String name)
      Constructor for the MethodName objects.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.reflect.Method getMethod()
      This is the method for this point of contact.
      java.lang.String getName()
      This provides the name of the method part as acquired from the method name.
      MethodType getType()
      This is the method type for the method part.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • type

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

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

        private java.lang.String name
        This is the Java Bean method name that is represented.
    • Constructor Detail

      • MethodName

        public MethodName​(java.lang.reflect.Method method,
                          MethodType type,
                          java.lang.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 Detail

      • getName

        public java.lang.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 java.lang.reflect.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