|
Scala
1.4.0.3 |
|||
Method Summary | |
final
|
def appendEscapedQuoted(s: String, sb: StringBuffer): StringBuffer
Appends "s" and escapes and " i s with \" |
final
|
def appendQuoted(s: String, sb: StringBuffer): StringBuffer
Appends "s" if s does not contain ", 's' otherwise |
final
|
def collectNamespaces(nodes: Seq[Node]): Set[String]
Returns a set of all namespaces used in a sequence of nodes and all their descendants, including the empty namespaces. |
final
|
def collectNamespaces(n: Node, set: Set[String]): Unit
adds all namespaces in node to set |
final
|
def escape(text: String): String
|
final
|
def escape(text: String, s: StringBuffer): StringBuffer
|
final
|
def hashCode(pre: String, label: String, attribHashCode: Int, scpeHash: Int, children: Seq[Node]): Int
Returns a hashcode for the given constituents of a node |
def hashCode(): Int
|
|
final
|
def prefix(name: String): Option[String]
returns prefix of qualified name if any |
final
|
def publicLiteralToString(s: String): String
|
final
|
def publicLiteralToString(sb: StringBuffer, s: String): StringBuffer
|
final
|
def systemLiteralToString(s: String): String
Returns a hashcode for the given constituents of a node |
final
|
def systemLiteralToString(sb: StringBuffer, s: String): StringBuffer
|
final
|
def toXML(n: Node): String
string representation of an XML node, with comments stripped the comments |
final
|
def toXML(n: Node, stripComment: Boolean): String
String representation of a Node. |
final
|
def toXML(x: Node, pscope: NamespaceBinding, sb: StringBuffer, stripComment: Boolean): Unit
appends a tree to the given stringbuffer within given namespace scope. |
final
|
def view(s: String): Text
|
Method Detail |
final def view(s: String): Text
final def escape(text: String): String
final def escape(text: String, s: StringBuffer): StringBuffer
final def collectNamespaces(nodes: Seq[Node]): Set[String]
nodes
-
final def collectNamespaces(n: Node, set: Set[String]): Unit
final def toXML(n: Node): String
final def toXML(n: Node, stripComment: Boolean): String
defaultPrefixes(n)
.
n
-
stripComment
-
final def toXML(x: Node, pscope: NamespaceBinding, sb: StringBuffer, stripComment: Boolean): Unit
n
-
the node
pscope
-
the parent scope
sb
-
stringbuffer to append to
stripComment
-
if true, strip comments
final def prefix(name: String): Option[String]
final def hashCode(pre: String, label: String, attribHashCode: Int, scpeHash: Int, children: Seq[Node]): Int
uri
-
label
-
attribHashCode
-
children
-
def hashCode(): Int
final def systemLiteralToString(s: String): String
uri
-
label
-
attribs
-
children
-
def hashCode(uri: String, label: String, attribs: scala.collection.mutable.HashMap[Pair[String,String],String], scpe: Int, children: Seq[Node]): Int = {
41 * uri.hashCode() % 7 + label.hashCode() + attribs.toList.hashCode() + scpe + children.hashCode()
}
final def systemLiteralToString(sb: StringBuffer, s: String): StringBuffer
final def publicLiteralToString(s: String): String
final def publicLiteralToString(sb: StringBuffer, s: String): StringBuffer
final def appendQuoted(s: String, sb: StringBuffer): StringBuffer
s
-
sb
-
final def appendEscapedQuoted(s: String, sb: StringBuffer): StringBuffer
s
-
sb
-
|
Scala
1.4.0.3 |
|||