Package org.daisy.dotify.common.xml
Class XMLInfo.Builder
- java.lang.Object
-
- org.daisy.dotify.common.xml.XMLInfo.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
Creates a new empty builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XMLInfo.Builder
attributes(Attributes value)
Sets the attributes.XMLInfo
build()
Creates a new XMLInfo instance using the current state of the builder.XMLInfo.Builder
localName(String value)
Sets the local name.XMLInfo.Builder
publicId(String value)
Sets the public identifier of the DTD declaration.XMLInfo.Builder
qName(String value)
Sets the qualified name.XMLInfo.Builder
systemId(String value)
Sets the system identifier of the DTD declaration.XMLInfo.Builder
uri(String value)
Sets the uri.
-
-
-
Method Detail
-
uri
public XMLInfo.Builder uri(String value)
Sets the uri.- Parameters:
value
- The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed.- Returns:
- returns this builder
-
localName
public XMLInfo.Builder localName(String value)
Sets the local name.- Parameters:
value
- The local name (without prefix), or the empty string if Namespace processing is not being performed.- Returns:
- returns this builder
-
qName
public XMLInfo.Builder qName(String value)
Sets the qualified name.- Parameters:
value
- The qualified name (with prefix), or the empty string if qualified names are not available.- Returns:
- returns this builder
-
attributes
public XMLInfo.Builder attributes(Attributes value)
Sets the attributes.- Parameters:
value
- The attributes attached to the element.- Returns:
- returns this builder
-
publicId
public XMLInfo.Builder publicId(String value)
Sets the public identifier of the DTD declaration.- Parameters:
value
- The public identifier, or null if none is available.- Returns:
- returns this builder
-
systemId
public XMLInfo.Builder systemId(String value)
Sets the system identifier of the DTD declaration.- Parameters:
value
- The system identifier provided in the XML document, or null if none is available.- Returns:
- returns this builder
-
build
public XMLInfo build()
Creates a new XMLInfo instance using the current state of the builder.- Returns:
- returns a new XMLInfo instance
-
-