Package org.mozilla.javascript.xmlimpl
Class XMLLibImpl
- java.lang.Object
-
- org.mozilla.javascript.xml.XMLLib
-
- org.mozilla.javascript.xmlimpl.XMLLibImpl
-
- All Implemented Interfaces:
java.io.Serializable
public final class XMLLibImpl extends XMLLib implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.mozilla.javascript.xml.XMLLib
XMLLib.Factory
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class org.mozilla.javascript.xml.XMLLib
extractFromScope, extractFromScopeOrNull
-
-
-
-
Method Detail
-
toDomNode
public static org.w3c.dom.Node toDomNode(java.lang.Object xmlObject)
This experimental interface is undocumented.
-
init
public static void init(Context cx, Scriptable scope, boolean sealed)
-
setIgnoreComments
public void setIgnoreComments(boolean b)
- Overrides:
setIgnoreComments
in classXMLLib
-
setIgnoreWhitespace
public void setIgnoreWhitespace(boolean b)
- Overrides:
setIgnoreWhitespace
in classXMLLib
-
setIgnoreProcessingInstructions
public void setIgnoreProcessingInstructions(boolean b)
- Overrides:
setIgnoreProcessingInstructions
in classXMLLib
-
setPrettyPrinting
public void setPrettyPrinting(boolean b)
- Overrides:
setPrettyPrinting
in classXMLLib
-
setPrettyIndent
public void setPrettyIndent(int i)
- Overrides:
setPrettyIndent
in classXMLLib
-
isIgnoreComments
public boolean isIgnoreComments()
- Overrides:
isIgnoreComments
in classXMLLib
-
isIgnoreProcessingInstructions
public boolean isIgnoreProcessingInstructions()
- Overrides:
isIgnoreProcessingInstructions
in classXMLLib
-
isIgnoreWhitespace
public boolean isIgnoreWhitespace()
- Overrides:
isIgnoreWhitespace
in classXMLLib
-
isPrettyPrinting
public boolean isPrettyPrinting()
- Overrides:
isPrettyPrinting
in classXMLLib
-
getPrettyIndent
public int getPrettyIndent()
- Overrides:
getPrettyIndent
in classXMLLib
-
isXMLName
public boolean isXMLName(Context _cx, java.lang.Object nameObj)
-
toDefaultXmlNamespace
public java.lang.Object toDefaultXmlNamespace(Context cx, java.lang.Object uriValue)
Description copied from class:XMLLib
Construct namespace for default xml statement.- Specified by:
toDefaultXmlNamespace
in classXMLLib
-
escapeTextValue
public java.lang.String escapeTextValue(java.lang.Object o)
Description copied from class:XMLLib
Escapes the reserved characters in a value of a text node.- Specified by:
escapeTextValue
in classXMLLib
- Parameters:
o
- Unescaped text- Returns:
- The escaped text
-
escapeAttributeValue
public java.lang.String escapeAttributeValue(java.lang.Object o)
Description copied from class:XMLLib
Escapes the reserved characters in a value of an attribute.- Specified by:
escapeAttributeValue
in classXMLLib
- Parameters:
o
- Unescaped text- Returns:
- The escaped text
-
nameRef
public Ref nameRef(Context cx, java.lang.Object name, Scriptable scope, int memberTypeFlags)
-
nameRef
public Ref nameRef(Context cx, java.lang.Object namespace, java.lang.Object name, Scriptable scope, int memberTypeFlags)
-
-