java.lang.Object
org.tquadrat.foundation.xml.builder.Namespace
- All Implemented Interfaces:
Serializable,Comparable<Namespace>
@ClassVersion(sourceVersion="$Id: Namespace.java 1101 2024-02-18 00:18:48Z tquadrat $")
@API(status=STABLE,
since="0.0.5")
public final class Namespace
extends Object
implements Serializable, Comparable<Namespace>
The definition of an XML namespace entry.
- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: Namespace.java 1101 2024-02-18 00:18:48Z tquadrat $
- Since:
- 0.0.5
- See Also:
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.xml.builder.Namespace"
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreates a newNamespaceinstance without a prefix.Creates a newNamespaceinstance.
The given prefix is validated using the method that is provided byXMLBuilderUtils.getPrefixValidator().Creates a newNamespaceinstance.
The given prefix is validated using the method that is provided byXMLBuilderUtils.getPrefixValidator().Creates a newNamespaceinstance without a prefix.privateCreates a newNamespaceinstance.
The given prefix is validated using the method that is provided byXMLBuilderUtils.getPrefixValidator(). -
Method Summary
-
Field Details
-
EMPTY_Namespace_ARRAY
An empty array ofNamespaceobjects. -
KEYWORD
The keyword for a namespace definition: "xmlns".- See Also:
-
m_Identifier
The namespace identifier. -
m_Prefix
The namespace prefix.
-
-
Constructor Details
-
Namespace
Creates a newNamespaceinstance without a prefix.- Parameters:
identifier- The namespace identifier.
-
Namespace
Creates a newNamespaceinstance without a prefix.- Parameters:
identifier- The namespace identifier.- Throws:
URISyntaxException- The provided URI String is invalid.
-
Namespace
Creates a newNamespaceinstance.
The given prefix is validated using the method that is provided byXMLBuilderUtils.getPrefixValidator().- Parameters:
prefix- The namespace prefix.identifier- The namespace identifier.
-
Namespace
Creates a newNamespaceinstance.
The given prefix is validated using the method that is provided byXMLBuilderUtils.getPrefixValidator().- Parameters:
prefix- The namespace prefix.identifier- The namespace identifier.- Throws:
URISyntaxException- The provided URI String is invalid.
-
Namespace
Creates a newNamespaceinstance.
The given prefix is validated using the method that is provided byXMLBuilderUtils.getPrefixValidator().- Parameters:
prefix- The namespace prefix.identifier- The namespace identifier.
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<Namespace>
-
equals
-
getIdentifier
Returns the namespace identifier.- Returns:
- The namespace identifier.
-
getPrefix
Returns the namespace prefix.- Returns:
- An instance of
Optionalthat holds the namespace prefix.
-
hashCode
-
toString
-
