Class ElementMapUnionParameter.Contact

java.lang.Object
org.simpleframework.xml.core.ParameterContact<ElementMap>
org.simpleframework.xml.core.ElementMapUnionParameter.Contact
All Implemented Interfaces:
Contact, Type
Enclosing class:
ElementMapUnionParameter

private static class ElementMapUnionParameter.Contact extends ParameterContact<ElementMap>
The Contact represents a contact object that is to be used for a label in order to extract a parameter name. The parameter name is taken from the XML annotation.
  • Constructor Details

    • Contact

      public Contact(ElementMap element, Constructor factory, int index)
      Constructor for the Contact object. This is used to create an object that acts like an adapter so that the label can create a consistent name for the parameter.
      Parameters:
      element - this is the annotation for the parameter
      factory - this is the constructor the parameter is in
      index - this is the index for the parameter
  • Method Details

    • getName

      public String getName()
      This returns the name of the parameter as taken from the XML annotation. The name provided here is taken by the label and used to compose a name consistent with how fields and methods are named by the system.
      Specified by:
      getName in interface Contact
      Specified by:
      getName in class ParameterContact<ElementMap>
      Returns:
      this returns the name of the annotated parameter