Class SymbolicSeg
- java.lang.Object
- 
- com.automation_pros.odva.cip.path.PathSegment
- 
- com.automation_pros.odva.cip.path.SymbolicSeg
 
 
- 
- All Implemented Interfaces:
- SymbolSeg,- java.lang.Comparable<PathSegment>
 
 public class SymbolicSeg extends PathSegment implements SymbolSeg 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSymbolicSeg.DecoderDecode bytes expected to contain one encoded path segment.static classSymbolicSeg.ParserA symbolic segment is not restricted to ISO-8859-1 characters.- 
Nested classes/interfaces inherited from class com.automation_pros.odva.cip.path.PathSegmentPathSegment.HasAlternateHex
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected bytecharLenprotected byteextTypestatic byteSEGTYPEprotected java.lang.Stringsymbol- 
Fields inherited from class com.automation_pros.odva.cip.path.PathSegmentidentifierChars, segtype
 
- 
 - 
Constructor SummaryConstructors Constructor Description SymbolicSeg()SymbolicSeg(java.lang.String symbol)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(PathSegment o)booleanequals(java.lang.Object o)intgetBytes()Obtain the number of bytes needed to encode this segment instance in packed format.java.lang.StringgetSymbol()java.util.List<java.lang.String>getTokens()inthashCode()voidput(java.nio.ByteBuffer dest, boolean padded)Encode the current instance to the given destination.PathSegmentset(java.nio.ByteBuffer source, boolean padded)Replace the current instance content with the decoded source bytes.voidsetSymbol(int val)voidsetSymbol(java.lang.String symb)java.lang.StringsimpleString()Supply s simple descriptive name usable when browsing a hierarchy.- 
Methods inherited from class com.automation_pros.odva.cip.path.PathSegmentdecode, decodeAll, getSegtype, getWords, hexString, mergeTokens, registerHandler, setSegtype, toString
 
- 
 
- 
- 
- 
Field Detail- 
SEGTYPEpublic static final byte SEGTYPE - See Also:
- Constant Field Values
 
 - 
charLenprotected byte charLen 
 - 
extTypeprotected byte extType 
 - 
symbolprotected java.lang.String symbol 
 
- 
 - 
Method Detail- 
setSymbolpublic void setSymbol(java.lang.String symb) 
 - 
setSymbolpublic void setSymbol(int val) 
 - 
setpublic PathSegment set(java.nio.ByteBuffer source, boolean padded) Description copied from class:PathSegmentReplace the current instance content with the decoded source bytes.The caller must ensure that the instance is appropriate for the bytes supplied. This permits instance re-use in optimized applications. - Specified by:
- setin class- PathSegment
- Parameters:
- source- The bytes to be decoded. The position will be left after the last byte of the decoded segment.
- padded- Alternate format selection. Packed format when false.
- Returns:
- The same instance.
 
 - 
putpublic void put(java.nio.ByteBuffer dest, boolean padded)Description copied from class:PathSegmentEncode the current instance to the given destination.- Specified by:
- putin interface- SymbolSeg
- Specified by:
- putin class- PathSegment
- Parameters:
- dest- The buffer receiving the complete encoded instance.
- padded- Alternate format selection. Packed format when false.
 
 - 
getBytespublic int getBytes() Description copied from class:PathSegmentObtain the number of bytes needed to encode this segment instance in packed format.- Specified by:
- getBytesin interface- SymbolSeg
- Specified by:
- getBytesin class- PathSegment
- Returns:
- Number of bytes, assuming put() will be called with padded false.
 
 - 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- PathSegment
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
compareTopublic int compareTo(PathSegment o) - Specified by:
- compareToin interface- java.lang.Comparable<PathSegment>
- Overrides:
- compareToin class- PathSegment
 
 - 
simpleStringpublic java.lang.String simpleString() Description copied from class:PathSegmentSupply s simple descriptive name usable when browsing a hierarchy. A simple type name for elementary types, a non-detailed description for complex types.- Specified by:
- simpleStringin class- PathSegment
- Returns:
 
 - 
getTokenspublic java.util.List<java.lang.String> getTokens() - Specified by:
- getTokensin class- PathSegment
 
 
- 
 
-