org.kxml
Class Attribute

java.lang.Object
  extended byorg.kxml.Attribute

public class Attribute
extends java.lang.Object

Attribute class, used by both kDom and the pullparser. The instances of this class are immutable. This restriction allows manipulation aware element implementations without needing to care about hidden changes in attributes.


Constructor Summary
Attribute(java.lang.String name, java.lang.String value)
          Creates a new Attribute instance with the given name and value.
Attribute(java.lang.String namespace, java.lang.String name, java.lang.String value)
          creates a new Attribute with the given namespace, name and value
 
Method Summary
 java.lang.String getName()
          returns the name of the attribute
 java.lang.String getNamespace()
          returns the namespace of the attribute
 java.lang.String getValue()
          returns the string value of the attribute
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Attribute

public Attribute(java.lang.String name,
                 java.lang.String value)
Creates a new Attribute instance with the given name and value. The namespace is set to "".


Attribute

public Attribute(java.lang.String namespace,
                 java.lang.String name,
                 java.lang.String value)
creates a new Attribute with the given namespace, name and value

Method Detail

getValue

public java.lang.String getValue()
returns the string value of the attribute


getName

public java.lang.String getName()
returns the name of the attribute


getNamespace

public java.lang.String getNamespace()
returns the namespace of the attribute


toString

public java.lang.String toString()