Scala Library
|
|
scala/xml/UnprefixedAttribute.scala
]
class
UnprefixedAttribute(val
key : java.lang.String, val
value : Seq[Node], next1 : MetaData)
extends
AttributeAdditional Constructor Summary | |
def
|
this
(key : java.lang.String, value : java.lang.String, next : MetaData) : UnprefixedAttribute
same as this(key, Text(value), next)
|
def
|
this
(key : java.lang.String, value : Option[Seq[Node]], next : MetaData) : UnprefixedAttribute
same as this(key, value.get, next), or no attribute if value is None
|
Value Summary | |
val
|
next
: MetaData
returns Null or the next MetaData item
|
Method Summary | |
def
|
apply
(key : java.lang.String) : Seq[Node]
Gets value of unqualified (unprefixed) attribute with given key, null if not found
|
def
|
apply
(namespace : java.lang.String, scope : NamespaceBinding, key : java.lang.String) : Seq[Node]
Forwards the call to next (because caller looks for prefixed attribute).
|
def
|
copy
(next : MetaData) : UnprefixedAttribute
returns a copy of this unprefixed attribute with the given next field
|
def
|
equals1
(m : MetaData) : Boolean
shallow equals method
|
final def
|
getNamespace
(owner : Node) : java.lang.String
if owner is the element of this metadata item, returns namespace
|
override def
|
hashCode
: Int
Returns a hash code value for the object.
|
final def
|
isPrefixed : Boolean |
def
|
remove (key : java.lang.String) : MetaData |
def
|
remove (namespace : java.lang.String, scope : NamespaceBinding, key : java.lang.String) : MetaData |
def
|
toString1
(sb : StringBuilder) : Unit
appends string representation of only this attribute to stringbuffer.
|
def
|
wellformed (scope : NamespaceBinding) : Boolean |
Methods inherited from MetaData | |
append, apply, containedIn1, hasNext, length, length, equals, iterator, size, filter, map, get, get, get, toString1, toString, buildString, remove |
Methods inherited from Iterable | |
companion |
Methods inherited from IterableLike | |
thisCollection, toCollection, elements, foreach, forall, exists, find, isEmpty, foldRight, reduceRight, toIterable, head, take, slice, takeWhile, takeRight, dropRight, copyToArray, zip, zipAll, zipWithIndex, sameElements, toStream, canEqual, view, view, first, firstOption, projection |
Methods inherited from GenericTraversableTemplate | |
newBuilder, genericBuilder, unzip, flatten, transpose |
Methods inherited from TraversableLike | |
repr, nonEmpty, hasDefiniteSize, ++, ++, map, flatMap, filterNot, partialMap, remove, partition, groupBy, count, foldLeft, /:, :\, reduceLeft, reduceLeftOption, reduceRightOption, sum, product, min, max, headOption, tail, last, lastOption, init, drop, dropWhile, span, splitAt, copyToBuffer, copyToArray, toArray, toList, toSeq, toIndexedSeq, toSet, mkString, mkString, mkString, addString, addString, addString, stringPrefix, withFilter |
Methods inherited from AnyRef | |
getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Additional Constructor Details |
def
this(key : java.lang.String, value : java.lang.String, next : MetaData) : UnprefixedAttribute
def
this(key : java.lang.String, value : Option[Seq[Node]], next : MetaData) : UnprefixedAttribute
Value Details |
Method Details |
def
copy(next : MetaData) : UnprefixedAttribute
final
def
getNamespace(owner : Node) : java.lang.String
def
apply(key : java.lang.String) : Seq[Node]
key -
def
apply(namespace : java.lang.String, scope : NamespaceBinding, key : java.lang.String) : Seq[Node]
namespace -
scope -
key -
override
def
hashCode : Int
The default hashing algorithm is platform dependent.
Note that it is allowed for two objects to have identical hash
codes (o1.hashCode.equals(o2.hashCode)
) yet not be
equal (o1.equals(o2)
returns false
). A
degenerate implementation could always return 0
.
However, it is required that if two objects are equal
(o1.equals(o2)
returns true
) that they
have identical hash codes
(o1.hashCode.equals(o2.hashCode)
). Therefore, when
overriding this method, be sure to verify that the behavior is
consistent with the equals
method.
final
def
isPrefixed : Boolean
def
toString1(sb : StringBuilder) : Unit
sb -
..
def
wellformed(scope : NamespaceBinding) : Boolean
scope -
...true
iff ...
def
remove(key : java.lang.String) : MetaData
key -
...
def
remove(namespace : java.lang.String, scope : NamespaceBinding, key : java.lang.String) : MetaData
namespace -
...scope -
...key -
...
Scala Library
|
|