Class S7StringFixedLengthTag
- java.lang.Object
-
- org.apache.plc4x.java.s7.readwrite.tag.S7Tag
-
- org.apache.plc4x.java.s7.readwrite.tag.S7StringFixedLengthTag
-
- All Implemented Interfaces:
PlcTag,Serializable
public class S7StringFixedLengthTag extends S7Tag
-
-
Field Summary
Fields Modifier and Type Field Description static PatternDATA_BLOCK_STRING_FIXED_LENGTH_ADDRESS_PATTERNstatic PatternDATA_BLOCK_STRING_FIXED_LENGTH_SHORT_PATTERN-
Fields inherited from class org.apache.plc4x.java.s7.readwrite.tag.S7Tag
BIT_OFFSET, BLOCK_NUMBER, BYTE_OFFSET, DATA_TYPE, MEMORY_AREA, NUM_ELEMENTS, STRING_LENGTH, TRANSFER_SIZE_CODE
-
-
Constructor Summary
Constructors Constructor Description S7StringFixedLengthTag(TransportSize dataType, MemoryArea memoryArea, int blockNumber, int byteOffset, byte bitOffset, int numElements, int stringLength)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetStringLength()static booleanmatches(String address)static S7StringFixedLengthTagof(String address)voidserialize(WriteBuffer writeBuffer)-
Methods inherited from class org.apache.plc4x.java.s7.readwrite.tag.S7Tag
checkByteOffset, checkDataBlockNumber, getAddressString, getArrayInfo, getBitOffset, getBlockNumber, getByteOffset, getDataType, getMemoryArea, getMemoryAreaForShortName, getNumberOfElements, getPlcDataType, getPlcValueType, getSizeCode, toString
-
-
-
-
Constructor Detail
-
S7StringFixedLengthTag
public S7StringFixedLengthTag(TransportSize dataType, MemoryArea memoryArea, int blockNumber, int byteOffset, byte bitOffset, int numElements, int stringLength)
-
-
Method Detail
-
getStringLength
public int getStringLength()
-
matches
public static boolean matches(String address)
-
serialize
public void serialize(WriteBuffer writeBuffer) throws SerializationException
- Specified by:
serializein interfaceSerializable- Overrides:
serializein classS7Tag- Throws:
SerializationException
-
of
public static S7StringFixedLengthTag of(String address)
-
-