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.StringescapeAttributeValue(java.lang.Object o)Escapes the reserved characters in a value of an attribute.java.lang.StringescapeTextValue(java.lang.Object o)Escapes the reserved characters in a value of a text node.intgetPrettyIndent()static voidinit(Context cx, Scriptable scope, boolean sealed)booleanisIgnoreComments()booleanisIgnoreProcessingInstructions()booleanisIgnoreWhitespace()booleanisPrettyPrinting()booleanisXMLName(Context _cx, java.lang.Object nameObj)RefnameRef(Context cx, java.lang.Object namespace, java.lang.Object name, Scriptable scope, int memberTypeFlags)RefnameRef(Context cx, java.lang.Object name, Scriptable scope, int memberTypeFlags)voidsetIgnoreComments(boolean b)voidsetIgnoreProcessingInstructions(boolean b)voidsetIgnoreWhitespace(boolean b)voidsetPrettyIndent(int i)voidsetPrettyPrinting(boolean b)java.lang.ObjecttoDefaultXmlNamespace(Context cx, java.lang.Object uriValue)Construct namespace for default xml statement.static org.w3c.dom.NodetoDomNode(java.lang.Object xmlObject)This experimental interface is undocumented.-
Methods inherited from class org.mozilla.javascript.xml.XMLLib
bindToScope, 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:
setIgnoreCommentsin classXMLLib
-
setIgnoreWhitespace
public void setIgnoreWhitespace(boolean b)
- Overrides:
setIgnoreWhitespacein classXMLLib
-
setIgnoreProcessingInstructions
public void setIgnoreProcessingInstructions(boolean b)
- Overrides:
setIgnoreProcessingInstructionsin classXMLLib
-
setPrettyPrinting
public void setPrettyPrinting(boolean b)
- Overrides:
setPrettyPrintingin classXMLLib
-
setPrettyIndent
public void setPrettyIndent(int i)
- Overrides:
setPrettyIndentin classXMLLib
-
isIgnoreComments
public boolean isIgnoreComments()
- Overrides:
isIgnoreCommentsin classXMLLib
-
isIgnoreProcessingInstructions
public boolean isIgnoreProcessingInstructions()
- Overrides:
isIgnoreProcessingInstructionsin classXMLLib
-
isIgnoreWhitespace
public boolean isIgnoreWhitespace()
- Overrides:
isIgnoreWhitespacein classXMLLib
-
isPrettyPrinting
public boolean isPrettyPrinting()
- Overrides:
isPrettyPrintingin classXMLLib
-
getPrettyIndent
public int getPrettyIndent()
- Overrides:
getPrettyIndentin 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:XMLLibConstruct namespace for default xml statement.- Specified by:
toDefaultXmlNamespacein classXMLLib
-
escapeTextValue
public java.lang.String escapeTextValue(java.lang.Object o)
Description copied from class:XMLLibEscapes the reserved characters in a value of a text node.- Specified by:
escapeTextValuein classXMLLib- Parameters:
o- Unescaped text- Returns:
- The escaped text
-
escapeAttributeValue
public java.lang.String escapeAttributeValue(java.lang.Object o)
Description copied from class:XMLLibEscapes the reserved characters in a value of an attribute.- Specified by:
escapeAttributeValuein 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)
-
-