Class PascalString
- java.lang.Object
-
- org.apache.plc4x.java.opcua.readwrite.PascalString
-
- All Implemented Interfaces:
Message,Serializable
public class PascalString extends Object implements Message
-
-
Field Summary
Fields Modifier and Type Field Description protected StringstringValue
-
Constructor Summary
Constructors Constructor Description PascalString(String stringValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)intgetLengthInBits()intgetLengthInBytes()intgetStringLength()StringgetStringValue()inthashCode()voidserialize(WriteBuffer writeBuffer)static PascalStringstaticParse(ReadBuffer readBuffer)static PascalStringstaticParse(ReadBuffer readBuffer, Object... args)StringtoString()
-
-
-
Field Detail
-
stringValue
protected final String stringValue
-
-
Constructor Detail
-
PascalString
public PascalString(String stringValue)
-
-
Method Detail
-
getStringValue
public String getStringValue()
-
getStringLength
public int getStringLength()
-
serialize
public void serialize(WriteBuffer writeBuffer) throws SerializationException
- Specified by:
serializein interfaceSerializable- Throws:
SerializationException
-
getLengthInBytes
public int getLengthInBytes()
- Specified by:
getLengthInBytesin interfaceMessage
-
getLengthInBits
public int getLengthInBits()
- Specified by:
getLengthInBitsin interfaceMessage
-
staticParse
public static PascalString staticParse(ReadBuffer readBuffer, Object... args) throws ParseException
- Throws:
ParseException
-
staticParse
public static PascalString staticParse(ReadBuffer readBuffer) throws ParseException
- Throws:
ParseException
-
-