org.mozilla.javascript.xml

Class XMLLib

public abstract class XMLLib extends Object

Method Summary
protected XMLLibbindToScope(Scriptable scope)
abstract StringescapeAttributeValue(Object value)
Escapes the reserved characters in a value of an attribute and surround it by "".
abstract StringescapeTextValue(Object value)
Escapes the reserved characters in a value of a text node
static XMLLibextractFromScope(Scriptable scope)
static XMLLibextractFromScopeOrNull(Scriptable scope)
abstract booleanisXMLName(Context cx, Object name)
abstract RefnameRef(Context cx, Object name, Scriptable scope, int memberTypeFlags)
abstract RefnameRef(Context cx, Object namespace, Object name, Scriptable scope, int memberTypeFlags)
abstract ObjecttoDefaultXmlNamespace(Context cx, Object uriValue)
Construct namespace for default xml statement.

Method Detail

bindToScope

protected final XMLLib bindToScope(Scriptable scope)

escapeAttributeValue

public abstract String escapeAttributeValue(Object value)
Escapes the reserved characters in a value of an attribute and surround it by "".

Parameters: value Unescaped text

Returns: The escaped text

escapeTextValue

public abstract String escapeTextValue(Object value)
Escapes the reserved characters in a value of a text node

Parameters: value Unescaped text

Returns: The escaped text

extractFromScope

public static XMLLib extractFromScope(Scriptable scope)

extractFromScopeOrNull

public static XMLLib extractFromScopeOrNull(Scriptable scope)

isXMLName

public abstract boolean isXMLName(Context cx, Object name)

nameRef

public abstract Ref nameRef(Context cx, Object name, Scriptable scope, int memberTypeFlags)

nameRef

public abstract Ref nameRef(Context cx, Object namespace, Object name, Scriptable scope, int memberTypeFlags)

toDefaultXmlNamespace

public abstract Object toDefaultXmlNamespace(Context cx, Object uriValue)
Construct namespace for default xml statement.