Package org.mozilla.javascript.xmlimpl
Class XMLLibImpl
java.lang.Object
org.mozilla.javascript.xml.XMLLib
org.mozilla.javascript.xmlimpl.XMLLibImpl
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mozilla.javascript.xml.XMLLib
XMLLib.Factory
-
Method Summary
Modifier and TypeMethodDescriptionEscapes the reserved characters in a value of an attribute.Escapes the reserved characters in a value of a text node.int
static void
init
(Context cx, Scriptable scope, boolean sealed) boolean
boolean
boolean
boolean
boolean
nameRef
(Context cx, Object namespace, Object name, Scriptable scope, int memberTypeFlags) 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) toDefaultXmlNamespace
(Context cx, Object uriValue) Construct namespace for default xml statement.static Node
This experimental interface is undocumented.Methods inherited from class org.mozilla.javascript.xml.XMLLib
bindToScope, extractFromScope, extractFromScopeOrNull
-
Method Details
-
toDomNode
This experimental interface is undocumented. -
init
-
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
-
toDefaultXmlNamespace
Description copied from class:XMLLib
Construct namespace for default xml statement.- Specified by:
toDefaultXmlNamespace
in classXMLLib
-
escapeTextValue
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
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
-
nameRef
public Ref nameRef(Context cx, Object namespace, Object name, Scriptable scope, int memberTypeFlags)
-