Package org.mozilla.javascript.xml
Class XMLLib
- java.lang.Object
- 
- org.mozilla.javascript.xml.XMLLib
 
- 
- Direct Known Subclasses:
- XMLLibImpl
 
 public abstract class XMLLib extends java.lang.Object
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classXMLLib.FactoryAn object which specifies an XMLLib implementation to be used at runtime.
 - 
Constructor SummaryConstructors Constructor Description XMLLib()
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected XMLLibbindToScope(Scriptable scope)abstract java.lang.StringescapeAttributeValue(java.lang.Object value)Escapes the reserved characters in a value of an attribute.abstract java.lang.StringescapeTextValue(java.lang.Object value)Escapes the reserved characters in a value of a text node.static XMLLibextractFromScope(Scriptable scope)static XMLLibextractFromScopeOrNull(Scriptable scope)intgetPrettyIndent()booleanisIgnoreComments()booleanisIgnoreProcessingInstructions()booleanisIgnoreWhitespace()booleanisPrettyPrinting()abstract booleanisXMLName(Context cx, java.lang.Object name)abstract RefnameRef(Context cx, java.lang.Object namespace, java.lang.Object name, Scriptable scope, int memberTypeFlags)abstract 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)abstract java.lang.ObjecttoDefaultXmlNamespace(Context cx, java.lang.Object uriValue)Construct namespace for default xml statement.
 
- 
- 
- 
Method Detail- 
extractFromScopeOrNullpublic static XMLLib extractFromScopeOrNull(Scriptable scope) 
 - 
extractFromScopepublic static XMLLib extractFromScope(Scriptable scope) 
 - 
bindToScopeprotected final XMLLib bindToScope(Scriptable scope) 
 - 
isXMLNamepublic abstract boolean isXMLName(Context cx, java.lang.Object name) 
 - 
nameRefpublic abstract Ref nameRef(Context cx, java.lang.Object name, Scriptable scope, int memberTypeFlags) 
 - 
nameRefpublic abstract Ref nameRef(Context cx, java.lang.Object namespace, java.lang.Object name, Scriptable scope, int memberTypeFlags) 
 - 
escapeAttributeValuepublic abstract java.lang.String escapeAttributeValue(java.lang.Object value) Escapes the reserved characters in a value of an attribute.- Parameters:
- value- Unescaped text
- Returns:
- The escaped text
 
 - 
escapeTextValuepublic abstract java.lang.String escapeTextValue(java.lang.Object value) Escapes the reserved characters in a value of a text node.- Parameters:
- value- Unescaped text
- Returns:
- The escaped text
 
 - 
toDefaultXmlNamespacepublic abstract java.lang.Object toDefaultXmlNamespace(Context cx, java.lang.Object uriValue) Construct namespace for default xml statement.
 - 
setIgnoreCommentspublic void setIgnoreComments(boolean b) 
 - 
setIgnoreWhitespacepublic void setIgnoreWhitespace(boolean b) 
 - 
setIgnoreProcessingInstructionspublic void setIgnoreProcessingInstructions(boolean b) 
 - 
setPrettyPrintingpublic void setPrettyPrinting(boolean b) 
 - 
setPrettyIndentpublic void setPrettyIndent(int i) 
 - 
isIgnoreCommentspublic boolean isIgnoreComments() 
 - 
isIgnoreProcessingInstructionspublic boolean isIgnoreProcessingInstructions() 
 - 
isIgnoreWhitespacepublic boolean isIgnoreWhitespace() 
 - 
isPrettyPrintingpublic boolean isPrettyPrinting() 
 - 
getPrettyIndentpublic int getPrettyIndent() 
 
- 
 
-