|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mpxj.mpp.CriteriaReader
public abstract class CriteriaReader
This class allows criteria definitions to be read from an MPP file.
| Field Summary | |
|---|---|
protected Map<Integer,byte[]> |
m_criteriaBlockMap
|
| Constructor Summary | |
|---|---|
CriteriaReader()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map<Integer,byte[]> m_criteriaBlockMap
| Constructor Detail |
|---|
public CriteriaReader()
| Method Detail |
|---|
protected abstract int getCriteriaStartOffset()
protected abstract int getCriteriaBlockSize()
protected abstract byte[] getChildBlock(byte[] block)
block - parent block
protected abstract byte[] getListNextBlock(byte[] block)
block - current block
protected abstract int getTextOffset(byte[] block)
block - current block
protected abstract int getPromptOffset(byte[] block)
block - current block
protected abstract int getValueOffset()
protected abstract int getTimeUnitsOffset()
protected abstract int getCriteriaTextStartOffset()
protected abstract FieldType getFieldType(byte[] block)
block - criteria block
public GenericCriteria process(ProjectFile file,
byte[] data,
int dataOffset,
int entryOffset,
List<GenericCriteriaPrompt> prompts,
List<FieldType> fields,
boolean[] criteriaType)
file - parent 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 types
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||