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 XMLLib
XMLLib.Factory -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Scriptableprivate Namespaceprivate XmlProcessorprivate QNameprivate static final longprivate XMLListprivate XML -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) ObjectaddXMLObjects(Context cx, XMLObject obj1, XMLObject obj2) private static RuntimeExceptionbadXMLName(Object value) (package private) NamespacecastToNamespace(Context cx, Object namespaceObj) (package private) QNamecastToQName(Context cx, Object qnameValue) (package private) QNameconstructQName(Context cx, Object nameValue) (package private) QNameconstructQName(Context cx, Object namespace, Object name) (package private) Namespace[]createNamespaces(XmlNode.Namespace[] declarations) (package private) final XMLEscapes the reserved characters in a value of an attribute.Escapes the reserved characters in a value of a text node.private voidexportToScope(boolean sealed) (package private) Namespaceprivate Stringint(package private) XmlProcessor(package private) ScriptableDeprecated.static voidinit(Context cx, Scriptable scope, boolean sealed) booleanbooleanbooleanbooleanbooleannameRef(Context cx, Object namespace, Object name, Scriptable scope, int memberTypeFlags) nameRef(Context cx, Object name, Scriptable scope, int memberTypeFlags) (package private) NamespacenewNamespace(String uri) (package private) QName(package private) QNamenewQName(XmlNode.QName qname) (package private) final XMLnewTextElementXML(XmlNode reference, XmlNode.QName qname, String value) (package private) XML(package private) final XMLnewXMLFromJs(Object inputObject) (package private) XMLList(package private) final XMLListnewXMLListFrom(Object inputObject) private XML(package private) QNameDeprecated.voidsetIgnoreComments(boolean b) voidsetIgnoreProcessingInstructions(boolean b) voidsetIgnoreWhitespace(boolean b) voidsetPrettyIndent(int i) voidsetPrettyPrinting(boolean b) (package private) XMLNametoAttributeName(Context cx, Object nameValue) Deprecated.toDefaultXmlNamespace(Context cx, Object uriValue) Construct namespace for default xml statement.static NodeThis experimental interface is undocumented.(package private) XmlNode.QNametoNodeQName(Context cx, Object nameValue, boolean attribute) (package private) XmlNode.QNametoNodeQName(Context cx, Object namespaceValue, Object nameValue) (package private) XmlNode.QNametoNodeQName(Context cx, String name, boolean attribute) (package private) XMLName(package private) XMLNametoXMLNameFromString(Context cx, String name) (package private) XMLNametoXMLNameOrIndex(Context cx, Object value) If value represents Uint32 index, make it available through ScriptRuntime.lastUint32Result(cx) and return null.private RefxmlPrimaryReference(Context cx, XMLName xmlName, Scriptable scope) Methods inherited from class XMLLib
bindToScope, extractFromScope, extractFromScopeOrNull
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
globalScope
-
xmlPrototype
-
xmlListPrototype
-
namespacePrototype
-
qnamePrototype
-
options
-
-
Constructor Details
-
XMLLibImpl
-
-
Method Details
-
toDomNode
-
init
-
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
-
qnamePrototype
Deprecated. -
globalScope
Deprecated. -
getProcessor
XmlProcessor getProcessor() -
exportToScope
private void exportToScope(boolean sealed) -
toAttributeName
Deprecated. -
badXMLName
-
toXMLNameFromString
-
toXMLName
-
toXMLNameOrIndex
-
addXMLObjects
-
xmlPrimaryReference
-
castToNamespace
-
getDefaultNamespaceURI
-
newNamespace
-
getDefaultNamespace
-
createNamespaces
-
constructQName
-
newQName
-
constructQName
-
castToQName
-
newQName
-
newXML
-
newXMLFromJs
-
parse
-
ecmaToXml
-
newTextElementXML
-
newXMLList
XMLList newXMLList() -
newXMLListFrom
-
toNodeQName
-
toNodeQName
-
toNodeQName
-
isXMLName
-
toDefaultXmlNamespace
-
escapeTextValue
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
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
-
nameRef
-