com.ibm.dse.services.formsprint
Class DataField

java.lang.Object
  |
  +--com.ibm.dse.base.DataElement
        |
        +--com.ibm.dse.base.DataField
              |
              +--com.ibm.dse.services.formsprint.DataField

public class DataField
extends DataField
implements java.lang.Cloneable

The DataField class is an extension of the class com.ibm.dse.base.DataField to manage a new attribute named type.

See Also:
Serialized Form

Field Summary
protected  java.lang.String type
          Specifies the type of the DataField, that can be "GLOBAL" or "FIELD"
 
Fields inherited from class com.ibm.dse.base.DataField
value
 
Fields inherited from class com.ibm.dse.base.DataElement
description, name, state
 
Constructor Summary
DataField()
          This constructor creates a DataField object.
DataField(java.lang.String aName)
          This constructor creates a DataField object.
 
Method Summary
 java.lang.Object clone()
          Returns a new DataField cloned from the current one.
 java.lang.String getType()
          Returns the type of the DataField.
 java.lang.Object initializeFrom(Tag aTag)
          Initializes a DataField with the Tag attributes.
 void setType(java.lang.String aType)
          Sets the type of the DataField.
 java.lang.String toString()
          Returns an XML representation of the DataField.
 
Methods inherited from class com.ibm.dse.base.DataField
getValue, nestedElements, nestedElements, nestedFields, readExternal, setValidValue, setValidValue, setValidValue, setValidValue, setValidValue, setValidValue, setValidValue, setValidValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, validate, validateState, writeExternal
 
Methods inherited from class com.ibm.dse.base.DataElement
externalizer, getDescription, getDescriptor, getElementAt, getErrorInfo, getExternalizer, getKey, getName, getState, getTagName, readExternal, readObject, removeElementAt, removeExternal, setDescription, setDescriptor, setErrorInfo, setExternalizer, setName, setState, toStrings, toTags, writeExternal
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

protected java.lang.String type
Specifies the type of the DataField, that can be "GLOBAL" or "FIELD"
Constructor Detail

DataField

public DataField()
This constructor creates a DataField object.

DataField

public DataField(java.lang.String aName)
          throws java.io.IOException
This constructor creates a DataField object.
Parameters:
aName - java.lang.String, the value for the name attribute of DataElement
Throws:
java.io.IOException -  
Method Detail

clone

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

getType

public java.lang.String getType()
Returns the type of the DataField.
Returns:
java.lang.String - the value for the type attribute

initializeFrom

public java.lang.Object initializeFrom(Tag aTag)
                                throws java.io.IOException
Initializes a DataField with the Tag attributes.
Overrides:
initializeFrom in class DataField
Parameters:
aTag - Tag, the Tag
Returns:
DataField - the initialized DataField
Throws:
java.io.IOException -  

setType

public void setType(java.lang.String aType)
Sets the type of the DataField.
Parameters:
aType - java.lang.String, the value for the type of DataField

toString

public java.lang.String toString()
Returns an XML representation of the DataField.
Overrides:
toString in class DataField
Returns:
java.lang.String - the XML representation