Package org.simpleframework.xml.core
Class ParameterFactory.ParameterBuilder
java.lang.Object
org.simpleframework.xml.core.ParameterFactory.ParameterBuilder
- Enclosing class:
ParameterFactory
The
ParameterBuilder is used to create a constructor
that can be used to instantiate the correct parameter for the
XML annotation specified. The constructor requires three
arguments, the constructor, the annotation, and the index.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionParameterBuilder
(Class type, Class label) Constructor for thePameterBuilder
object.ParameterBuilder
(Class type, Class label, Class entry) Constructor for thePameterBuilder
object. -
Method Summary
Modifier and TypeMethodDescriptionCreates the constructor used to instantiate the label for the XML annotation.getConstructor
(Class label) Creates the constructor used to instantiate the parameter for the XML annotation.private Constructor
getConstructor
(Class... types) Creates the constructor used to instantiate the parameter for the XML annotation.getConstructor
(Class label, Class entry) Creates the constructor used to instantiate the parameter for the XML annotation.
-
Field Details
-
entry
This is the entry that is used to create the parameter. -
label
This is the XML annotation type within the constructor. -
type
This is the parameter type that is to be instantiated.
-
-
Constructor Details
-
ParameterBuilder
Constructor for thePameterBuilder
object. This pairs the parameter type with the annotation argument used within the constructor. This allows constructor to be selected.- Parameters:
type
- this is the parameter type to be instantiatedlabel
- the type that is used within the constructor
-
ParameterBuilder
Constructor for thePameterBuilder
object. This pairs the parameter type with the annotation argument used within the constructor. This allows constructor to be selected.- Parameters:
type
- this is the parameter type to be instantiatedlabel
- the type that is used within the constructorentry
- this is the entry used to create the parameter
-
-
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 parameter for the XML annotation. The constructor returned will take two arguments, a contact and the XML annotation type.- Parameters:
label
- the type that is used within the constructor- Returns:
- returns the constructor for the parameter object
- Throws:
Exception
-
getConstructor
Creates the constructor used to instantiate the parameter for the XML annotation. The constructor returned will take two arguments, a contact and the XML annotation type.- Parameters:
label
- the type that is used within the constructorentry
- this is the entry used to create the parameter- Returns:
- returns the constructor for the parameter object
- Throws:
Exception
-
getConstructor
Creates the constructor used to instantiate the parameter for the XML annotation. The constructor returned will take three arguments, a constructor, an annotation and a type.- Parameters:
types
- these are the arguments for the constructor- Returns:
- returns the constructor for the parameter object
- Throws:
Exception
-