Top Description Fields Constructors Methods
org.apache.poi.ddf

public abstract Class EscherProperty

extends Object
implements GenericRecord
Class Inheritance
All Implemented Interfaces
org.apache.poi.common.usermodel.GenericRecord
Known Direct Subclasses
org.apache.poi.ddf.EscherSimpleProperty, org.apache.poi.ddf.EscherComplexProperty
Imports
java.util.List, .Map, java.util.function.Supplier, org.apache.poi.common.usermodel.GenericRecord, org.apache.poi.util.GenericRecordJsonWriter, .GenericRecordUtil, .GenericRecordXmlWriter

This is the abstract base class for all escher properties.
See Also
EscherOptRecord

Field Summary

Modifier and TypeField and Description
private static final int[]
private static final String[]
private final short
pack-priv static final int
pack-priv static final int

Constructor Summary

AccessConstructor and Description
protected
EscherProperty(short
the combined id
id
)

The id is distinct from the actual property number.

protected
EscherProperty(short
the property number
propertyNumber
,
boolean
true, if this is a complex property
isComplex
,
boolean
true, if this property is a blip id
isBlipId
)

Constructs a new escher property.

protected
EscherProperty(EscherPropertyTypes
one of the defined property types
type
,
boolean
true, if this is a complex property
isComplex
,
boolean
true, if this property is a blip id
isBlipId
)

Constructs a new escher property.

Method Summary

Modifier and TypeMethod and Description
public List<? extends GenericRecord>
public Map<String, Supplier<?>>
public EscherPropertyTypes
public short
public String
public short
public int

Returns:

size of this property (in bytes)
getPropertySize
()

Most properties are just 6 bytes in length.

public boolean
public boolean
public abstract int

Returns:

the length of the part
serializeComplexPart
(byte[]
the buffer to write to
data
,
int
the starting position
pos
)

Escher properties consist of a simple fixed length part and a complex variable length part.

public abstract int

Returns:

the length of the part
serializeSimplePart
(byte[]
the buffer to write to
data
,
int
the starting position
pos
)

Escher properties consist of a simple fixed length part and a complex variable length part.

public final String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public final String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

FLAG_MASKback to summary
private static final int[] FLAG_MASK
FLAG_NAMESback to summary
private static final String[] FLAG_NAMES
idback to summary
private final short id
IS_BLIPback to summary
pack-priv static final int IS_BLIP
IS_COMPLEXback to summary
pack-priv static final int IS_COMPLEX

Constructor Detail

EscherPropertyback to summary
protected 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.

Parameters
id:short

the combined id

EscherPropertyback to summary
protected EscherProperty(short propertyNumber, boolean isComplex, boolean isBlipId)

Constructs a new escher property. The three parameters are combined to form a property id.

Parameters
propertyNumber:short

the property number

isComplex:boolean

true, if this is a complex property

isBlipId:boolean

true, if this property is a blip id

EscherPropertyback to summary
protected EscherProperty(EscherPropertyTypes type, boolean isComplex, boolean isBlipId)

Constructs a new escher property. The three parameters are combined to form a property id.

Parameters
type:EscherPropertyTypes

one of the defined property types

isComplex:boolean

true, if this is a complex property

isBlipId:boolean

true, if this property is a blip id

Method Detail

getGenericChildrenback to summary
public List<? extends GenericRecord> getGenericChildren()

Overrides default org.apache.poi.common.usermodel.GenericRecord.getGenericChildren.

Annotations
@Override
getGenericPropertiesback to summary
public Map<String, Supplier<?>> getGenericProperties()

Implements org.apache.poi.common.usermodel.GenericRecord.getGenericProperties.

Annotations
@Override
getGenericRecordTypeback to summary
public EscherPropertyTypes getGenericRecordType()

Overrides default org.apache.poi.common.usermodel.GenericRecord.getGenericRecordType.

Annotations
@Override
getIdback to summary
public short getId()
getNameback to summary
public String getName()
getPropertyNumberback to summary
public short getPropertyNumber()
getPropertySizeback to summary
public int getPropertySize()

Most properties are just 6 bytes in length. Override this if we're dealing with complex properties.

Returns:int

size of this property (in bytes)

isBlipIdback to summary
public boolean isBlipId()
isComplexback to summary
public boolean isComplex()
serializeComplexPartback to summary
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.

Parameters
data:byte[]

the buffer to write to

pos:int

the starting position

Returns:int

the length of the part

serializeSimplePartback to summary
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.

Parameters
data:byte[]

the buffer to write to

pos:int

the starting position

Returns:int

the length of the part

toStringback to summary
public final String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
toXmlback to summary
public final String toXml(String tab)