public class unknown extends BaseDataType
BaseDataType.Type, BaseDataType.WrapperHandler
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.
|
BaseDataType |
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 |
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, instantiateDefault, instantiateDefaultExtent, invalidInitializer, isAllKnown, isAllKnown, isAssignDirect, isIncompatibleTypesOnConversion, isProxy, isUnknownValue, maximum, minimum, notUnknownValue, sameType, val, variable
changed, checkUndoable, checkUndoable, checkUndoable, getTransLevel, isGlobal, isUndoable, markUndoable, popBlock, rollback, setGlobal
public unknown()
public BaseDataType instantiateUnknown()
unknown value
.instantiateUnknown
in class BaseDataType
unknown value
.public BaseDataType.Type getType()
getType
in class BaseDataType
public BaseDataType duplicate()
clone()
method but returns an
instance of BaseDataType
and doesn't throw the
CloneNotSupportedException
.duplicate
in class BaseDataType
public int hashCode()
BaseDataType.equals(java.lang.Object)
.hashCode
in class BaseDataType
public boolean isUnknown()
unknown value
(which is always the case).isUnknown
in class BaseDataType
true
.public void setUnknown()
unknown value
so this
method does nothing.setUnknown
in class BaseDataType
public void assign(BaseDataType value)
assign
in class BaseDataType
value
- 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.Object
public java.lang.String toString(java.lang.String fmt)
unknown value
which
is always '?'.toString
in class BaseDataType
fmt
- 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 BaseDataType
public java.lang.String toStringExport()
unknown value
which
is always '?'.toStringExport
in class BaseDataType
public java.lang.String defaultFormatString()
defaultFormatString
in class BaseDataType
public 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.