IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.base
Class TagAttribute

java.lang.Object
  extended bycom.ibm.btt.base.TagAttribute
All Implemented Interfaces:
java.lang.Cloneable, DSECloneable, java.io.Serializable

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

Instances of this class hold the attributes of XML tags.

See Also:
Serialized Form

Field Summary
 java.lang.String name
           
 java.lang.Object value
           
 
Constructor Summary
TagAttribute()
          This is the default constructor for a TagAttribute constructor.
TagAttribute(java.lang.String name, java.lang.Object value)
          Constructs a TagAttribute object with the specified name and value.
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.
protected  void convert(java.lang.String originalValue)
           
 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 readExternal(java.io.ObjectInput s)
          Invokes the object creation from an ObjectInput.
 void setName(java.lang.String aName)
          Sets the name.
 void setValue(java.lang.Object aValue)
          Sets the value.
 void setValue(java.lang.String aValue)
          Sets the value.
 java.lang.String toString()
          Returns the TagAttribute as XML code.
 void writeExternal(java.io.ObjectOutput s)
          Provides concrete serialization handling for Context.
 
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.Object value
Constructor Detail

TagAttribute

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


TagAttribute

public TagAttribute(java.lang.String name,
                    java.lang.Object value)
Constructs a TagAttribute object with the specified name and value.

Parameters:
name - java.lang.String
value - java.lang.Object

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.

Specified by:
clone in interface DSECloneable
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
Throws:
java.lang.Exception

getName

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

Returns:
java.lang.String

convert

protected void convert(java.lang.String originalValue)

getValue

public java.lang.Object getValue()
Gets the value.

Returns:
java.lang.String

readExternal

public void readExternal(java.io.ObjectInput s)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Invokes the object creation from an ObjectInput. In the ObjectInput will arrive a context and all its children.

Parameters:
s - java.io.ObjectInput
Throws:
java.io.IOException.
java.lang.ClassNotFoundException.
java.io.IOException
java.lang.ClassNotFoundException

setName

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

Parameters:
aName - java.lang.String

setValue

public void setValue(java.lang.Object aValue)
Sets the value.

Parameters:
aValue - java.lang.Object

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 XML code.

Returns:
java.lang.String

writeExternal

public void writeExternal(java.io.ObjectOutput s)
                   throws java.io.IOException
Provides concrete serialization handling for Context. Will be serialized the current context and all its children.

Parameters:
s - java.io.ObjectOutput
Throws:
java.io.IOException

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005