Package org.simpleframework.xml.core
Class ElementMapParameter.Contact
- java.lang.Object
-
- org.simpleframework.xml.core.ParameterContact<ElementMap>
-
- org.simpleframework.xml.core.ElementMapParameter.Contact
-
- Enclosing class:
- ElementMapParameter
private static class ElementMapParameter.Contact extends ParameterContact<ElementMap>
TheContact
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 Summary
Constructors Constructor Description Contact(ElementMap label, java.lang.reflect.Constructor factory, int index)
Constructor for theContact
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
This returns the name of the parameter as taken from the XML annotation.-
Methods inherited from class org.simpleframework.xml.core.ParameterContact
get, getAnnotation, getAnnotation, getDeclaringClass, getDependent, getDependents, getType, isReadOnly, set, toString
-
-
-
-
Constructor Detail
-
Contact
public Contact(ElementMap label, java.lang.reflect.Constructor factory, int index)
Constructor for theContact
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:
label
- this is the annotation for the parameterfactory
- this is the constructor the parameter is inindex
- this is the index for the parameter
-
-
Method Detail
-
getName
public java.lang.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 interfaceContact
- Specified by:
getName
in classParameterContact<ElementMap>
- Returns:
- this returns the name of the annotated parameter
-
-