org.ipdr.xdr
Class IPDRStreamElement

java.lang.Object
  extended by org.ipdr.xdr.IPDRStreamElement

public final class IPDRStreamElement
extends java.lang.Object

This class defines three stream elements : Descriptor, IPDRRecord and Document End.


Field Summary
protected  RecordDescriptor desc_
          To store the RecordDescriptor.
protected  int discriminator_
          To store the value of discriminator.
protected  IPDRDocEnd docEnd_
          To store the IPDRDocEnd.
protected  IPDRRecord rec_
          To store the IPDRRecord.
protected  boolean uninitialized_
          This flag is used to ensure that XDR reading and writing are asynchronous.
 
Constructor Summary
IPDRStreamElement()
          Default Constructor.
 
Method Summary
 RecordDescriptor desc()
          Method to get the value of Record Descriptor.
 void desc(RecordDescriptor value)
          Method to set the value of Record Descriptor.
 int discriminator()
          Method to get the value of Discriminator.
 IPDRDocEnd docEnd()
          Method used to get the IPDR DocEnd
 void docEnd(IPDRDocEnd value)
          Method to set the value of IPDRDocEnd.
 IPDRRecord rec()
          Method used for to get the IPDR Record.
 void rec(IPDRRecord value)
          Method to set the value of IPDRRecord
protected  void verifydesc(int discriminator)
          Method called from desc() method to ensure that discriminator has value 1 while writing Record Descriptor.
protected  void verifydocEnd(int discriminator)
          Method called from docEnd() method to ensure that discriminator has value 3 while writing IPDR DocEnd.
protected  void verifyrec(int discriminator)
          Method called from rec() method to ensure that discriminator has value 2 while writing IPDR Record.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

desc_

protected RecordDescriptor desc_
To store the RecordDescriptor.


rec_

protected IPDRRecord rec_
To store the IPDRRecord.


docEnd_

protected IPDRDocEnd docEnd_
To store the IPDRDocEnd.


discriminator_

protected int discriminator_
To store the value of discriminator.


uninitialized_

protected boolean uninitialized_
This flag is used to ensure that XDR reading and writing are asynchronous.

Constructor Detail

IPDRStreamElement

public IPDRStreamElement()
Default Constructor.

Method Detail

discriminator

public int discriminator()
Method to get the value of Discriminator.

Returns:
The Discriminator

desc

public RecordDescriptor desc()
Method to get the value of Record Descriptor.

Returns:
The Record Descriptor

desc

public void desc(RecordDescriptor value)
Method to set the value of Record Descriptor.

Parameters:
value - The Record Descriptor

verifydesc

protected void verifydesc(int discriminator)
Method called from desc() method to ensure that discriminator has value 1 while writing Record Descriptor.

Parameters:
discriminator - Discriminator value

rec

public IPDRRecord rec()
Method used for to get the IPDR Record.

Returns:
The IPDR Record

rec

public void rec(IPDRRecord value)
Method to set the value of IPDRRecord

Parameters:
value - The IPDR Record

verifyrec

protected void verifyrec(int discriminator)
Method called from rec() method to ensure that discriminator has value 2 while writing IPDR Record.

Parameters:
discriminator - Discriminator value

docEnd

public IPDRDocEnd docEnd()
Method used to get the IPDR DocEnd

Returns:
The IPDR DocEnd

docEnd

public void docEnd(IPDRDocEnd value)
Method to set the value of IPDRDocEnd.

Parameters:
value - The IPDR DocEnd

verifydocEnd

protected void verifydocEnd(int discriminator)
Method called from docEnd() method to ensure that discriminator has value 3 while writing IPDR DocEnd.

Parameters:
discriminator - Discriminator value