public abstract class OpenTracElement
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
int |
id |
| Constructor and Description |
|---|
OpenTracElement() |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
computeBody(byte[] buf,
int offset)
Append this element to a message buffer
|
abstract boolean |
equalsElement(OpenTracElement other)
Test if this OpenTracElement has the same type and value as another OpenTracElement.
|
int |
getId()
Get the element ID for this element.
|
abstract int |
length()
Return the number of bytes needed to encode this element.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
abstract java.lang.String |
valueString()
Get the string representation of the value of this element.
|
public int getId()
public abstract java.lang.String valueString()
public java.lang.String toString()
toString in class java.lang.Objectpublic abstract int computeBody(byte[] buf,
int offset)
buf - byte array to add the element tooffset - starting index to store the elementpublic abstract int length()
public abstract boolean equalsElement(OpenTracElement other)
other - OpenTracElement to compare against this element