public class EscherSimpleProperty extends EscherProperty
Constructor and Description |
---|
EscherSimpleProperty(EscherPropertyTypes type, boolean isComplex, boolean isBlipId, int propertyValue)
Constructs a new escher property.
|
EscherSimpleProperty(EscherPropertyTypes type, int propertyValue)
The id is distinct from the actual property number.
|
EscherSimpleProperty(short propertyNumber, boolean isComplex, boolean isBlipId, int propertyValue)
Constructs a new escher property.
|
EscherSimpleProperty(short id, int propertyValue)
The id is distinct from the actual property number.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Returns true if one escher property is equal to another.
(如果一个 escher 属性等于另一个,则返回 true。)
|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
int |
getPropertyValue() |
int |
hashCode()
Returns a hashcode so that this object can be stored in collections that require the use of such things.
(返回一个哈希码,以便可以将此对象存储在需要使用此类事物的集合中。)
|
int |
serializeComplexPart(byte[] data, int pos)
Escher properties consist of a simple fixed length part and a complex variable length part.
(Escher 属性由一个简单的固定长度部分和一个复杂的可变长度部分组成。)
|
int |
serializeSimplePart(byte[] data, int offset)
Serialize the simple part of the escher record.
(序列化 escher 记录的简单部分。)
|
getGenericChildren, getGenericRecordType, getId, getName, getPropertyNumber, getPropertySize, isBlipId, isComplex, toString, toXml
public EscherSimpleProperty(short id, int propertyValue)
id
- the property id
(id - 属性 ID)
propertyValue
- the property value
(propertyValue - 属性值)
public EscherSimpleProperty(EscherPropertyTypes type, int propertyValue)
type
- the property type
(type - 属性类型)
propertyValue
- the property value
(propertyValue - 属性值)
public EscherSimpleProperty(short propertyNumber, boolean isComplex, boolean isBlipId, int propertyValue)
propertyNumber
- the property number
(propertyNumber - 属性编号)
isComplex
- true, if its a complex property
(isComplex - 如果是复杂属性,则为真)
isBlipId
- true, if its a blip
(isBlipId - true,如果它是一个光点)
propertyValue
- the property value
(propertyValue - 属性值)
public EscherSimpleProperty(EscherPropertyTypes type, boolean isComplex, boolean isBlipId, int propertyValue)
type
- one of the defined property types
(type - 定义的属性类型之一)
isComplex
- true, if its a complex property
(isComplex - 如果是复杂属性,则为真)
isBlipId
- true, if its a blip
(isBlipId - true,如果它是一个光点)
propertyValue
- the property value
(propertyValue - 属性值)
public int serializeSimplePart(byte[] data, int offset)
serializeSimplePart
in class
EscherProperty
(类 EscherProperty 中的 serializeSimplePart)
data
- the buffer to write to
(data - 要写入的缓冲区)
offset
- the starting position
(offset - 起始位置)
public int serializeComplexPart(byte[] data, int pos)
serializeComplexPart
in class
EscherProperty
(类 EscherProperty 中的 serializeComplexPart)
data
- the buffer to write to
(data - 要写入的缓冲区)
pos
- the starting position
(pos - 起始位置)
public int getPropertyValue()
public boolean equals(java.lang.Object o)
equals
in class
java.lang.Object
public int hashCode()
hashCode
in class
java.lang.Object
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
getGenericProperties
in interface
GenericRecord
(接口 GenericRecord 中的 getGenericProperties)
getGenericProperties
in class
EscherProperty
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.