Class gxe.xml.XmlNamespaces
Extends
gxe.util.ArrayList.
A collection of XML namespaces.
Defined in: gxe.js.
Constructor Attributes | Constructor Name and Description |
---|---|
- Fields borrowed from class :
- gxe.util.ArrayList#_array
Method Attributes | Method Name and Description |
---|---|
constructor(prefix, uri)
Constructor.
|
|
getPrefix(uri)
Gets the namespace prefix associated with a URI.
|
|
getUri(prefix)
Gets the namespace URI associated with a prefix.
|
- Methods borrowed from class gxe.util.ArrayList:
- add, getItem, getLength, insertAt, push, removeIndex, swapPosition
Method Detail
constructor(prefix, uri)
Constructor.
- Parameters:
- {String} prefix
- the prefix
- {String} uri
- the URI
{String}
getPrefix(uri)
Gets the namespace prefix associated with a URI.
- Parameters:
- {String} uri
- the URI
- Returns:
- {String} the namespace prefix for the URI (null if not located)
{String}
getUri(prefix)
Gets the namespace URI associated with a prefix.
- Parameters:
- {String} prefix
- the prefix
- Returns:
- {String} the namespace URI for the prefix (null if not located)