Package org.opensaml.core.xml
Interface XMLObjectBuilder<XMLObjectType extends XMLObject>
-
- Type Parameters:
XMLObjectType- the XMLObject type that this builder produces
- All Known Implementing Classes:
AbstractXMLObjectBuilder,XSAnyBuilder,XSBase64BinaryBuilder,XSBooleanBuilder,XSDateTimeBuilder,XSIntegerBuilder,XSQNameBuilder,XSStringBuilder,XSURIBuilder
public interface XMLObjectBuilder<XMLObjectType extends XMLObject>A builder for XMLObjects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description XMLObjectTypebuildObject(String namespaceURI, String localName, String namespacePrefix)Creates an XMLObject with a given fully qualified name.XMLObjectTypebuildObject(String namespaceURI, String localName, String namespacePrefix, QName schemaType)Creates an XMLObject with a given fully qualified name.XMLObjectTypebuildObject(QName objectName)Creates an XMLObject with a given fully qualified name.XMLObjectTypebuildObject(QName objectName, QName schemaType)Creates an XMLObject with a given fully qualified name and schema type.XMLObjectTypebuildObject(Element element)Creates an XMLObject using information from the given DOM element.
-
-
-
Method Detail
-
buildObject
@Nonnull XMLObjectType buildObject(@Nonnull QName objectName)
Creates an XMLObject with a given fully qualified name.- Parameters:
objectName- fully qualified name of the object- Returns:
- the constructed XMLObject
-
buildObject
@Nonnull XMLObjectType buildObject(@Nonnull QName objectName, @Nullable QName schemaType)
Creates an XMLObject with a given fully qualified name and schema type.- Parameters:
objectName- fully qualified name of the objectschemaType- the schema type of the Element represented by this XMLObject- Returns:
- the constructed XMLObject
-
buildObject
@Nonnull XMLObjectType buildObject(@Nullable String namespaceURI, @Nonnull String localName, @Nullable String namespacePrefix)
Creates an XMLObject with a given fully qualified name.- Parameters:
namespaceURI- the URI of the namespace the Element represented by this XMLObject will be inlocalName- the local name of the Element represented by this XMLObjectnamespacePrefix- the namespace prefix of the Element represented by this XMLObject- Returns:
- the constructed XMLObject
-
buildObject
@Nonnull XMLObjectType buildObject(@Nullable String namespaceURI, @Nonnull String localName, @Nullable String namespacePrefix, @Nullable QName schemaType)
Creates an XMLObject with a given fully qualified name.- Parameters:
namespaceURI- the URI of the namespace the Element represented by this XMLObject will be inlocalName- the local name of the Element represented by this XMLObjectnamespacePrefix- the namespace prefix of the Element represented by this XMLObjectschemaType- the schema type of the Element represented by this XMLObject- Returns:
- the constructed XMLObject
-
buildObject
@Nonnull 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 byAbstractXMLObjectUnmarshaller.- Parameters:
element- the DOM Element containing information about the object to be built.- Returns:
- the constructed XMLObject
-
-