public final class XMLLibImpl extends XMLLib implements java.io.Serializable
XMLLib.Factory
Modifier and Type | Method and Description |
---|---|
java.lang.String |
escapeAttributeValue(java.lang.Object o)
Escapes the reserved characters in a value of an attribute.
|
java.lang.String |
escapeTextValue(java.lang.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,
java.lang.Object nameObj) |
Ref |
nameRef(Context cx,
java.lang.Object namespace,
java.lang.Object name,
Scriptable scope,
int memberTypeFlags) |
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) |
java.lang.Object |
toDefaultXmlNamespace(Context cx,
java.lang.Object uriValue)
Construct namespace for default xml statement.
|
static org.w3c.dom.Node |
toDomNode(java.lang.Object xmlObject)
This experimental interface is undocumented.
|
extractFromScope, extractFromScopeOrNull
public static org.w3c.dom.Node toDomNode(java.lang.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 boolean isXMLName(Context _cx, java.lang.Object nameObj)
public java.lang.Object toDefaultXmlNamespace(Context cx, java.lang.Object uriValue)
XMLLib
toDefaultXmlNamespace
in class XMLLib
public java.lang.String escapeTextValue(java.lang.Object o)
XMLLib
escapeTextValue
in class XMLLib
o
- Unescaped textpublic java.lang.String escapeAttributeValue(java.lang.Object o)
XMLLib
escapeAttributeValue
in class XMLLib
o
- Unescaped textpublic Ref nameRef(Context cx, java.lang.Object name, Scriptable scope, int memberTypeFlags)
public Ref nameRef(Context cx, java.lang.Object namespace, java.lang.Object name, Scriptable scope, int memberTypeFlags)
Copyright © 2010 - 2020 Adobe. All Rights Reserved