Class AbstractXMLObjectBuilder<XMLObjectType extends XMLObject>

    • Constructor Detail

      • AbstractXMLObjectBuilder

        public AbstractXMLObjectBuilder()
    • Method Detail

      • buildObject

        @Nonnull
        public XMLObjectType buildObject​(@Nonnull
                                         QName objectName,
                                         @Nullable
                                         QName schemaType)
        Creates an XMLObject with a given fully qualified name and schema type.
        Specified by:
        buildObject in interface XMLObjectBuilder<XMLObjectType extends XMLObject>
        Parameters:
        objectName - fully qualified name of the object
        schemaType - the schema type of the Element represented by this XMLObject
        Returns:
        the constructed XMLObject
      • buildObject

        @Nonnull
        public abstract XMLObjectType buildObject​(@Nullable
                                                  String namespaceURI,
                                                  @Nonnull @NotEmpty
                                                  String localName,
                                                  @Nullable
                                                  String namespacePrefix)
        Creates an XMLObject with a given fully qualified name.
        Specified by:
        buildObject in interface XMLObjectBuilder<XMLObjectType extends XMLObject>
        Parameters:
        namespaceURI - the URI of the namespace the Element represented by this XMLObject will be in
        localName - the local name of the Element represented by this XMLObject
        namespacePrefix - the namespace prefix of the Element represented by this XMLObject
        Returns:
        the constructed XMLObject
      • buildObject

        @Nonnull
        public XMLObjectType buildObject​(@Nullable
                                         String namespaceURI,
                                         @Nonnull
                                         String localName,
                                         @Nullable
                                         String namespacePrefix,
                                         @Nullable
                                         QName schemaType)
        Creates an XMLObject with a given fully qualified name.
        Specified by:
        buildObject in interface XMLObjectBuilder<XMLObjectType extends XMLObject>
        Parameters:
        namespaceURI - the URI of the namespace the Element represented by this XMLObject will be in
        localName - the local name of the Element represented by this XMLObject
        namespacePrefix - the namespace prefix of the Element represented by this XMLObject
        schemaType - the schema type of the Element represented by this XMLObject
        Returns:
        the constructed XMLObject
      • buildObject

        @Nonnull
        public XMLObjectType buildObject​(@Nonnull
                                         Element element)
        Creates an XMLObject using information from the given DOM element. This method must set the QName for the Element QName within the constructed XMLObject. This method is used by AbstractXMLObjectUnmarshaller.
        Specified by:
        buildObject in interface XMLObjectBuilder<XMLObjectType extends XMLObject>
        Parameters:
        element - the DOM Element containing information about the object to be built.
        Returns:
        the constructed XMLObject