public final class XMLLibImpl extends XMLLib implements Serializable
XMLLib.Factory
Modifier and Type | Method and Description |
---|---|
String |
escapeAttributeValue(Object o)
Escapes the reserved characters in a value of an attribute.
|
String |
escapeTextValue(Object o)
Escapes the reserved characters in a value of a text node.
|
int |
getPrettyIndent() |
static void |
init(Context cx,
Scriptable scope,
boolean sealed) |
boolean |
isIgnoreComments() |
boolean |
isIgnoreProcessingInstructions() |
boolean |
isIgnoreWhitespace() |
boolean |
isPrettyPrinting() |
boolean |
isXMLName(Context _cx,
Object nameObj) |
Ref |
nameRef(Context cx,
Object namespace,
Object name,
Scriptable scope,
int memberTypeFlags) |
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) |
Object |
toDefaultXmlNamespace(Context cx,
Object uriValue)
Construct namespace for default xml statement.
|
static Node |
toDomNode(Object xmlObject)
This experimental interface is undocumented.
|
extractFromScope, extractFromScopeOrNull
public static Node toDomNode(Object xmlObject)
public static void init(Context cx, Scriptable scope, boolean sealed)
public void setIgnoreComments(boolean b)
setIgnoreComments
in class XMLLib
public void setIgnoreWhitespace(boolean b)
setIgnoreWhitespace
in class XMLLib
public void setIgnoreProcessingInstructions(boolean b)
setIgnoreProcessingInstructions
in class XMLLib
public void setPrettyPrinting(boolean b)
setPrettyPrinting
in class XMLLib
public void setPrettyIndent(int i)
setPrettyIndent
in class XMLLib
public boolean isIgnoreComments()
isIgnoreComments
in class XMLLib
public boolean isIgnoreProcessingInstructions()
isIgnoreProcessingInstructions
in class XMLLib
public boolean isIgnoreWhitespace()
isIgnoreWhitespace
in class XMLLib
public boolean isPrettyPrinting()
isPrettyPrinting
in class XMLLib
public int getPrettyIndent()
getPrettyIndent
in class XMLLib
public Object toDefaultXmlNamespace(Context cx, Object uriValue)
XMLLib
toDefaultXmlNamespace
in class XMLLib
public String escapeTextValue(Object o)
XMLLib
escapeTextValue
in class XMLLib
o
- Unescaped textpublic String escapeAttributeValue(Object o)
XMLLib
escapeAttributeValue
in class XMLLib
o
- Unescaped textpublic Ref nameRef(Context cx, Object name, Scriptable scope, int memberTypeFlags)
Copyright © 2010 - 2020 Adobe. All Rights Reserved