public abstract class EscherProperty extends Object implements GenericRecord
EscherOptRecord| Modifier | Constructor and Description |
|---|---|
protected |
EscherProperty(EscherPropertyTypes type,
boolean isComplex,
boolean isBlipId)
Constructs a new escher property.
|
protected |
EscherProperty(short id)
The id is distinct from the actual property number.
|
protected |
EscherProperty(short propertyNumber,
boolean isComplex,
boolean isBlipId)
Constructs a new escher property.
|
| Modifier and Type | Method and Description |
|---|---|
List<? extends GenericRecord> |
getGenericChildren() |
Map<String,Supplier<?>> |
getGenericProperties() |
EscherPropertyTypes |
getGenericRecordType() |
short |
getId() |
String |
getName() |
short |
getPropertyNumber() |
int |
getPropertySize()
Most properties are just 6 bytes in length.
|
boolean |
isBlipId() |
boolean |
isComplex() |
abstract int |
serializeComplexPart(byte[] data,
int pos)
Escher properties consist of a simple fixed length part and a complex variable length part.
|
abstract int |
serializeSimplePart(byte[] data,
int pos)
Escher properties consist of a simple fixed length part and a complex variable length part.
|
String |
toString() |
String |
toXml(String tab) |
protected EscherProperty(short id)
id - the combined idprotected EscherProperty(short propertyNumber,
boolean isComplex,
boolean isBlipId)
propertyNumber - the property numberisComplex - true, if this is a complex propertyisBlipId - true, if this property is a blip idprotected EscherProperty(EscherPropertyTypes type, boolean isComplex, boolean isBlipId)
type - one of the defined property typesisComplex - true, if this is a complex propertyisBlipId - true, if this property is a blip idpublic short getId()
public short getPropertyNumber()
public boolean isComplex()
public boolean isBlipId()
public String getName()
public int getPropertySize()
public abstract int serializeSimplePart(byte[] data,
int pos)
data - the buffer to write topos - the starting positionpublic abstract int serializeComplexPart(byte[] data,
int pos)
data - the buffer to write topos - the starting positionpublic Map<String,Supplier<?>> getGenericProperties()
getGenericProperties in interface GenericRecordpublic List<? extends GenericRecord> getGenericChildren()
getGenericChildren in interface GenericRecordpublic EscherPropertyTypes getGenericRecordType()
getGenericRecordType in interface GenericRecord