proper.xml
Class Attribute

java.lang.Object
  extended by proper.xml.Attribute

public class Attribute
extends java.lang.Object

This class represents an XML attribute. The values are automatically transformed into XML conform strings.

Version:
$Revision: 1.2 $
Author:
FracPete

Constructor Summary
Attribute(java.lang.String name)
          initializes the attribute with empty value
Attribute(java.lang.String name, java.lang.String value)
          initializes the attribute with name and value
 
Method Summary
 java.lang.String getName()
          returns the name of the attribute
 java.lang.String getValue()
          returns the current value
static void main(java.lang.String[] args)
          for testing only
 void setValue(java.lang.String value)
          sets the value of this attribute
 java.lang.String toString()
          returns the attribute as a string
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Attribute

public Attribute(java.lang.String name)
initializes the attribute with empty value


Attribute

public Attribute(java.lang.String name,
                 java.lang.String value)
initializes the attribute with name and value

Method Detail

getName

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


setValue

public void setValue(java.lang.String value)
sets the value of this attribute


getValue

public java.lang.String getValue()
returns the current value


toString

public java.lang.String toString()
returns the attribute as a string

Overrides:
toString in class java.lang.Object

main

public static void main(java.lang.String[] args)
for testing only