org.wso2.javascript.xmlimpl
Class XMLLibImpl

java.lang.Object
  extended by org.mozilla.javascript.xml.XMLLib
      extended by org.wso2.javascript.xmlimpl.XMLLibImpl
All Implemented Interfaces:
Serializable

public final class XMLLibImpl
extends org.mozilla.javascript.xml.XMLLib
implements Serializable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.mozilla.javascript.xml.XMLLib
org.mozilla.javascript.xml.XMLLib.Factory
 
Method Summary
 Namespace constructNamespace(org.mozilla.javascript.Context cx, Object prefixValue, Object uriValue)
           
 String escapeAttributeValue(Object value)
          Escapes the reserved characters in a value of an attribute and surround it by "".
 String escapeTextValue(Object value)
          Escapes the reserved characters in a value of a text node
static void init(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, boolean sealed)
           
 boolean isXMLName(org.mozilla.javascript.Context cx, Object nameObj)
          See E4X 13.1.2.1.
 org.mozilla.javascript.Ref nameRef(org.mozilla.javascript.Context cx, Object namespace, Object name, org.mozilla.javascript.Scriptable scope, int memberTypeFlags)
           
 org.mozilla.javascript.Ref nameRef(org.mozilla.javascript.Context cx, Object name, org.mozilla.javascript.Scriptable scope, int memberTypeFlags)
           
 Object toDefaultXmlNamespace(org.mozilla.javascript.Context cx, Object uriValue)
           
 
Methods inherited from class org.mozilla.javascript.xml.XMLLib
bindToScope, extractFromScope, extractFromScopeOrNull, getPrettyIndent, isIgnoreComments, isIgnoreProcessingInstructions, isIgnoreWhitespace, isPrettyPrinting, setIgnoreComments, setIgnoreProcessingInstructions, setIgnoreWhitespace, setPrettyIndent, setPrettyPrinting
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init

public static void init(org.mozilla.javascript.Context cx,
                        org.mozilla.javascript.Scriptable scope,
                        boolean sealed)

nameRef

public org.mozilla.javascript.Ref nameRef(org.mozilla.javascript.Context cx,
                                          Object name,
                                          org.mozilla.javascript.Scriptable scope,
                                          int memberTypeFlags)
Specified by:
nameRef in class org.mozilla.javascript.xml.XMLLib

nameRef

public org.mozilla.javascript.Ref nameRef(org.mozilla.javascript.Context cx,
                                          Object namespace,
                                          Object name,
                                          org.mozilla.javascript.Scriptable scope,
                                          int memberTypeFlags)
Specified by:
nameRef in class org.mozilla.javascript.xml.XMLLib

escapeAttributeValue

public String escapeAttributeValue(Object value)
Escapes the reserved characters in a value of an attribute and surround it by "".

Specified by:
escapeAttributeValue in class org.mozilla.javascript.xml.XMLLib
Parameters:
value - Unescaped text
Returns:
The escaped text

escapeTextValue

public String escapeTextValue(Object value)
Escapes the reserved characters in a value of a text node

Specified by:
escapeTextValue in class org.mozilla.javascript.xml.XMLLib
Parameters:
value - Unescaped text
Returns:
The escaped text

toDefaultXmlNamespace

public Object toDefaultXmlNamespace(org.mozilla.javascript.Context cx,
                                    Object uriValue)
Specified by:
toDefaultXmlNamespace in class org.mozilla.javascript.xml.XMLLib

isXMLName

public boolean isXMLName(org.mozilla.javascript.Context cx,
                         Object nameObj)
See E4X 13.1.2.1.

Specified by:
isXMLName in class org.mozilla.javascript.xml.XMLLib

constructNamespace

public Namespace constructNamespace(org.mozilla.javascript.Context cx,
                                    Object prefixValue,
                                    Object uriValue)


Copyright © 2012 WSO2. All Rights Reserved.