scala.xml

class UnprefixedAttribute

[source: scala/xml/UnprefixedAttribute.scala]

class UnprefixedAttribute(val key : java.lang.String, val value : Sequence[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[Sequence[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 (namespace : java.lang.String, scope : NamespaceBinding, key : java.lang.String) : Sequence[Node]
Forwards the call to next (because caller looks for prefixed attribute).
def apply (key : java.lang.String) : Sequence[Node]
Gets value of unqualified (unprefixed) attribute with given key, null if not found
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
returns null
override def hashCode : Int
returns the hashcode.
final def isPrefixed : Boolean
returns false
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 IterableTemplate
elements, foreach, isEmpty, foldRight, reduceRight, toIterable, head, takeRight, dropRight, sameElements, toStream, view, view, first, firstOption, toSeq, projection
Methods inherited from TraversableClass
newBuilder, genericBuilder, unzip, flatten, transpose
Methods inherited from TraversableTemplate
thisCollection, nonEmpty, hasDefiniteSize, ++, ++, map, flatMap, filterMap, filterNot, remove, partition, groupBy, forall, exists, count, find, foldLeft, /:, :\, reduceLeft, reduceLeftOption, reduceRightOption, headOption, tail, last, lastOption, init, take, drop, slice, takeWhile, dropWhile, span, splitAt, copyToBuffer, copyToArray, copyToArray, toArray, toList, toSequence, toSet, mkString, mkString, mkString, addString, addString, addString, stringPrefix
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[Sequence[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
returns null
Overrides
Attribute.getNamespace

def apply(key : java.lang.String) : Sequence[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) : Sequence[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 the hashcode.

final def isPrefixed : Boolean
returns false
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