public abstract class EscherProperty
extends java.lang.Object
EscherOptRecord
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
abstract java.lang.String |
toString() |
java.lang.String |
toXml(java.lang.String tab) |
public EscherProperty(short id)
id
- the combined idpublic 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 idpublic short getId()
public short getPropertyNumber()
public boolean isComplex()
public boolean isBlipId()
public java.lang.String getName()
public int getPropertySize()
public java.lang.String toXml(java.lang.String tab)
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 abstract java.lang.String toString()
toString
in class java.lang.Object
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.