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.
(构造一个新的 escher 属性。)
|
protected |
EscherProperty(short id)
The id is distinct from the actual property number.
(id 与实际的属性编号不同。)
|
protected |
EscherProperty(short propertyNumber, boolean isComplex, boolean isBlipId)
Constructs a new escher property.
(构造一个新的 escher 属性。)
|
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.
(大多数属性的长度只有 6 个字节。)
|
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.
(Escher 属性由一个简单的固定长度部分和一个复杂的可变长度部分组成。)
|
abstract int |
serializeSimplePart(byte[] data, int pos)
Escher properties consist of a simple fixed length part and a complex variable length part.
(Escher 属性由一个简单的固定长度部分和一个复杂的可变长度部分组成。)
|
java.lang.String |
toString() |
java.lang.String |
toXml(java.lang.String tab) |
protected EscherProperty(short id)
id
- the combined id
(id - 组合的 id)
protected EscherProperty(short propertyNumber, boolean isComplex, boolean isBlipId)
propertyNumber
- the property number
(propertyNumber - 属性编号)
isComplex
- true, if this is a complex property
(isComplex - 如果这是一个复杂属性,则为 true)
isBlipId
- true, if this property is a blip id
(isBlipId - 如果此属性是 blip id,则为 true)
protected EscherProperty(EscherPropertyTypes type, boolean isComplex, boolean isBlipId)
type
- one of the defined property types
(type - 定义的属性类型之一)
isComplex
- true, if this is a complex property
(isComplex - 如果这是一个复杂属性,则为 true)
isBlipId
- true, if this property is a blip id
(isBlipId - 如果此属性是 blip id,则为 true)
public 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 to
(data - 要写入的缓冲区)
pos
- the starting position
(pos - 起始位置)
public abstract int serializeComplexPart(byte[] data, int pos)
data
- the buffer to write to
(data - 要写入的缓冲区)
pos
- the starting position
(pos - 起始位置)
public 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
(接口 GenericRecord 中的 getGenericProperties)
public java.util.List<? extends GenericRecord> getGenericChildren()
getGenericChildren
in interface
GenericRecord
(接口 GenericRecord 中的 getGenericChildren)
public EscherPropertyTypes getGenericRecordType()
getGenericRecordType
in interface
GenericRecord
(接口 GenericRecord 中的 getGenericRecordType)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.