scala.xml

class UnprefixedAttribute

[source: scala/xml/UnprefixedAttribute.scala]

class UnprefixedAttribute(val key : java.lang.String, val value : Seq[Node], next1 : MetaData)
extends Attribute
Unprefixed attributes have the null namespace, and no prefix field
Author
Burak Emir
Additional Constructor Summary
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
def this (key : java.lang.String, value : java.lang.String, next : MetaData) : UnprefixedAttribute
same as this(key, Text(value), next)
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
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 Details
val next : MetaData
returns Null or the next MetaData item
Overrides
Attribute.next

Method Details
def copy(next : MetaData) : UnprefixedAttribute
returns a copy of this unprefixed attribute with the given next field
Overrides
Attribute.copy

def equals1(m : MetaData) : Boolean
shallow equals method
Overrides
Attribute.equals1

final def getNamespace(owner : Node) : java.lang.String
if owner is the element of this metadata item, returns namespace
Overrides
Attribute.getNamespace

def apply(key : java.lang.String) : Seq[Node]
Gets value of unqualified (unprefixed) attribute with given key, null if not found
Parameters
key -
Returns
value as Seq[Node] if key is found, null otherwise
Overrides
Attribute.apply

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).
Parameters
namespace -
scope -
key -
Returns
..
Overrides
Attribute.apply

override def hashCode : Int
Returns a hash code value for the object.

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.

Returns
the hash code value for the object.


final def isPrefixed : Boolean
Overrides
Attribute.isPrefixed

def toString1(sb : StringBuilder) : Unit
appends string representation of only this attribute to stringbuffer.
Parameters
sb - ..
Overrides
Attribute.toString1

def wellformed(scope : NamespaceBinding) : Boolean
Parameters
scope - ...
Returns
true iff ...
Overrides
Attribute.wellformed

def remove(key : java.lang.String) : MetaData
Parameters
key - ...
Returns
...
Overrides
Attribute.remove

def remove(namespace : java.lang.String, scope : NamespaceBinding, key : java.lang.String) : MetaData
Parameters
namespace - ...
scope - ...
key - ...
Returns
...
Overrides
Attribute.remove