Class LabelExtractor.LabelBuilder

java.lang.Object
org.simpleframework.xml.core.LabelExtractor.LabelBuilder
Enclosing class:
LabelExtractor

private static class LabelExtractor.LabelBuilder extends Object
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 Details

    • label

      private final Class label
      This is the XML annotation type within the constructor.
    • entry

      private final Class entry
      This is the individual entry annotation used for the label.
    • type

      private final Class type
      This is the label type that is to be instantiated.
  • Constructor Details

    • LabelBuilder

      public LabelBuilder(Class type, Class label)
      Constructor for the LabelBuilder 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 instantiated
      label - type that is used within the constructor
    • LabelBuilder

      public LabelBuilder(Class type, Class label, Class entry)
      Constructor for the LabelBuilder 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 instantiated
      label - type that is used within the constructor
      entry - entry that is used within the constructor
  • Method Details

    • getConstructor

      public Constructor getConstructor() throws Exception
      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

      private Constructor getConstructor(Class label) throws Exception
      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

      private Constructor getConstructor(Class label, Class entry) throws Exception
      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 used
      entry - this is the entry type to use for the label
      Returns:
      returns the constructor for the label object
      Throws:
      Exception