Class LogicalSegment
- java.lang.Object
-
- org.apache.plc4x.java.eip.readwrite.PathSegment
-
- org.apache.plc4x.java.eip.readwrite.LogicalSegment
-
- All Implemented Interfaces:
Message,Serializable
public class LogicalSegment extends PathSegment implements Message
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLogicalSegment.LogicalSegmentBuilderImpl-
Nested classes/interfaces inherited from class org.apache.plc4x.java.eip.readwrite.PathSegment
PathSegment.PathSegmentBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected LogicalSegmentTypesegmentType
-
Constructor Summary
Constructors Constructor Description LogicalSegment(LogicalSegmentType segmentType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)intgetLengthInBits()intgetLengthInBytes()BytegetPathSegment()LogicalSegmentTypegetSegmentType()inthashCode()protected voidserializePathSegmentChild(WriteBuffer writeBuffer)static PathSegment.PathSegmentBuilderstaticParsePathSegmentBuilder(ReadBuffer readBuffer)StringtoString()-
Methods inherited from class org.apache.plc4x.java.eip.readwrite.PathSegment
serialize, staticParse, staticParse
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.plc4x.java.spi.utils.Serializable
serialize
-
-
-
-
Field Detail
-
segmentType
protected final LogicalSegmentType segmentType
-
-
Constructor Detail
-
LogicalSegment
public LogicalSegment(LogicalSegmentType segmentType)
-
-
Method Detail
-
getPathSegment
public Byte getPathSegment()
- Specified by:
getPathSegmentin classPathSegment
-
getSegmentType
public LogicalSegmentType getSegmentType()
-
serializePathSegmentChild
protected void serializePathSegmentChild(WriteBuffer writeBuffer) throws SerializationException
- Specified by:
serializePathSegmentChildin classPathSegment- Throws:
SerializationException
-
getLengthInBytes
public int getLengthInBytes()
- Specified by:
getLengthInBytesin interfaceMessage- Overrides:
getLengthInBytesin classPathSegment
-
getLengthInBits
public int getLengthInBits()
- Specified by:
getLengthInBitsin interfaceMessage- Overrides:
getLengthInBitsin classPathSegment
-
staticParsePathSegmentBuilder
public static PathSegment.PathSegmentBuilder staticParsePathSegmentBuilder(ReadBuffer readBuffer) throws ParseException
- Throws:
ParseException
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classPathSegment
-
hashCode
public int hashCode()
- Overrides:
hashCodein classPathSegment
-
toString
public String toString()
- Overrides:
toStringin classPathSegment
-
-