org.jnetpcap.packet.structure
Class AnnotatedHeader

java.lang.Object
  extended by org.jnetpcap.packet.structure.AnnotatedHeader

public class AnnotatedHeader
extends java.lang.Object

The Class AnnotatedHeader.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Method Summary
 java.lang.String getDescription()
          Gets the description.
 PcapDLT[] getDlt()
          Gets the dlt.
 AnnotatedField[] getFields()
          Gets the fields.
 java.lang.Class<? extends JHeader> getHeaderClass()
          Gets the header class.
 AnnotatedHeader[] getHeaders()
          Gets the headers.
 int getId()
          Gets the id.
 java.lang.String getName()
          Gets the name.
 java.lang.String getNicname()
          Gets the nicname.
 AnnotatedHeader getParent()
          Gets the parent.
 JProtocol.Suite getSuite()
          Gets the suite.
static AnnotatedHeader inspectJHeaderClass(java.lang.Class<? extends JHeader> c, java.util.List<HeaderDefinitionError> errors)
          Inspect j header class.
 boolean isSubHeader()
          Checks if is sub header.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

inspectJHeaderClass

public static AnnotatedHeader inspectJHeaderClass(java.lang.Class<? extends JHeader> c,
                                                  java.util.List<HeaderDefinitionError> errors)
Inspect j header class.

Parameters:
c - the c
errors - the errors
Returns:
the annotated header

getFields

public AnnotatedField[] getFields()
Gets the fields.

Returns:
the fields

getHeaderClass

public java.lang.Class<? extends JHeader> getHeaderClass()
Gets the header class.

Returns:
the header class

getHeaders

public final AnnotatedHeader[] getHeaders()
Gets the headers.

Returns:
the headers

getId

public int getId()
Gets the id.

Returns:
the id

getName

public java.lang.String getName()
Gets the name.

Returns:
the name

getDlt

public PcapDLT[] getDlt()
Gets the dlt.

Returns:
the dlt

getSuite

public JProtocol.Suite getSuite()
Gets the suite.

Returns:
the suite

getNicname

public final java.lang.String getNicname()
Gets the nicname.

Returns:
the nicname

getParent

public final AnnotatedHeader getParent()
Gets the parent.

Returns:
the parent

isSubHeader

public boolean isSubHeader()
Checks if is sub header.

Returns:
true, if is sub header

getDescription

public java.lang.String getDescription()
Gets the description.

Returns:
the description