|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.dse.base.types.DSEElementState
This class implements the ElementState interface, as a 32 bits mask of state flags, using only the first five bits as the flags named mandatory, hidden, readOnly, disabled and omitted.
Field Summary | |
protected int |
disabled
|
protected int |
hidden
|
protected int |
mandatory
|
protected int |
mask
|
protected int |
omitted
|
protected int |
ones
|
protected 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 |
isDisabled()
Returns true if the disabled flag is activated and false otherwise. |
boolean |
isHidden()
Returns true if the hidden flag is activated and false otherwise. |
boolean |
isMandatory()
Returns true if the mandatory flag is activated and false otherwise. |
boolean |
isOmitted()
Returns true if the omitted flag is activated and false otherwise. |
boolean |
isReadOnly()
Returns true if the readOnly flag is activated and false otherwise. |
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 |
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 int mandatory
protected int hidden
protected int readOnly
protected int disabled
protected int omitted
protected int ones
Constructor Detail |
public DSEElementState()
public DSEElementState(int aMask)
aMask
- intMethod Detail |
public java.lang.Object clone()
public boolean get(java.lang.String flagName) throws DSEInvalidArgumentException
flagName
- java.lang.Stringpublic boolean isDisabled()
public boolean isHidden()
public boolean isMandatory()
public boolean isOmitted()
public boolean isReadOnly()
public void readExternal(java.io.ObjectInput s) throws java.io.IOException, java.lang.ClassNotFoundException
s
- java.io.ObjectInputpublic void set(java.lang.String flagName, boolean aValue) throws DSEInvalidArgumentException
flagName
- java.lang.StringaValue
- booleanpublic void setDisabled(boolean aValue)
aValue
- booleanpublic void setHidden(boolean aValue)
aValue
- booleanpublic void setMandatory(boolean aValue)
aValue
- booleanpublic void setOmitted(boolean aValue)
aValue
- booleanpublic void setReadOnly(boolean aValue)
aValue
- booleanpublic void writeExternal(java.io.ObjectOutput s) throws java.io.IOException
s
- java.io.ObjectOutput
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |