Package org.mozilla.javascript.xmlimpl
Class XMLLibImpl
- java.lang.Object
-
- org.mozilla.javascript.xml.XMLLib
-
- org.mozilla.javascript.xmlimpl.XMLLibImpl
-
- All Implemented Interfaces:
Serializable
public final class XMLLibImpl extends XMLLib implements 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 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.-
Methods inherited from class org.mozilla.javascript.xml.XMLLib
extractFromScope, extractFromScopeOrNull
-
-
-
-
Method Detail
-
toDomNode
public static Node toDomNode(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
-
toDefaultXmlNamespace
public Object toDefaultXmlNamespace(Context cx, Object uriValue)
Description copied from class:XMLLib
Construct namespace for default xml statement.- Specified by:
toDefaultXmlNamespace
in classXMLLib
-
escapeTextValue
public String escapeTextValue(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 String escapeAttributeValue(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, Object name, Scriptable scope, int memberTypeFlags)
-
-