com.ibm.dse.base
Class TagAttribute

java.lang.Object
  |
  +--com.ibm.dse.base.TagAttribute

public class TagAttribute
extends java.lang.Object
implements java.io.Serializable

Instances of this class hold the attributes of XML tags.

See Also:
Serialized Form

Field Summary
 java.lang.String name
           
 java.lang.String value
           
 
Constructor Summary
TagAttribute()
          This is the default constructor for a TagAttribute constructor.
TagAttribute(java.lang.String name, java.lang.String value)
          Constructs a TagAttribute object with the specified name and value.
 
Method Summary
 java.lang.Object clone()
          Returns a new TagAttribute cloned from the current one.
 java.util.Date getDate(java.lang.String aString)
          Builds a Date object from aString.
 java.lang.String getName()
          Gets the name.
 java.lang.Object getValue()
          Gets the value.
 void setName(java.lang.String aName)
          Sets the name.
 void setValue(java.lang.String aValue)
          Sets the value.
 java.lang.String toString()
          Returns the TagAttribute as SGML code.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public java.lang.String name

value

public java.lang.String value
Constructor Detail

TagAttribute

public TagAttribute()
This is the default constructor for a TagAttribute constructor.

TagAttribute

public TagAttribute(java.lang.String name,
                    java.lang.String value)
Constructs a TagAttribute object with the specified name and value.
Parameters:
name - java.lang.String
value - java.lang.String
Method Detail

clone

public java.lang.Object clone()
Returns a new TagAttribute cloned from the current one.
Overrides:
clone in class java.lang.Object
Returns:
java.lang.Object

getDate

public java.util.Date getDate(java.lang.String aString)
                       throws java.lang.Exception
Builds a Date object from aString.
Parameters:
aString - java.lang.String
Returns:
java.util.Date

getName

public java.lang.String getName()
Gets the name.
Returns:
java.lang.String

getValue

public java.lang.Object getValue()
Gets the value.
Returns:
java.lang.String

setName

public void setName(java.lang.String aName)
Sets the name.
Parameters:
aName - java.lang.String

setValue

public void setValue(java.lang.String aValue)
Sets the value.
Parameters:
aValue - java.lang.String

toString

public java.lang.String toString()
Returns the TagAttribute as SGML code.
Overrides:
toString in class java.lang.Object
Returns:
java.lang.String