com.ibm.dse.appl.ej.base
Class FloatConverterDefinition

java.lang.Object
  |
  +--com.ibm.dse.base.DataElement
        |
        +--com.ibm.dse.appl.ej.base.ConverterDefinition
              |
              +--com.ibm.dse.appl.ej.base.FloatConverterDefinition

public class FloatConverterDefinition
extends ConverterDefinition

FloatConverterDefintion is the class for all elements that externally define CBTF FloatConverters components as DataElements. The value of these definitions is an instance of the com.ibm.dse.gui.FloatConverter class.

See Also:
Serialized Form

Field Summary
protected  int decimals
           
protected  java.lang.String DECIMALS
           
protected  java.lang.String decSep
           
protected  java.lang.String DECSEP
           
protected static int DEFAULT_DECIMALS
           
protected static java.lang.String DEFAULT_DECSEP
           
protected static java.lang.String DEFAULT_ERROR
           
protected static boolean DEFAULT_ISCONVERTIBLE
           
protected static java.lang.String DEFAULT_SEPARATOR
           
protected  java.lang.String ERROR
           
protected  java.lang.String errorMessage
           
protected  java.lang.String FALSE
           
protected  boolean isConvertible
           
protected  java.lang.String ISCONVERTIBLE
           
protected  java.lang.String separator
           
protected  java.lang.String SEPARATOR
           
protected  java.lang.String TRUE
           
 
Fields inherited from class com.ibm.dse.appl.ej.base.ConverterDefinition
value
 
Fields inherited from class com.ibm.dse.base.DataElement
description, name, state
 
Constructor Summary
FloatConverterDefinition()
          This constructor creates a FloatConverterDefintion object.
 
Method Summary
 java.lang.Object clone()
          Required because of superclass.
 int getDecimals()
          Returns the value of the decimals property.
 java.lang.String getDecimalSeparator()
          Returns the value of the decimalSeparator property.
 java.lang.String getErrorMessage()
          Returns the value of the errorMessage property.
 java.lang.String getSeparator()
          Returns the value of the separator property.
 java.lang.Object initializeFrom(Tag aTag)
          Initializes a FloatConverterDefinition object with the aTag attributes.
 boolean isIsConvertible()
          Returns the value of the isConvertible property.
 void setDecimals(int newDecimals)
          Sets the value of the decimals property.
 void setDecimalSeparator(java.lang.String newDecimalSeparator)
          Sets the value of the decimalSeparator property.
 void setErrorMessage(java.lang.String newErrorMessage)
          Sets the value of the errorMessage property.
 void setIsConvertible(boolean newIsConvertible)
          Sets the value of the isConvertible property.
 void setSeparator(java.lang.String newSeparator)
          Sets the value of the separator property.
 void setValue(java.lang.Object newValue)
          If newValue is an instance of FloatConverter, sets the value of the value property.
 java.lang.String toString()
          Returns an SGML representation of this FloatConverterDefinition Object.
 java.lang.Object validate(java.lang.Object anObject)
          Required by the superclass
 
Methods inherited from class com.ibm.dse.appl.ej.base.ConverterDefinition
getValue, nestedElements, nestedElements, nestedFields
 
Methods inherited from class com.ibm.dse.base.DataElement
externalizer, getDescription, getDescriptor, getElementAt, getErrorInfo, getExternalizer, getKey, getName, getState, getTagName, readExternal, readExternal, readObject, removeElementAt, removeExternal, setDescription, setDescriptor, setErrorInfo, setExternalizer, setName, setState, toStrings, toTags, writeExternal, writeExternal
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

errorMessage

protected java.lang.String errorMessage

decSep

protected java.lang.String decSep

decimals

protected int decimals

separator

protected java.lang.String separator

isConvertible

protected boolean isConvertible

ERROR

protected final java.lang.String ERROR

DECSEP

protected final java.lang.String DECSEP

DECIMALS

protected final java.lang.String DECIMALS

SEPARATOR

protected final java.lang.String SEPARATOR

ISCONVERTIBLE

protected final java.lang.String ISCONVERTIBLE

TRUE

protected final java.lang.String TRUE

FALSE

protected final java.lang.String FALSE

DEFAULT_ERROR

protected static final java.lang.String DEFAULT_ERROR

DEFAULT_DECSEP

protected static final java.lang.String DEFAULT_DECSEP

DEFAULT_DECIMALS

protected static final int DEFAULT_DECIMALS

DEFAULT_SEPARATOR

protected static final java.lang.String DEFAULT_SEPARATOR

DEFAULT_ISCONVERTIBLE

protected static final boolean DEFAULT_ISCONVERTIBLE
Constructor Detail

FloatConverterDefinition

public FloatConverterDefinition()
This constructor creates a FloatConverterDefintion object.
Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Required because of superclass.
Overrides:
clone in class DataElement
Returns:
java.lang.Object
Throws:
java.lang.CloneNotSupportedException - The exception description.

getDecimals

public int getDecimals()
Returns the value of the decimals property.
Returns:
int - The current value of decimals property.

getDecimalSeparator

public java.lang.String getDecimalSeparator()
Returns the value of the decimalSeparator property.
Returns:
java.lang.String - The current value of decimalSeparator property.

getErrorMessage

public java.lang.String getErrorMessage()
Returns the value of the errorMessage property.
Returns:
java.lang.String - The current value of errorMessage attribute.

getSeparator

public java.lang.String getSeparator()
Returns the value of the separator property.
Returns:
java.lang.String - The current value of separator property.

initializeFrom

public java.lang.Object initializeFrom(Tag aTag)
                                throws java.io.IOException
Initializes a FloatConverterDefinition object with the aTag attributes.
Overrides:
initializeFrom in class ConverterDefinition
Parameters:
aTag - com.ibm.dse.base.Tag Contains the name and attributes of the object to be created.
Returns:
Object - An instance of FloatConverterDefinition.
Throws:
java.io.IOException - The object can not be created.

isIsConvertible

public boolean isIsConvertible()
Returns the value of the isConvertible property.
Returns:
boolean - The current value of isConvertible property.

setDecimals

public void setDecimals(int newDecimals)
Sets the value of the decimals property.
Parameters:
newDecimals - int The new value of the property.

setDecimalSeparator

public void setDecimalSeparator(java.lang.String newDecimalSeparator)
Sets the value of the decimalSeparator property.
Parameters:
newDecimalSeparator - java.lang.String The new value of the property.

setErrorMessage

public void setErrorMessage(java.lang.String newErrorMessage)
Sets the value of the errorMessage property.
Parameters:
newErrorMessage - java.lang.String The new value of the property.

setIsConvertible

public void setIsConvertible(boolean newIsConvertible)
Sets the value of the isConvertible property.
Parameters:
newIsConvertible - boolean The new value of the property.

setSeparator

public void setSeparator(java.lang.String newSeparator)
Sets the value of the separator property.
Parameters:
newSeparator - java.lang.String The new value of the property.

setValue

public void setValue(java.lang.Object newValue)
              throws DSEInvalidArgumentException
If newValue is an instance of FloatConverter, sets the value of the value property.
Overrides:
setValue in class ConverterDefinition
Parameters:
newValue - java.lang.Object The new value of the property.
Throws:
DSEInvalidArgumentException - - The parameter is not a FloatConverter Object.

toString

public java.lang.String toString()
Returns an SGML representation of this FloatConverterDefinition Object.
Overrides:
toString in class java.lang.Object
Returns:
java.lang.String

validate

public java.lang.Object validate(java.lang.Object anObject)
                          throws DSETypeException
Required by the superclass
Overrides:
validate in class DataElement
Parameters:
anObject - java.lang.Object
Returns:
java.lang.Object
Throws:
DSETypeException -