scala.xml

class PrefixedAttribute

[source: scala/xml/PrefixedAttribute.scala]

class PrefixedAttribute(val pre : java.lang.String, val key : java.lang.String, val value : Sequence[Node], val next : MetaData)
extends Attribute
prefixed attributes always have a non-null namespace.
Parameters
pre - ...
key - ...
value - the attribute value, which may not be null
next - ...
Additional Constructor Summary
def this (pre : java.lang.String, key : java.lang.String, value : java.lang.String, next : MetaData) : PrefixedAttribute
same as this(key, Utility.parseAttributeValue(value), next)
Method Summary
def apply (key : java.lang.String) : Sequence[Node]
forwards the call to next (because caller looks for unprefixed attribute
def apply (namespace : java.lang.String, scope : NamespaceBinding, key : java.lang.String) : Sequence[Node]
gets attribute value of qualified (prefixed) attribute with given key
def copy (next : MetaData) : PrefixedAttribute
Returns a copy of this unprefixed attribute with the given next field.
def equals1 (m : MetaData) : Boolean
shallow equals method
def getNamespace (owner : Node) : java.lang.String
if owner is the element of this metadata item, returns namespace
override def hashCode : Int
returns the hashcode.
final def isPrefixed : Boolean
returns true
def remove (key : java.lang.String) : PrefixedAttribute
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(pre : java.lang.String, key : java.lang.String, value : java.lang.String, next : MetaData) : PrefixedAttribute
same as this(key, Utility.parseAttributeValue(value), next)

Method Details
def copy(next : MetaData) : PrefixedAttribute
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

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) : Sequence[Node]
forwards the call to next (because caller looks for unprefixed attribute
Overrides
Attribute.apply

def apply(namespace : java.lang.String, scope : NamespaceBinding, key : java.lang.String) : Sequence[Node]
gets attribute value of qualified (prefixed) attribute with given key
Overrides
Attribute.apply

final def isPrefixed : Boolean
returns true
Overrides
Attribute.isPrefixed

override def hashCode : Int
returns the hashcode.

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

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

def remove(key : java.lang.String) : PrefixedAttribute
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