|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.base.types.DSEElementState
public class DSEElementState
This class implements the ElementState interface as a 32 bits mask of state flags. This class only uses the first five bits as the flags named mandatory, hidden, readOnly, disabled, and omitted.
Field Summary | |
---|---|
protected static int |
amended
|
protected static int |
disabled
|
protected static int |
hidden
|
protected static int |
mandatory
|
protected int |
mask
|
protected static int |
omitted
|
protected static int |
ones
|
protected static int |
readOnly
|
Constructor Summary | |
---|---|
DSEElementState()
This constructor creates a DSEElementState object with all flags not activated. |
|
DSEElementState(int aMask)
This constructor creates a new DSEElementState with a given mask. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clones the DSEElementState. |
boolean |
get(java.lang.String flagName)
Gets the flag state whose name is flagName. |
boolean |
isAmended()
Returns true if the amended flag is activated. |
boolean |
isDisabled()
Returns true if the disabled flag is activated. |
boolean |
isHidden()
Returns true if the hidden flag is activated. |
boolean |
isMandatory()
Returns true if the mandatory flag is activated. |
boolean |
isOmitted()
Returns true if the omitted flag is activated. |
boolean |
isReadOnly()
Returns true if the readOnly flag is activated. |
void |
readExternal(java.io.ObjectInput s)
Invokes the object creation from an ObjectInput. |
void |
set(java.lang.String flagName,
boolean aValue)
Sets a flag state to aValue |
void |
setAmended(boolean aValue)
Sets the amended flag to aValue. |
void |
setDisabled(boolean aValue)
Sets the disabled flag to aValue. |
void |
setHidden(boolean aValue)
Sets the hidden flag to aValue. |
void |
setMandatory(boolean aValue)
Sets the mandatory flag to aValue. |
void |
setOmitted(boolean aValue)
Sets the omitted flag to aValue. |
void |
setReadOnly(boolean aValue)
Sets the readOnly flag to aValue. |
void |
writeExternal(java.io.ObjectOutput s)
Provides concrete serialization handling for DSEElementState. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int mask
protected static int mandatory
protected static int hidden
protected static int readOnly
protected static int disabled
protected static int omitted
protected static int amended
protected static int ones
Constructor Detail |
---|
public DSEElementState()
public DSEElementState(int aMask)
aMask
- intMethod Detail |
---|
public java.lang.Object clone()
clone
in interface ElementState
clone
in class java.lang.Object
public boolean get(java.lang.String flagName) throws DSEInvalidArgumentException
get
in interface ElementState
flagName
- java.lang.String - The name of the flag
DSEInvalidArgumentException
- flagName is invalid.public boolean isAmended()
isAmended
in interface ElementState
public boolean isDisabled()
isDisabled
in interface ElementState
public boolean isHidden()
isHidden
in interface ElementState
public boolean isMandatory()
isMandatory
in interface ElementState
public boolean isOmitted()
isOmitted
in interface ElementState
public boolean isReadOnly()
isReadOnly
in interface ElementState
public void readExternal(java.io.ObjectInput s) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
s
- java.io.ObjectInput
java.io.IOException.
java.lang.ClassNotFoundException.
java.io.IOException
java.lang.ClassNotFoundException
public void set(java.lang.String flagName, boolean aValue) throws DSEInvalidArgumentException
set
in interface ElementState
flagName
- java.lang.String - The flag to setaValue
- boolean - The new value for the flag
DSEInvalidArgumentException
- - FlagName is invalidpublic void setAmended(boolean aValue)
setAmended
in interface ElementState
aValue
- booleanpublic void setDisabled(boolean aValue)
setDisabled
in interface ElementState
aValue
- booleanpublic void setHidden(boolean aValue)
setHidden
in interface ElementState
aValue
- booleanpublic void setMandatory(boolean aValue)
setMandatory
in interface ElementState
aValue
- booleanpublic void setOmitted(boolean aValue)
setOmitted
in interface ElementState
aValue
- booleanpublic void setReadOnly(boolean aValue)
setReadOnly
in interface ElementState
aValue
- booleanpublic void writeExternal(java.io.ObjectOutput s) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
s
- java.io.ObjectOutput
java.io.IOException.
java.io.IOException
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |