|
Scala
1.3.0.7 |
|||
| Field Summary | |
final
|
val noPrefixes: Map[String,String]
A prefix mapping that maps the empty namespace to the empty prefix |
| Method Summary | |
final
|
def appendEscapedQuoted(s: String, sb: StringBuffer): StringBuffer
Appends "s" and escapes and " i s with \" |
final
|
def appendPrefixedName(ns: String, name: String, pmap: Map[String,String], sb: StringBuffer): Unit
Appends prefixed name to given stringbuffer using namespace-to-prefix mapping pmap. |
final
|
def appendQuoted(s: String, sb: StringBuffer): StringBuffer
Appends "s" if s does not contain ", 's' otherwise |
final
|
def attr2xml(ns: String, attrib: Iterator[Attribute], pmap: Map[String,String], sb: StringBuffer): Unit
For a Node n, returns string representation of n.attributes
|
final
|
def collectNamespaces(node: Node): Set[String]
Returns a set of all namespaces appearing in a node and all its descendants, including the empty namespaces |
final
|
def collectNamespaces(nodes: Seq[Node]): Set[String]
Returns a set of all namespaces appearing in a sequence of nodes and all their descendants, including the empty namespaces |
final
|
def defaultPrefixes(rootns: String, nset: Set[String]): Map[String,String]
Returns a default prefix mapping for a set of namespaces. |
final
|
def defaultPrefixes(n: Node): Map[String,String]
|
final
|
def defaultPrefixes(nodes: Seq[Node]): Map[String,String]
|
final
|
def escape(text: String): String
|
final
|
def hashCode(uname: UName, attribHashCode: Int, children: Seq[Node]): Int
Returns a hashcode for the given constituents of a node |
final
|
def hashCode(uri: String, label: String, attribHashCode: Int, children: Seq[Node]): Int
Returns a hashcode for the given constituents of a node |
final
|
def hashCode(uri: String, label: String, attribs: HashMap[Tuple2[String,String],String], children: Seq[Node]): Int
Returns a hashcode for the given constituents of a node |
final
|
def publicLiteralToString(s: String): String
|
final
|
def systemLiteralToString(s: String): String
|
final
|
def toXML(n: Node): String
|
final
|
def toXML(n: Node, stripComment: Boolean): String
String representation of a Node. |
final
|
def toXML(x: Node, pmap: Map[String,String]): String
|
final
|
def toXML(x: Node, pmap: Map[String,String], stripComment: Boolean): String
Serializes a node with given namespace prefix mapping. |
final
|
def toXML(x: Node, pmap: Map[String,String], sb: StringBuffer): Unit
|
final
|
def toXML(x: Node, pmap: Map[String,String], sb: StringBuffer, stripComment: Boolean): Unit
serializes a tree to the given stringbuffer with the given namespace prefix mapping. |
final
|
def toXML1(x: Node, pmap: Map[String,String], sb: StringBuffer, stripComment: Boolean): Unit
Serializes a non-root node to the given stringbuffer with the given namespace prefix mapping. |
final
|
def toXML1(x: Node, pmap: Map[String,String], sb: StringBuffer): Unit
|
final
|
def view(s: String): Text
|
| Field Detail |
final val noPrefixes: Map[String,String]
| Method Detail |
final def view(s: String): Text
final def escape(text: String): String
final def collectNamespaces(node: Node): Set[String]
node -
final def collectNamespaces(nodes: Seq[Node]): Set[String]
nodes -
final def defaultPrefixes(rootns: String, nset: Set[String]): Map[String,String]
rootns -
nset -
final def defaultPrefixes(n: Node): Map[String,String]
final def defaultPrefixes(nodes: Seq[Node]): Map[String,String]
final def toXML(n: Node): String
final def toXML(n: Node, stripComment: Boolean): String
defaultPrefixes(n).
n -
stripComment -
final def toXML(x: Node, pmap: Map[String,String]): String
final def toXML(x: Node, pmap: Map[String,String], stripComment: Boolean): String
x -
the node to serialize
pmap -
a mapping from namespace URIs to prefixes
stripComment -
final def toXML(x: Node, pmap: Map[String,String], sb: StringBuffer): Unit
final def toXML(x: Node, pmap: Map[String,String], sb: StringBuffer, stripComment: Boolean): Unit
n -
the root node
pmap -
mapping namespaces to prefixes
sb -
stringbuffer to append to
stripComment -
if true, strip comments
final def toXML1(x: Node, pmap: Map[String,String], sb: StringBuffer, stripComment: Boolean): Unit
n -
the non-root node
pmap -
mapping namespaces to prefixes
sb -
stringbuffer to append to
stripComment -
if true, strip comments
final def toXML1(x: Node, pmap: Map[String,String], sb: StringBuffer): Unit
final def attr2xml(ns: String, attrib: Iterator[Attribute], pmap: Map[String,String], sb: StringBuffer): Unit
n.attributes
ns -
attrib -
pmap -
sb -
final def hashCode(uname: UName, attribHashCode: Int, children: Seq[Node]): Int
uname -
attribHashCode -
children -
final def hashCode(uri: String, label: String, attribHashCode: Int, children: Seq[Node]): Int
uri -
label -
attribHashCode -
children -
final def hashCode(uri: String, label: String, attribs: HashMap[Tuple2[String,String],String], children: Seq[Node]): Int
uri -
label -
attribs -
children -
final def systemLiteralToString(s: String): String
final def publicLiteralToString(s: String): String
final def appendPrefixedName(ns: String, name: String, pmap: Map[String,String], sb: StringBuffer): Unit
ns -
name -
pmap -
sb -
final def appendQuoted(s: String, sb: StringBuffer): StringBuffer
s -
sb -
final def appendEscapedQuoted(s: String, sb: StringBuffer): StringBuffer
s -
sb -
|
Scala
1.3.0.7 |
|||