Package org.simpleframework.xml.core
Class LabelExtractor.LabelBuilder
java.lang.Object
org.simpleframework.xml.core.LabelExtractor.LabelBuilder
- Enclosing class:
LabelExtractor
The
LabelBuilder object will create a constructor
that can be used to instantiate the correct label for the XML
annotation specified. The constructor requires two arguments
a Contact
and the specified XML annotation.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLabelBuilder
(Class type, Class label) Constructor for theLabelBuilder
object.LabelBuilder
(Class type, Class label, Class entry) Constructor for theLabelBuilder
object. -
Method Summary
Modifier and TypeMethodDescriptionCreates the constructor used to instantiate the label for the XML annotation.private Constructor
getConstructor
(Class label) Creates the constructor used to instantiate the label for the XML annotation.private Constructor
getConstructor
(Class label, Class entry) Creates the constructor used to instantiate the label for the XML annotation.
-
Field Details
-
label
This is the XML annotation type within the constructor. -
entry
This is the individual entry annotation used for the label. -
type
This is the label type that is to be instantiated.
-
-
Constructor Details
-
LabelBuilder
Constructor for theLabelBuilder
object. This pairs the label type with the XML annotation argument used within the constructor. This create the constructor.- Parameters:
type
- this is the label type to be instantiatedlabel
- type that is used within the constructor
-
LabelBuilder
Constructor for theLabelBuilder
object. This pairs the label type with the XML annotation argument used within the constructor. This will create the constructor.- Parameters:
type
- this is the label type to be instantiatedlabel
- type that is used within the constructorentry
- entry that is used within the constructor
-
-
Method Details
-
getConstructor
Creates the constructor used to instantiate the label for the XML annotation. The constructor returned will take two arguments, a contact and the XML annotation type.- Returns:
- returns the constructor for the label object
- Throws:
Exception
-
getConstructor
Creates the constructor used to instantiate the label for the XML annotation. The constructor returned will take two arguments, a contact and the XML annotation type.- Returns:
- returns the constructor for the label object
- Throws:
Exception
-
getConstructor
Creates the constructor used to instantiate the label for the XML annotation. The constructor returned will take two arguments, a contact and the XML annotation type.- Parameters:
label
- this is the XML annotation argument type usedentry
- this is the entry type to use for the label- Returns:
- returns the constructor for the label object
- Throws:
Exception
-