Package org.epics.pvdata.factory
Class BaseBoundedString
- java.lang.Object
-
- org.epics.pvdata.factory.BaseField
-
- org.epics.pvdata.factory.BaseScalar
-
- org.epics.pvdata.factory.BaseBoundedString
-
- All Implemented Interfaces:
BoundedString,Field,Scalar,Serializable
public class BaseBoundedString extends BaseScalar implements BoundedString
Class for implementing a bounded string.- Author:
- mse
-
-
Field Summary
Fields Modifier and Type Field Description intmaxLength-
Fields inherited from class org.epics.pvdata.factory.BaseScalar
idLUT, typeCodeLUT
-
-
Constructor Summary
Constructors Constructor Description BaseBoundedString(int maxLength)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetID()Get the identification string.intgetMaximumLength()Get string maximum length.inthashCode()voidserialize(ByteBuffer buffer, SerializableControl control)Serialize field into given buffer.-
Methods inherited from class org.epics.pvdata.factory.BaseScalar
deserialize, getScalarType, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.epics.pvdata.pv.Scalar
getScalarType
-
Methods inherited from interface org.epics.pvdata.pv.Serializable
deserialize
-
-
-
-
Method Detail
-
getID
public String getID()
Description copied from interface:FieldGet the identification string.- Specified by:
getIDin interfaceField- Overrides:
getIDin classBaseScalar- Returns:
- the identification string, can be empty
-
serialize
public void serialize(ByteBuffer buffer, SerializableControl control)
Description copied from interface:SerializableSerialize field into given buffer.- Specified by:
serializein interfaceSerializable- Overrides:
serializein classBaseScalar- Parameters:
buffer- the serialization buffercontrol- the flush interface
-
getMaximumLength
public int getMaximumLength()
Description copied from interface:BoundedStringGet string maximum length.- Specified by:
getMaximumLengthin interfaceBoundedString- Returns:
- string maximum length
-
hashCode
public int hashCode()
- Overrides:
hashCodein classBaseScalar
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classBaseScalar
-
-