org.jsesoft.jse.exchange
Class ControlData

java.lang.Object
  |
  +--org.jsesoft.jse.Root
        |
        +--org.jsesoft.jse.exchange.ControlData
All Implemented Interfaces:
GenericInterface, java.io.Serializable

public class ControlData
extends Root
implements java.io.Serializable, GenericInterface

Generated: Provides byte buffer conversion for C++ class ControlData.


JSE C++: Generated at Mon Mar 31 08:05:44 2003 using XSLT stylesheet exchange_byte.xsl and source exchange.i v3.01.023 with processor Apache Software Foundation at XSLT version 1
DO NOT TOUCH! All changes get lost next time this class is generated.

Version:
Mon Mar 31 08:05:44 2003
Author:
JSESoft
See Also:
Serialized Form

Field Summary
protected  java.nio.ByteBuffer buffer
           
 
Fields inherited from class org.jsesoft.jse.Root
logger, messages, resources
 
Constructor Summary
ControlData()
          Constructs an empty instance with local endian.
ControlData(java.nio.ByteBuffer source)
          Constructs an instance from byte buffer.
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Adds a property change event listener.
 void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
          Adds a vetoable change event listener.
 void cleanPropertyChangeListenerList()
          Cleans the property change event listener list.
 void cleanVetoableChangeListenerList()
          Cleans the vetoable change event listener list.
 void connectionFromBytes(java.nio.ByteBuffer __buffer__)
          Converts local variable connection from a byte buffer.
 java.nio.ByteBuffer connectionToBytes(java.nio.ByteBuffer __buffer__)
          Converts connection to byte buffer
 void descriptionFromBytes(java.nio.ByteBuffer __buffer__)
          Converts local variable description from a byte buffer.
 java.nio.ByteBuffer descriptionToBytes(java.nio.ByteBuffer __buffer__)
          Converts description to byte buffer
 void exchangeFromBytes(java.nio.ByteBuffer __buffer__)
          Converts local variable exchange from a byte buffer.
 java.nio.ByteBuffer exchangeToBytes(java.nio.ByteBuffer __buffer__)
          Converts exchange to byte buffer
 void finalize()
           
 void firePropertyChangeEvent(java.beans.PropertyChangeEvent event)
          Fires property change events.
 void fireVetoableChangeEvent(java.beans.PropertyChangeEvent event)
          Fires vetoable change events.
 void fromBytes()
          Converts local variables from the local byte buffer.
 void fromBytes(java.nio.ByteBuffer buffer)
          Converts local variables from a byte buffer.
 void fromBytes(java.nio.ByteBuffer buffer, boolean refresh)
          Converts local variables from a byte buffer.
 java.nio.ByteBuffer getByteBuffer()
          Returns the ByteBuffer used.
 int getByteSize()
          Returns size in bytes.
 int getConnection()
          Returns value of property connection.
 java.lang.String getDescription()
          Returns value of property description.
 int getExchange()
          Returns value of property exchange.
 int getRequest()
          Returns value of property request.
 int getResubmission()
          Returns value of property resubmission.
 int getResubmit()
          Returns value of property resubmit.
 int getSession()
          Returns value of property session.
 java.lang.String getVersion()
          Returns value of property version.
 boolean hasChangeListeners()
          Indicates whether or not property events should be fired.
 boolean hasVetoListeners()
          Indicates whether or not vetoable change events should be fired.
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          Removes a property change event listener.
 void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
          Removes a vetoable change event listener.
 void requestFromBytes(java.nio.ByteBuffer __buffer__)
          Converts local variable request from a byte buffer.
 java.nio.ByteBuffer requestToBytes(java.nio.ByteBuffer __buffer__)
          Converts request to byte buffer
 void resubmissionFromBytes(java.nio.ByteBuffer __buffer__)
          Converts local variable resubmission from a byte buffer.
 java.nio.ByteBuffer resubmissionToBytes(java.nio.ByteBuffer __buffer__)
          Converts resubmission to byte buffer
 void resubmitFromBytes(java.nio.ByteBuffer __buffer__)
          Converts local variable resubmit from a byte buffer.
 java.nio.ByteBuffer resubmitToBytes(java.nio.ByteBuffer __buffer__)
          Converts resubmit to byte buffer
 void sessionFromBytes(java.nio.ByteBuffer __buffer__)
          Converts local variable session from a byte buffer.
 java.nio.ByteBuffer sessionToBytes(java.nio.ByteBuffer __buffer__)
          Converts session to byte buffer
 void setBuffer(java.nio.ByteBuffer buffer)
          Set the local byte buffer.
 void setBuffer(java.nio.ByteBuffer buffer, boolean refresh)
          Set the local byte buffer.
 void setConnection(int value)
          Specifies the new value of the property connection.
 void setDescription(java.lang.String value)
          Specifies the new value of the property description.
 void setExchange(int value)
          Specifies the new value of the property exchange.
 void setRequest(int value)
          Specifies the new value of the property request.
 void setResubmission(int value)
          Specifies the new value of the property resubmission.
 void setResubmit(int value)
          Specifies the new value of the property resubmit.
 void setSession(int value)
          Specifies the new value of the property session.
 void setVersion(java.lang.String value)
          Specifies the new value of the property version.
 java.nio.ByteBuffer toBytes()
          Converts instance to local byte buffer.
 java.nio.ByteBuffer toBytes(boolean direct)
          Converts instance to local byte buffer.
 java.nio.ByteBuffer toBytes(java.nio.ByteBuffer buffer)
          Converts instance to specified byte buffer.
 void versionFromBytes(java.nio.ByteBuffer __buffer__)
          Converts local variable version from a byte buffer.
 java.nio.ByteBuffer versionToBytes(java.nio.ByteBuffer __buffer__)
          Converts version to byte buffer
 
Methods inherited from class org.jsesoft.jse.Root
decrementNumber, getResourceMessage, getResourceMessage, getResourceObject, getResourceString, incrementNumber, intFromByteArray, intToByteArray, longFromByteArray, longToByteArray, setMessageResourceBundle, setPackageResourceBundle, shortFromByteArray, shortToByteArray
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

protected transient java.nio.ByteBuffer buffer
Constructor Detail

ControlData

public ControlData(java.nio.ByteBuffer source)
Constructs an instance from byte buffer.

Parameters:
source - the byte buffer

ControlData

public ControlData()
Constructs an empty instance with local endian.

Method Detail

finalize

public void finalize()
              throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
java.lang.Throwable

getByteSize

public final int getByteSize()
Returns size in bytes.

Returns:
the size of the object as byte buffer

getByteBuffer

public java.nio.ByteBuffer getByteBuffer()
Returns the ByteBuffer used.

Returns:
the ByteBuffer used.

fromBytes

public final void fromBytes()
Converts local variables from the local byte buffer.

Specified by:
fromBytes in interface GenericInterface
See Also:
GenericInterface.toBytes()

fromBytes

public final void fromBytes(java.nio.ByteBuffer buffer)
Converts local variables from a byte buffer. The local byte buffer is refreshed.

Specified by:
fromBytes in interface GenericInterface
Parameters:
buffer - the byte buffer containing all values
See Also:
toBytes()

fromBytes

public final void fromBytes(java.nio.ByteBuffer buffer,
                            boolean refresh)
Converts local variables from a byte buffer.

Specified by:
fromBytes in interface GenericInterface
Parameters:
buffer - the byte buffer containing all values If refresh is false, this does not affect the local byte buffer (until the next call of toBytes()).
refresh - whether to refresh the local byte buffer
See Also:
toBytes()

connectionFromBytes

public final void connectionFromBytes(java.nio.ByteBuffer __buffer__)
Converts local variable connection from a byte buffer.

See Also:
toBytes()

exchangeFromBytes

public final void exchangeFromBytes(java.nio.ByteBuffer __buffer__)
Converts local variable exchange from a byte buffer.

See Also:
toBytes()

descriptionFromBytes

public final void descriptionFromBytes(java.nio.ByteBuffer __buffer__)
Converts local variable description from a byte buffer.

See Also:
toBytes()

requestFromBytes

public final void requestFromBytes(java.nio.ByteBuffer __buffer__)
Converts local variable request from a byte buffer.

See Also:
toBytes()

resubmitFromBytes

public final void resubmitFromBytes(java.nio.ByteBuffer __buffer__)
Converts local variable resubmit from a byte buffer.

See Also:
toBytes()

resubmissionFromBytes

public final void resubmissionFromBytes(java.nio.ByteBuffer __buffer__)
Converts local variable resubmission from a byte buffer.

See Also:
toBytes()

versionFromBytes

public final void versionFromBytes(java.nio.ByteBuffer __buffer__)
Converts local variable version from a byte buffer.

See Also:
toBytes()

sessionFromBytes

public final void sessionFromBytes(java.nio.ByteBuffer __buffer__)
Converts local variable session from a byte buffer.

See Also:
toBytes()

toBytes

public final java.nio.ByteBuffer toBytes()
Converts instance to local byte buffer.
This function converts all members to the local byte buffer. Local buffer is created as direct buffer, if necessary.

Specified by:
toBytes in interface GenericInterface
Returns:
the byte buffer

toBytes

public final java.nio.ByteBuffer toBytes(boolean direct)
Converts instance to local byte buffer.
This function converts all members to the local byte buffer. Local buffer is created, if necessary. It is created as direct buffer, if direct is true. The buffer is cleared before filled.

Specified by:
toBytes in interface GenericInterface
Parameters:
direct - whether to create a direct buffer
Returns:
the byte buffer

toBytes

public final java.nio.ByteBuffer toBytes(java.nio.ByteBuffer buffer)
Converts instance to specified byte buffer.
This function converts all members to the given byte buffer.

Parameters:
buffer - the byte buffer
Returns:
the byte buffer

connectionToBytes

public final java.nio.ByteBuffer connectionToBytes(java.nio.ByteBuffer __buffer__)
Converts connection to byte buffer

Parameters:
__buffer__ - the byte buffer
Returns:
the byte buffer

exchangeToBytes

public final java.nio.ByteBuffer exchangeToBytes(java.nio.ByteBuffer __buffer__)
Converts exchange to byte buffer

Parameters:
__buffer__ - the byte buffer
Returns:
the byte buffer

descriptionToBytes

public final java.nio.ByteBuffer descriptionToBytes(java.nio.ByteBuffer __buffer__)
Converts description to byte buffer

Parameters:
__buffer__ - the byte buffer
Returns:
the byte buffer

requestToBytes

public final java.nio.ByteBuffer requestToBytes(java.nio.ByteBuffer __buffer__)
Converts request to byte buffer

Parameters:
__buffer__ - the byte buffer
Returns:
the byte buffer

resubmitToBytes

public final java.nio.ByteBuffer resubmitToBytes(java.nio.ByteBuffer __buffer__)
Converts resubmit to byte buffer

Parameters:
__buffer__ - the byte buffer
Returns:
the byte buffer

resubmissionToBytes

public final java.nio.ByteBuffer resubmissionToBytes(java.nio.ByteBuffer __buffer__)
Converts resubmission to byte buffer

Parameters:
__buffer__ - the byte buffer
Returns:
the byte buffer

versionToBytes

public final java.nio.ByteBuffer versionToBytes(java.nio.ByteBuffer __buffer__)
Converts version to byte buffer

Parameters:
__buffer__ - the byte buffer
Returns:
the byte buffer

sessionToBytes

public final java.nio.ByteBuffer sessionToBytes(java.nio.ByteBuffer __buffer__)
Converts session to byte buffer

Parameters:
__buffer__ - the byte buffer
Returns:
the byte buffer

hasVetoListeners

public boolean hasVetoListeners()
Indicates whether or not vetoable change events should be fired.

Returns:
true if vetoable change events should be fired

fireVetoableChangeEvent

public void fireVetoableChangeEvent(java.beans.PropertyChangeEvent event)
                             throws java.beans.PropertyVetoException
Fires vetoable change events.

This procedure fires vetoable change events to all registered listeners.

Parameters:
event - the event to fire
Throws:
java.beans.PropertyVetoException - when some listener vetos the change

addVetoableChangeListener

public void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
Adds a vetoable change event listener.

This procedure includes the specified listener into the list of registered vetoable change listeners (if not already contained).

Parameters:
listener - the listener to add
See Also:
removeVetoableChangeListener(java.beans.VetoableChangeListener)

removeVetoableChangeListener

public void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
Removes a vetoable change event listener.

This procedure excludes the specified listener from the list of registered vetoable change listeners.

Parameters:
listener - the listener to remove
See Also:
addVetoableChangeListener(java.beans.VetoableChangeListener)

cleanVetoableChangeListenerList

public void cleanVetoableChangeListenerList()
Cleans the vetoable change event listener list.

This procedure excludes all listeners from the list of registered vetoable change listeners.

See Also:
addVetoableChangeListener(java.beans.VetoableChangeListener), removeVetoableChangeListener(java.beans.VetoableChangeListener)

hasChangeListeners

public boolean hasChangeListeners()
Indicates whether or not property events should be fired.

Returns:
true if property change events should be fired

firePropertyChangeEvent

public void firePropertyChangeEvent(java.beans.PropertyChangeEvent event)
Fires property change events.

This procedure fires property change events to all registered listeners.

Parameters:
event - the event to fire

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a property change event listener.

This procedure includes the specified listener into the list of registered property change listeners (if not already contained).

Parameters:
listener - the listener to add
See Also:
removePropertyChangeListener(java.beans.PropertyChangeListener)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a property change event listener.

This procedure excludes the specified listener from the list of registered property change listeners.

Parameters:
listener - the listener to remove
See Also:
addPropertyChangeListener(java.beans.PropertyChangeListener)

cleanPropertyChangeListenerList

public void cleanPropertyChangeListenerList()
Cleans the property change event listener list.

This procedure excludes all listeners from the list of registered property change listeners.

See Also:
addPropertyChangeListener(java.beans.PropertyChangeListener), removePropertyChangeListener(java.beans.PropertyChangeListener)

setConnection

public void setConnection(int value)
                   throws java.beans.PropertyVetoException
Specifies the new value of the property connection.

Parameters:
value - the new value
Throws:
java.beans.PropertyVetoException - if change is vetoed
See Also:
getConnection()

getConnection

public int getConnection()
Returns value of property connection.

Returns:
the actual value
See Also:
setConnection(int)

setExchange

public void setExchange(int value)
                 throws java.beans.PropertyVetoException
Specifies the new value of the property exchange.

Parameters:
value - the new value
Throws:
java.beans.PropertyVetoException - if change is vetoed
See Also:
getExchange()

getExchange

public int getExchange()
Returns value of property exchange.

Returns:
the actual value
See Also:
setExchange(int)

setDescription

public void setDescription(java.lang.String value)
                    throws java.beans.PropertyVetoException
Specifies the new value of the property description.

Parameters:
value - the new value
Throws:
java.beans.PropertyVetoException - if change is vetoed
See Also:
getDescription()

getDescription

public java.lang.String getDescription()
Returns value of property description.

Returns:
the actual value
See Also:
setDescription(java.lang.String)

setRequest

public void setRequest(int value)
                throws java.beans.PropertyVetoException
Specifies the new value of the property request.

Parameters:
value - the new value
Throws:
java.beans.PropertyVetoException - if change is vetoed
See Also:
getRequest()

getRequest

public int getRequest()
Returns value of property request.

Returns:
the actual value
See Also:
setRequest(int)

setResubmit

public void setResubmit(int value)
                 throws java.beans.PropertyVetoException
Specifies the new value of the property resubmit.

Parameters:
value - the new value
Throws:
java.beans.PropertyVetoException - if change is vetoed
See Also:
getResubmit()

getResubmit

public int getResubmit()
Returns value of property resubmit.

Returns:
the actual value
See Also:
setResubmit(int)

setResubmission

public void setResubmission(int value)
                     throws java.beans.PropertyVetoException
Specifies the new value of the property resubmission.

Parameters:
value - the new value
Throws:
java.beans.PropertyVetoException - if change is vetoed
See Also:
getResubmission()

getResubmission

public int getResubmission()
Returns value of property resubmission.

Returns:
the actual value
See Also:
setResubmission(int)

setVersion

public void setVersion(java.lang.String value)
                throws java.beans.PropertyVetoException
Specifies the new value of the property version.

Parameters:
value - the new value
Throws:
java.beans.PropertyVetoException - if change is vetoed
See Also:
getVersion()

getVersion

public java.lang.String getVersion()
Returns value of property version.

Returns:
the actual value
See Also:
setVersion(java.lang.String)

setSession

public void setSession(int value)
                throws java.beans.PropertyVetoException
Specifies the new value of the property session.

Parameters:
value - the new value
Throws:
java.beans.PropertyVetoException - if change is vetoed
See Also:
getSession()

getSession

public int getSession()
Returns value of property session.

Returns:
the actual value
See Also:
setSession(int)

setBuffer

public void setBuffer(java.nio.ByteBuffer buffer)
Set the local byte buffer.
If set to null, a byte buffer might be created later on demand. The local variables are refreshed, if the buffer is not null.

Specified by:
setBuffer in interface GenericInterface
See Also:
fromBytes()

setBuffer

public void setBuffer(java.nio.ByteBuffer buffer,
                      boolean refresh)
Set the local byte buffer.
If set to null, a byte buffer will be created on demand. If refresh is false, the local variables are not affected (until the next call of fromBytes()).

Specified by:
setBuffer in interface GenericInterface
Parameters:
refresh - whether to refresh the local variables
See Also:
fromBytes()