summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2005-11-08 12:41:28 +0000
committermichelou <michelou@epfl.ch>2005-11-08 12:41:28 +0000
commit83282ce687fe17bcd14b7f415dc554a5b299420c (patch)
tree6ebbbd3b429d9d00e9149e819ba8e984b9d87693 /sources
parent0f97e0f90df27d39a75b3142c72ad21d20fbdd2c (diff)
downloadscala-83282ce687fe17bcd14b7f415dc554a5b299420c.tar.gz
scala-83282ce687fe17bcd14b7f415dc554a5b299420c.tar.bz2
scala-83282ce687fe17bcd14b7f415dc554a5b299420c.zip
- corrected CVS id tag.
Diffstat (limited to 'sources')
-rw-r--r--sources/scala/xml/UnprefixedAttribute.scala26
1 files changed, 18 insertions, 8 deletions
diff --git a/sources/scala/xml/UnprefixedAttribute.scala b/sources/scala/xml/UnprefixedAttribute.scala
index 9e006529ae..b00b25f31c 100644
--- a/sources/scala/xml/UnprefixedAttribute.scala
+++ b/sources/scala/xml/UnprefixedAttribute.scala
@@ -6,7 +6,7 @@
** |/ **
\* */
-// $id: $
+// $Id$
package scala.xml;
@@ -18,20 +18,30 @@ class UnprefixedAttribute(val key: String, val value: String, val next: MetaData
def copy(next: MetaData) =
new UnprefixedAttribute(key, value, next);
- def equals1(m:MetaData) = !m.isPrefixed && (m.key == key) && (m.value == value);
+ def equals1(m:MetaData) =
+ !m.isPrefixed && (m.key == key) && (m.value == value);
/** returns null */
final def getNamespace(owner: Node): String =
null;
- /** gets value of unqualified (unprefixed) attribute with given key */
+ /**
+ * Gets value of unqualified (unprefixed) attribute with given key.
+ *
+ * @param key
+ * @return ..
+ */
def getValue(key: String): String =
- if(key == this.key)
- value
- else
- next.getValue(key);
+ if (key == this.key) value else next.getValue(key);
- /** forwards the call to next */
+ /**
+ * Forwards the call to next.
+ *
+ * @param namespace
+ * @param scope
+ * @param key
+ * @return ..
+ */
def getValue(namespace: String, scope: NamespaceBinding, key: String): String =
next.getValue(namespace, scope, key);