Package org.apache.poi.hwpf.model.types
Class FLDAbstractType
- java.lang.Object
-
- org.apache.poi.hwpf.model.types.FLDAbstractType
-
- Direct Known Subclasses:
FieldDescriptor
@Internal public abstract class FLDAbstractType extends java.lang.Object
Field Descriptor (FLD).
-
-
Constructor Summary
Constructors Constructor Description FLDAbstractType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description bytegetCh()Type of field boundary the FLD describes: 19 -- field begin mark, 20 -- field separation mark; 21 -- field end markbytegetChHolder()ch field holder (along with reserved bits).bytegetFlt()Field type when ch == 19 OR field flags when ch == 21 .bytegetReserved()Reservedstatic intgetSize()Size of record (exluding 4 byte header)booleanisFDiffer()Ignored for saved filebooleanisFHasSep()==1 when field has a field separatorbooleanisFLocked()==1 when field is locked from recalculationbooleanisFNested()==1 when field is nested within another fieldbooleanisFPrivateResult()==1 whenever the result of the field is never to be shownbooleanisFResultDirty()==1 when user has edited or formatted the result.booleanisFResultEdited()==1 when user has inserted text into or deleted text from the resultbooleanisFZombieEmbed()==1 when result still believes this field is an EMBED or LINK fieldvoidserialize(byte[] data, int offset)voidsetCh(byte value)Sets the ch field value.voidsetChHolder(byte field_1_chHolder)ch field holder (along with reserved bits).voidsetFDiffer(boolean value)Sets the fDiffer field value.voidsetFHasSep(boolean value)Sets the fHasSep field value.voidsetFLocked(boolean value)Sets the fLocked field value.voidsetFlt(byte field_2_flt)Field type when ch == 19 OR field flags when ch == 21 .voidsetFNested(boolean value)Sets the fNested field value.voidsetFPrivateResult(boolean value)Sets the fPrivateResult field value.voidsetFResultDirty(boolean value)Sets the fResultDirty field value.voidsetFResultEdited(boolean value)Sets the fResultEdited field value.voidsetFZombieEmbed(boolean value)Sets the fZombieEmbed field value.voidsetReserved(byte value)Sets the reserved field value.java.lang.StringtoString()
-
-
-
Method Detail
-
serialize
public void serialize(byte[] data, int offset)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getSize
public static int getSize()
Size of record (exluding 4 byte header)
-
getChHolder
public byte getChHolder()
ch field holder (along with reserved bits).
-
setChHolder
public void setChHolder(byte field_1_chHolder)
ch field holder (along with reserved bits).
-
getFlt
public byte getFlt()
Field type when ch == 19 OR field flags when ch == 21 .
-
setFlt
public void setFlt(byte field_2_flt)
Field type when ch == 19 OR field flags when ch == 21 .
-
setCh
public void setCh(byte value)
Sets the ch field value. Type of field boundary the FLD describes: 19 -- field begin mark, 20 -- field separation mark; 21 -- field end mark
-
getCh
public byte getCh()
Type of field boundary the FLD describes: 19 -- field begin mark, 20 -- field separation mark; 21 -- field end mark- Returns:
- the ch field value.
-
setReserved
public void setReserved(byte value)
Sets the reserved field value. Reserved
-
getReserved
public byte getReserved()
Reserved- Returns:
- the reserved field value.
-
setFDiffer
public void setFDiffer(boolean value)
Sets the fDiffer field value. Ignored for saved file
-
isFDiffer
public boolean isFDiffer()
Ignored for saved file- Returns:
- the fDiffer field value.
-
setFZombieEmbed
public void setFZombieEmbed(boolean value)
Sets the fZombieEmbed field value. ==1 when result still believes this field is an EMBED or LINK field
-
isFZombieEmbed
public boolean isFZombieEmbed()
==1 when result still believes this field is an EMBED or LINK field- Returns:
- the fZombieEmbed field value.
-
setFResultDirty
public void setFResultDirty(boolean value)
Sets the fResultDirty field value. ==1 when user has edited or formatted the result. == 0 otherwise
-
isFResultDirty
public boolean isFResultDirty()
==1 when user has edited or formatted the result. == 0 otherwise- Returns:
- the fResultDirty field value.
-
setFResultEdited
public void setFResultEdited(boolean value)
Sets the fResultEdited field value. ==1 when user has inserted text into or deleted text from the result
-
isFResultEdited
public boolean isFResultEdited()
==1 when user has inserted text into or deleted text from the result- Returns:
- the fResultEdited field value.
-
setFLocked
public void setFLocked(boolean value)
Sets the fLocked field value. ==1 when field is locked from recalculation
-
isFLocked
public boolean isFLocked()
==1 when field is locked from recalculation- Returns:
- the fLocked field value.
-
setFPrivateResult
public void setFPrivateResult(boolean value)
Sets the fPrivateResult field value. ==1 whenever the result of the field is never to be shown
-
isFPrivateResult
public boolean isFPrivateResult()
==1 whenever the result of the field is never to be shown- Returns:
- the fPrivateResult field value.
-
setFNested
public void setFNested(boolean value)
Sets the fNested field value. ==1 when field is nested within another field
-
isFNested
public boolean isFNested()
==1 when field is nested within another field- Returns:
- the fNested field value.
-
setFHasSep
public void setFHasSep(boolean value)
Sets the fHasSep field value. ==1 when field has a field separator
-
isFHasSep
public boolean isFHasSep()
==1 when field has a field separator- Returns:
- the fHasSep field value.
-
-