public class BitMaskTextProp extends TextProp implements java.lang.Cloneable
dataValue, maskInHeader, propName, sizeOfDataBlock
Constructor and Description |
---|
BitMaskTextProp(int sizeOfDataBlock,
int maskInHeader,
java.lang.String overallName,
java.lang.String[] subPropNames) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone, eg when you want to actually make use of one of these.
|
boolean[] |
getSubPropMatches()
Fetch the list of if the sub properties match or not
|
java.lang.String[] |
getSubPropNames()
Fetch the list of the names of the sub properties
|
boolean |
getSubValue(int idx)
Fetch the true/false status of the subproperty with the given index
|
int |
getWriteMask()
As we're purely mask based, just set flags for stuff
that is set
|
void |
setSubValue(boolean value,
int idx)
Set the true/false status of the subproperty with the given index
|
void |
setValue(int val)
Set the value of the text property, and recompute the sub
properties based on it
|
public BitMaskTextProp(int sizeOfDataBlock, int maskInHeader, java.lang.String overallName, java.lang.String[] subPropNames)
public java.lang.String[] getSubPropNames()
public boolean[] getSubPropMatches()
public int getWriteMask()
getWriteMask
in class TextProp
public void setValue(int val)
public boolean getSubValue(int idx)
public void setSubValue(boolean value, int idx)
Copyright 2014 The Apache Software Foundation or its licensors, as applicable.