cds.xml
Class Attrib

java.lang.Object
  extended bycds.xml.Attrib

public class Attrib
extends java.lang.Object

Defines an XML attribute as a structure containing a name and a value

Version:
1.0 Feb 2002
Author:
Marc Wenger (CDS)

Field Summary
private  java.lang.String name
           
private  java.lang.String value
           
 
Constructor Summary
Attrib(java.lang.String name, java.lang.String value)
          Constructor
 
Method Summary
 java.lang.String getName()
          Returns the name of the attribute
 java.lang.String getValue()
          Returns the value of the attribute
 void set(java.lang.String name, java.lang.String value)
          Sets name and value to an attribute
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private java.lang.String name

value

private java.lang.String value
Constructor Detail

Attrib

public Attrib(java.lang.String name,
              java.lang.String value)
Constructor

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

set

public void set(java.lang.String name,
                java.lang.String value)
Sets name and value to an attribute

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

getName

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

Returns:
name of the attribute

getValue

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

Returns:
value of the attribute

toString

public java.lang.String toString()