public abstract class EscherProperty extends java.lang.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 |
---|---|
java.util.List<? extends GenericRecord> |
getGenericChildren() |
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
EscherPropertyTypes |
getGenericRecordType() |
short |
getId() |
java.lang.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.
|
java.lang.String |
toString() |
java.lang.String |
toXml(java.lang.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)
propertyNumber
- the property numberisComplex
- 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 java.lang.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 final java.lang.String toString()
toString
in class java.lang.Object
public final java.lang.String toXml(java.lang.String tab)
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface GenericRecord
public java.util.List<? extends GenericRecord> getGenericChildren()
getGenericChildren
in interface GenericRecord
public EscherPropertyTypes getGenericRecordType()
getGenericRecordType
in interface GenericRecord
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.