org.apache.poi.ddf
Class EscherProperty
- java.lang.Object
-
- org.apache.poi.ddf.EscherProperty
-
- Direct Known Subclasses:
- EscherComplexProperty, EscherSimpleProperty
public abstract class EscherProperty extends java.lang.ObjectThis is the abstract base class for all escher properties.- See Also:
EscherOptRecord
-
-
Constructor Summary
Constructors Constructor and Description EscherProperty(short id)The id is distinct from the actual property number.EscherProperty(short propertyNumber, boolean isComplex, boolean isBlipId)Constructs a new escher property.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description shortgetId()java.lang.StringgetName()shortgetPropertyNumber()intgetPropertySize()Most properties are just 6 bytes in length.booleanisBlipId()booleanisComplex()abstract intserializeComplexPart(byte[] data, int pos)Escher properties consist of a simple fixed length part and a complex variable length part.abstract intserializeSimplePart(byte[] data, int pos)Escher properties consist of a simple fixed length part and a complex variable length part.java.lang.StringtoXml(java.lang.String tab)
-
-
-
Constructor Detail
-
EscherProperty
public EscherProperty(short id)
The id is distinct from the actual property number. The id includes the property number the blip id flag and an indicator whether the property is complex or not.
-
EscherProperty
public EscherProperty(short propertyNumber, boolean isComplex, boolean isBlipId)Constructs a new escher property. The three parameters are combined to form a property id.
-
-
Method Detail
-
getId
public short getId()
-
getPropertyNumber
public short getPropertyNumber()
-
isComplex
public boolean isComplex()
-
isBlipId
public boolean isBlipId()
-
getName
public java.lang.String getName()
-
getPropertySize
public int getPropertySize()
Most properties are just 6 bytes in length. Override this if we're dealing with complex properties.
-
toXml
public java.lang.String toXml(java.lang.String tab)
-
serializeSimplePart
public abstract int serializeSimplePart(byte[] data, int pos)Escher properties consist of a simple fixed length part and a complex variable length part. The fixed length part is serialized first.
-
serializeComplexPart
public abstract int serializeComplexPart(byte[] data, int pos)Escher properties consist of a simple fixed length part and a complex variable length part. The fixed length part is serialized first.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG