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 Scriptable
private Namespace
private XmlProcessor
private QName
private static final long
private XMLList
private XML
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) Object
addXMLObjects
(Context cx, XMLObject obj1, XMLObject obj2) private static RuntimeException
badXMLName
(Object value) (package private) Namespace
castToNamespace
(Context cx, Object namespaceObj) (package private) QName
castToQName
(Context cx, Object qnameValue) (package private) QName
constructQName
(Context cx, Object nameValue) (package private) QName
constructQName
(Context cx, Object namespace, Object name) (package private) Namespace[]
createNamespaces
(XmlNode.Namespace[] declarations) (package private) final XML
Escapes the reserved characters in a value of an attribute.Escapes the reserved characters in a value of a text node.private void
exportToScope
(boolean sealed) (package private) Namespace
private String
int
(package private) XmlProcessor
(package private) Scriptable
Deprecated.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) (package private) Namespace
newNamespace
(String uri) (package private) QName
(package private) QName
newQName
(XmlNode.QName qname) (package private) final XML
newTextElementXML
(XmlNode reference, XmlNode.QName qname, String value) (package private) XML
(package private) final XML
newXMLFromJs
(Object inputObject) (package private) XMLList
(package private) final XMLList
newXMLListFrom
(Object inputObject) private XML
(package private) QName
Deprecated.void
setIgnoreComments
(boolean b) void
setIgnoreProcessingInstructions
(boolean b) void
setIgnoreWhitespace
(boolean b) void
setPrettyIndent
(int i) void
setPrettyPrinting
(boolean b) (package private) XMLName
toAttributeName
(Context cx, Object nameValue) Deprecated.toDefaultXmlNamespace
(Context cx, Object uriValue) Construct namespace for default xml statement.static Node
This experimental interface is undocumented.(package private) XmlNode.QName
toNodeQName
(Context cx, Object nameValue, boolean attribute) (package private) XmlNode.QName
toNodeQName
(Context cx, Object namespaceValue, Object nameValue) (package private) XmlNode.QName
toNodeQName
(Context cx, String name, boolean attribute) (package private) XMLName
(package private) XMLName
toXMLNameFromString
(Context cx, String name) (package private) XMLName
toXMLNameOrIndex
(Context cx, Object value) If value represents Uint32 index, make it available through ScriptRuntime.lastUint32Result(cx) and return null.private Ref
xmlPrimaryReference
(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:
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
-
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: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
-