public abstract class CriteriaReader extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<Integer,byte[]> |
m_criteriaBlockMap |
protected ProjectFile |
m_file |
Constructor and Description |
---|
CriteriaReader() |
Modifier and Type | Method and Description |
---|---|
protected abstract byte[] |
getChildBlock(byte[] block)
Retrieves the child of the current block.
|
protected abstract int |
getCriteriaBlockSize()
Retrieves the criteria block size.
|
protected abstract int |
getCriteriaStartOffset()
Retrieves the offset of the start of the criteria data.
|
protected abstract int |
getCriteriaTextStartOffset()
Retrieves offset of value which determines the start of the text block.
|
protected abstract FieldType |
getFieldType(byte[] block)
Retrieves a field type value.
|
protected abstract byte[] |
getListNextBlock(byte[] block)
Retrieves the next list sibling of this block.
|
protected abstract int |
getPromptOffset(byte[] block)
Retrieves the offset of the prompt text.
|
protected abstract int |
getTextOffset(byte[] block)
Retrieves the offset of the start of the text block.
|
protected abstract int |
getTimeUnitsOffset()
Retrieves the offset of the time unit field.
|
protected abstract int |
getValueOffset()
Retrieves the offset of the field value.
|
GenericCriteria |
process(ProjectFile file,
byte[] data,
int dataOffset,
int entryOffset,
List<GenericCriteriaPrompt> prompts,
List<FieldType> fields,
boolean[] criteriaType)
Main entry point to read criteria data.
|
protected ProjectFile m_file
protected abstract int getCriteriaStartOffset()
protected abstract int getCriteriaBlockSize()
protected abstract byte[] getChildBlock(byte[] block)
block
- parent blockprotected abstract byte[] getListNextBlock(byte[] block)
block
- current blockprotected abstract int getTextOffset(byte[] block)
block
- current blockprotected abstract int getPromptOffset(byte[] block)
block
- current blockprotected abstract int getValueOffset()
protected abstract int getTimeUnitsOffset()
protected abstract int getCriteriaTextStartOffset()
protected abstract FieldType getFieldType(byte[] block)
block
- criteria blockpublic GenericCriteria process(ProjectFile file, byte[] data, int dataOffset, int entryOffset, List<GenericCriteriaPrompt> prompts, List<FieldType> fields, boolean[] criteriaType)
file
- project filedata
- criteria data blockdataOffset
- offset of the data start within the larger data blockentryOffset
- offset of start node for walking the treeprompts
- optional list to hold promptsfields
- optional list of hold fieldscriteriaType
- optional array representing criteria typesCopyright © 2000–2024 Packwood Software. All rights reserved.