public abstract class XMLLib extends 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 |
---|---|
abstract String |
escapeAttributeValue(Object value)
Escapes the reserved characters in a value of an attribute.
|
abstract String |
escapeTextValue(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,
Object name) |
abstract Ref |
nameRef(Context cx,
Object namespace,
Object name,
Scriptable scope,
int memberTypeFlags) |
abstract Ref |
nameRef(Context cx,
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 Object |
toDefaultXmlNamespace(Context cx,
Object uriValue)
Construct namespace for default xml statement.
|
public static XMLLib extractFromScopeOrNull(Scriptable scope)
public static XMLLib extractFromScope(Scriptable scope)
public abstract Ref nameRef(Context cx, Object name, Scriptable scope, int memberTypeFlags)
public abstract Ref nameRef(Context cx, Object namespace, Object name, Scriptable scope, int memberTypeFlags)
public abstract String escapeAttributeValue(Object value)
value
- Unescaped textpublic abstract String escapeTextValue(Object value)
value
- Unescaped textpublic abstract Object toDefaultXmlNamespace(Context cx, 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()
Copyright © 2010 - 2020 Adobe. All Rights Reserved