@@ -55,27 +55,27 @@ object Attribute {
55
55
*/
56
56
trait Attribute extends MetaData {
57
57
def pre : String // will be null if unprefixed
58
- val key : String
59
- val value : Seq [Node ]
60
- val next : MetaData
58
+ override val key : String
59
+ override val value : Seq [Node ]
60
+ override val next : MetaData
61
61
62
- def apply (key : String ): Seq [Node ]
63
- def apply (namespace : String , scope : NamespaceBinding , key : String ): Seq [Node ]
64
- def copy (next : MetaData ): Attribute
62
+ override def apply (key : String ): Seq [Node ]
63
+ override def apply (namespace : String , scope : NamespaceBinding , key : String ): Seq [Node ]
64
+ override def copy (next : MetaData ): Attribute
65
65
66
- def remove (key : String ) =
66
+ override def remove (key : String ) =
67
67
if (! isPrefixed && this .key == key) next
68
68
else copy(next remove key)
69
69
70
- def remove (namespace : String , scope : NamespaceBinding , key : String ) =
70
+ override def remove (namespace : String , scope : NamespaceBinding , key : String ) =
71
71
if (this .key == key && (scope getURI pre) == namespace) next
72
72
else copy(next.remove(namespace, scope, key))
73
73
74
- def isPrefixed : Boolean = pre != null
74
+ override def isPrefixed : Boolean = pre != null
75
75
76
- def getNamespace (owner : Node ): String
76
+ override def getNamespace (owner : Node ): String
77
77
78
- def wellformed (scope : NamespaceBinding ): Boolean = {
78
+ override def wellformed (scope : NamespaceBinding ): Boolean = {
79
79
val arg = if (isPrefixed) scope getURI pre else null
80
80
(next(arg, scope, key) == null ) && (next wellformed scope)
81
81
}
@@ -94,7 +94,7 @@ trait Attribute extends MetaData {
94
94
/**
95
95
* Appends string representation of only this attribute to stringbuffer.
96
96
*/
97
- protected def toString1 (sb : StringBuilder ): Unit = {
97
+ override protected def toString1 (sb : StringBuilder ): Unit = {
98
98
if (value == null )
99
99
return
100
100
if (isPrefixed)
0 commit comments