Package org.epics.pvdata.factory
Class BaseStructureArray
- java.lang.Object
-
- org.epics.pvdata.factory.BaseField
-
- org.epics.pvdata.factory.BaseStructureArray
-
- All Implemented Interfaces:
Array,Field,Serializable,StructureArray
public class BaseStructureArray extends BaseField implements StructureArray
Base class for implementing a StructureArray. It is also a complete implementation.- Author:
- mrk
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.epics.pvdata.pv.Array
Array.ArraySizeType
-
-
Constructor Summary
Constructors Constructor Description BaseStructureArray(Structure elementStructure)Constructor for BaseStructureArray
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeserialize(ByteBuffer buffer, DeserializableControl control)Deserialize buffer.booleanequals(Object obj)Array.ArraySizeTypegetArraySizeType()Get array size type (i.e.StringgetID()Get the identification string.intgetMaximumCapacity()Get maximum capacity of the array.StructuregetStructure()Get the structure interface for an array element.inthashCode()voidserialize(ByteBuffer buffer, SerializableControl control)Serialize field into given buffer.voidtoString(StringBuilder buf, int indentLevel)Convert to a string
-
-
-
Constructor Detail
-
BaseStructureArray
public BaseStructureArray(Structure elementStructure)
Constructor for BaseStructureArray- Parameters:
elementStructure- The structure introspection interface for each element
-
-
Method Detail
-
getStructure
public Structure getStructure()
Description copied from interface:StructureArrayGet the structure interface for an array element.- Specified by:
getStructurein interfaceStructureArray- Returns:
- The interface.
-
toString
public void toString(StringBuilder buf, int indentLevel)
Description copied from interface:FieldConvert to a string
-
serialize
public void serialize(ByteBuffer buffer, SerializableControl control)
Description copied from interface:SerializableSerialize field into given buffer.- Specified by:
serializein interfaceSerializable- Parameters:
buffer- the serialization buffercontrol- the flush interface
-
deserialize
public void deserialize(ByteBuffer buffer, DeserializableControl control)
Description copied from interface:SerializableDeserialize buffer.- Specified by:
deserializein interfaceSerializable- Parameters:
buffer- the serialization buffercontrol- the deserialization control
-
getArraySizeType
public Array.ArraySizeType getArraySizeType()
Description copied from interface:ArrayGet array size type (i.e. variable/fixed/bounded size array).- Specified by:
getArraySizeTypein interfaceArray- Returns:
- array size type enum
-
getMaximumCapacity
public int getMaximumCapacity()
Description copied from interface:ArrayGet maximum capacity of the array.- Specified by:
getMaximumCapacityin interfaceArray- Returns:
- maximum capacity of the array, 0 indicates variable size array
-
-