|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectnet.sf.mpxj.mpp.MPPComponent
net.sf.mpxj.mpp.AbstractVarMeta
abstract class AbstractVarMeta
This class reads in the data from a VarMeta block. This block contains meta data about variable length data items stored in a Var2Data block. The meta data allows the size of the Var2Data block to be determined, along with the number of data items it contains, identifiers for each item, and finally the offset of each item within the block.
| Field Summary | |
|---|---|
protected int |
m_dataSize
|
protected int |
m_itemCount
|
protected int[] |
m_offsets
|
protected java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.lang.Integer>> |
m_table
|
protected int |
m_unknown1
|
protected int |
m_unknown2
|
protected int |
m_unknown3
|
| Constructor Summary | |
|---|---|
AbstractVarMeta()
|
|
| Method Summary | |
|---|---|
int |
getDataSize()
This method retrieves the size of the Var2Data block. |
int |
getItemCount()
This method retrieves the number of items in the Var2Data block. |
int |
getOffset(int index)
This method retrieves the offset of the data item at the position defined by the index parameter. |
java.lang.Integer |
getOffset(java.lang.Integer id,
java.lang.Integer type)
This method retrieves the offset of a given entry in the Var2Data block. |
java.util.Set<java.lang.Integer> |
getTypes(java.lang.Integer id)
Retrieves a set containing the types defined in the var data for a given ID. |
java.lang.Integer[] |
getUniqueIdentifierArray()
This method returns an array containing all of the unique identifiers for which data has been stored in the Var2Data block. |
java.util.Set<java.lang.Integer> |
getUniqueIdentifierSet()
This method returns an set containing all of the unique identifiers for which data has been stored in the Var2Data block. |
java.lang.String |
toString()
This method dumps the contents of this VarMeta block as a String. |
| Methods inherited from class net.sf.mpxj.mpp.MPPComponent |
|---|
readByte, readByteArray, readInt, readShort |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int m_unknown1
protected int m_itemCount
protected int m_unknown2
protected int m_unknown3
protected int m_dataSize
protected int[] m_offsets
protected java.util.Map<java.lang.Integer,java.util.Map<java.lang.Integer,java.lang.Integer>> m_table
| Constructor Detail |
|---|
AbstractVarMeta()
| Method Detail |
|---|
public int getItemCount()
getItemCount in interface VarMetapublic int getDataSize()
getDataSize in interface VarMetapublic java.lang.Integer[] getUniqueIdentifierArray()
getUniqueIdentifierArray in interface VarMetapublic java.util.Set<java.lang.Integer> getUniqueIdentifierSet()
getUniqueIdentifierSet in interface VarMeta
public java.lang.Integer getOffset(java.lang.Integer id,
java.lang.Integer type)
getOffset in interface VarMetaid - unique identifier of an entitytype - data type identifier
public int getOffset(int index)
getOffset in interface VarMetaindex - index of item in the block
public java.util.Set<java.lang.Integer> getTypes(java.lang.Integer id)
getTypes in interface VarMetaid - unique ID
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||