public class unknown extends BaseDataType
BaseDataType.Type, BaseDataType.WrapperHandler| Modifier and Type | Field and Description |
|---|---|
static unknown |
UNKNOWN
Singleton instance (as this is immutable) which can be used in FWD runtime.
|
| Constructor and Description |
|---|
unknown()
Default constructor, creates an instance that represents the unknown
value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
assign(BaseDataType value)
Sets the state (data and unknown value) of this instance based on the
state of the passed instance.
|
void |
assign(Undoable old)
Modify the contained data of the instance to copy the instance data
from the given instance.
|
int |
compareTo(java.lang.Object obj)
Compares this instance with the specified instance and returns a 0 if
the two instances are both
unknown and 1 if the passed
instance is not unknown. |
java.lang.String |
defaultFormatString()
Return the default display format string for this type.
|
unknown |
duplicate()
Does the same as standard
clone() method but returns an
instance of BaseDataType and doesn't throw the
CloneNotSupportedException. |
BaseDataType.Type |
getType()
Get the type
|
int |
hashCode()
Hash code implementation which is consistent with
BaseDataType.equals(java.lang.Object). |
BaseDataType |
instantiateDefault()
Creates a new instance of the same type that represents the default initialized value.
|
BaseDataType |
instantiateUnknown()
Creates a new instance of the same type that represents the
unknown value. |
boolean |
isUnknown()
Determines if this instance represents the
unknown value
(which is always the case). |
void |
readExternal(java.io.ObjectInput in)
Replacement for the default object reading method.
|
void |
setUnknown()
This instance always represents the
unknown value so this
method does nothing. |
java.lang.String |
toString()
Creates a string representation of the
unknown value which
is always '?'. |
java.lang.String |
toString(java.lang.String fmt)
Creates a string representation of the
unknown value which
is always '?'. |
java.lang.String |
toStringExport()
Creates a string representation of the
unknown value which
is always '?'. |
java.lang.String |
toStringMessage()
Creates a string representation of the instance data in a form that is
compatible with the
MESSAGE language statement. |
void |
writeExternal(java.io.ObjectOutput out)
Replacement for the default object writing method.
|
assign, assign, calcFormatLength, createProxy, createProxy, deepCopy, elementsOfType, equals, fallback, formatLength, fromTypeName, generateDefault, generateUnknown, getAssigner, getSize, getTypeName, incompatibleTypesOnConversion, initialize, initializeDefaultExtent, instantiateDefaultExtent, invalidInitializer, isAllKnown, isAllKnown, isAssignDirect, isIncompatibleTypesOnConversion, isProxy, isUnknownValue, maximum, minimum, notUnknownValue, sameType, val, variablechanged, checkUndoable, checkUndoable, checkUndoable, getTransLevel, isGlobal, isUndoable, markUndoable, popBlock, rollback, setGlobalpublic static final unknown UNKNOWN
public unknown()
public BaseDataType instantiateUnknown()
unknown value.instantiateUnknown in class BaseDataTypeunknown value.public BaseDataType instantiateDefault()
instantiateDefault in class BaseDataTypepublic BaseDataType.Type getType()
getType in class BaseDataTypepublic unknown duplicate()
clone() method but returns an
instance of BaseDataType and doesn't throw the
CloneNotSupportedException.duplicate in class BaseDataTypepublic int hashCode()
BaseDataType.equals(java.lang.Object).hashCode in class BaseDataTypepublic boolean isUnknown()
unknown value
(which is always the case).isUnknown in class BaseDataTypetrue.public void setUnknown()
unknown value so this
method does nothing.setUnknown in class BaseDataTypepublic void assign(BaseDataType value)
assign in class BaseDataTypevalue - The instance from which to copy state.public void assign(Undoable old)
assign method is
called, although this is not a strict requirement.old - The backup instance from which to copy data.public int compareTo(java.lang.Object obj)
unknown and 1 if the passed
instance is not unknown. This is the implementation of
the Comparable interface, although the contract is not
really correct. It is best NOT to use this method (it is required
as a concrete subclass of BaseDataType.obj - The instance to compare against.unknown.public java.lang.String toString()
unknown value which
is always '?'.toString in class java.lang.Objectpublic java.lang.String toString(java.lang.String fmt)
unknown value which
is always '?'.toString in class BaseDataTypefmt - Format string. Ignored at this time.public java.lang.String toStringMessage()
MESSAGE language statement. If the
instance represents the unknown value, a '?' will be
returned.toStringMessage in class BaseDataTypepublic java.lang.String toStringExport()
unknown value which
is always '?'.toStringExport in class BaseDataTypepublic java.lang.String defaultFormatString()
defaultFormatString in class BaseDataTypepublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
in - The input source from which fields will be restored.java.io.IOException - In case of I/O errors.java.lang.ClassNotFoundException - If payload can't be instantiated.public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
out - The output destination to which fields will be saved.java.io.IOException - In case of I/O errors.