public abstract class XMLLib
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
XMLLib.Factory
An object which specifies an XMLLib implementation to be used at runtime.
|
Constructor and Description |
---|
XMLLib() |
Modifier and Type | Method and Description |
---|---|
protected XMLLib |
bindToScope(Scriptable scope) |
abstract java.lang.String |
escapeAttributeValue(java.lang.Object value)
Escapes the reserved characters in a value of an attribute.
|
abstract java.lang.String |
escapeTextValue(java.lang.Object value)
Escapes the reserved characters in a value of a text node.
|
static XMLLib |
extractFromScope(Scriptable scope) |
static XMLLib |
extractFromScopeOrNull(Scriptable scope) |
int |
getPrettyIndent() |
boolean |
isIgnoreComments() |
boolean |
isIgnoreProcessingInstructions() |
boolean |
isIgnoreWhitespace() |
boolean |
isPrettyPrinting() |
abstract boolean |
isXMLName(Context cx,
java.lang.Object name) |
abstract Ref |
nameRef(Context cx,
java.lang.Object namespace,
java.lang.Object name,
Scriptable scope,
int memberTypeFlags) |
abstract Ref |
nameRef(Context cx,
java.lang.Object name,
Scriptable scope,
int memberTypeFlags) |
void |
setIgnoreComments(boolean b) |
void |
setIgnoreProcessingInstructions(boolean b) |
void |
setIgnoreWhitespace(boolean b) |
void |
setPrettyIndent(int i) |
void |
setPrettyPrinting(boolean b) |
abstract java.lang.Object |
toDefaultXmlNamespace(Context cx,
java.lang.Object uriValue)
Construct namespace for default xml statement.
|
public static XMLLib extractFromScopeOrNull(Scriptable scope)
public static XMLLib extractFromScope(Scriptable scope)
protected final XMLLib bindToScope(Scriptable scope)
public abstract boolean isXMLName(Context cx, java.lang.Object name)
public abstract Ref nameRef(Context cx, java.lang.Object name, Scriptable scope, int memberTypeFlags)
public abstract Ref nameRef(Context cx, java.lang.Object namespace, java.lang.Object name, Scriptable scope, int memberTypeFlags)
public abstract java.lang.String escapeAttributeValue(java.lang.Object value)
value
- Unescaped textpublic abstract java.lang.String escapeTextValue(java.lang.Object value)
value
- Unescaped textpublic abstract java.lang.Object toDefaultXmlNamespace(Context cx, java.lang.Object uriValue)
public void setIgnoreComments(boolean b)
public void setIgnoreWhitespace(boolean b)
public void setIgnoreProcessingInstructions(boolean b)
public void setPrettyPrinting(boolean b)
public void setPrettyIndent(int i)
public boolean isIgnoreComments()
public boolean isIgnoreProcessingInstructions()
public boolean isIgnoreWhitespace()
public boolean isPrettyPrinting()
public int getPrettyIndent()