org.pentaho.reporting.libraries.xmlns.writer
public final class DeclaredNamespaces extends Object
Constructor Summary | |
---|---|
DeclaredNamespaces()
Creates a new namespaces collection. | |
DeclaredNamespaces(DeclaredNamespaces namespaces)
Creates a new namespaces collection using the given namespaces as initial values.
|
Method Summary | |
---|---|
DeclaredNamespaces | add(HashMap newNamespaces)
Adds all namespaces from the given hashmap into this map. |
DeclaredNamespaces | add(AttributeList attributes)
Adds all declared namespaces from the given attribute-list into the namespaces collection.
|
DeclaredNamespaces | add(String uri, String prefix)
Adds a single namespace definition to the collection.
|
Map | getNamespaces()
Returns all known namespaces as unmodifiable map.
|
String | getPrefix(String uri)
Looksup the prefix for the given URI. |
boolean | isNamespaceDefined(String uri)
Checks, whether the namespace marked by the given URI is defined in this collection.
|
boolean | isPrefixDefined(String prefix)
Checks whether the given prefix is already defined in the collection.
|
Parameters: namespaces the namespaces, never null.
Parameters: newNamespaces the namespaces collection.
Returns: the created namespaces object.
Parameters: attributes the attribute list containing namespace definitions.
Returns: the new namespaces collection.
Parameters: uri the URI of the namespace. prefix the prefix to be used for the namespace.
Returns: the new namespaces collection.
Returns: the namespaces.
Parameters: uri the URI.
Returns: the prefix for the given URI or null, if the URI is not part of this collection.
Parameters: uri the URI to be checked.
Returns: true, if the URI is known, false otherwise.
Parameters: prefix the prefix.
Returns: true, if the prefix is already used, false otherwise.