tuwien.auto.calimero.xml
Class Attribute

java.lang.Object
  extended by tuwien.auto.calimero.xml.Attribute

public class Attribute
extends java.lang.Object

XML element attribute.

Objects of this type are immutable.


Constructor Summary
Attribute(java.lang.String name, java.lang.String value)
          Creates an attribute with its name and value.
 
Method Summary
 java.lang.String getName()
          Returns the attribute name.
 java.lang.String getValue()
          Returns the value of this 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 an attribute with its name and value.

Parameters:
name - name of the attribute
value - value of the attribute
Method Detail

getName

public final java.lang.String getName()
Returns the attribute name.

Returns:
attribute name

getValue

public final java.lang.String getValue()
Returns the value of this attribute.

Returns:
value as String

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object