|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jsesoft.jse.Root | +--org.jsesoft.jse.exchange.CallbackData
Generated: Provides byte buffer conversion for C++ class CallbackData.
Field Summary | |
protected java.nio.ByteBuffer |
buffer
|
Fields inherited from class org.jsesoft.jse.Root |
logger, messages, resources |
Constructor Summary | |
CallbackData()
Constructs an empty instance with local endian. |
|
CallbackData(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 |
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. |
GenericData |
getRequest()
Returns value of property request. |
GenericData |
getResponse()
Returns value of property response. |
int |
getStream()
Returns value of property stream. |
int |
getTopic()
Returns value of property topic. |
int |
getType()
Returns value of property type. |
int |
getUnused()
Returns value of property unused. |
int |
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 |
responseFromBytes(java.nio.ByteBuffer __buffer__)
Converts local variable response from a byte buffer. |
java.nio.ByteBuffer |
responseToBytes(java.nio.ByteBuffer __buffer__)
Converts response 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 |
setRequest(GenericData value)
Specifies the new value of the property request. |
void |
setResponse(GenericData value)
Specifies the new value of the property response. |
void |
setStream(int value)
Specifies the new value of the property stream. |
void |
setTopic(int value)
Specifies the new value of the property topic. |
void |
setType(int value)
Specifies the new value of the property type. |
void |
setUnused(int value)
Specifies the new value of the property unused. |
void |
setVersion(int value)
Specifies the new value of the property version. |
void |
streamFromBytes(java.nio.ByteBuffer __buffer__)
Converts local variable stream from a byte buffer. |
java.nio.ByteBuffer |
streamToBytes(java.nio.ByteBuffer __buffer__)
Converts stream to byte buffer |
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 |
topicFromBytes(java.nio.ByteBuffer __buffer__)
Converts local variable topic from a byte buffer. |
java.nio.ByteBuffer |
topicToBytes(java.nio.ByteBuffer __buffer__)
Converts topic to byte buffer |
void |
typeFromBytes(java.nio.ByteBuffer __buffer__)
Converts local variable type from a byte buffer. |
java.nio.ByteBuffer |
typeToBytes(java.nio.ByteBuffer __buffer__)
Converts type to byte buffer |
void |
unusedFromBytes(java.nio.ByteBuffer __buffer__)
Converts local variable unused from a byte buffer. |
java.nio.ByteBuffer |
unusedToBytes(java.nio.ByteBuffer __buffer__)
Converts unused to 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 |
protected transient java.nio.ByteBuffer buffer
Constructor Detail |
public CallbackData(java.nio.ByteBuffer source)
source
- the byte bufferpublic CallbackData()
Method Detail |
public void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public final int getByteSize()
public java.nio.ByteBuffer getByteBuffer()
public final void fromBytes()
fromBytes
in interface GenericInterface
GenericInterface.toBytes()
public final void fromBytes(java.nio.ByteBuffer buffer)
fromBytes
in interface GenericInterface
buffer
- the byte buffer containing all valuestoBytes()
public final void fromBytes(java.nio.ByteBuffer buffer, boolean refresh)
fromBytes
in interface GenericInterface
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 buffertoBytes()
public final void responseFromBytes(java.nio.ByteBuffer __buffer__)
toBytes()
public final void streamFromBytes(java.nio.ByteBuffer __buffer__)
toBytes()
public final void unusedFromBytes(java.nio.ByteBuffer __buffer__)
toBytes()
public final void requestFromBytes(java.nio.ByteBuffer __buffer__)
toBytes()
public final void versionFromBytes(java.nio.ByteBuffer __buffer__)
toBytes()
public final void typeFromBytes(java.nio.ByteBuffer __buffer__)
toBytes()
public final void topicFromBytes(java.nio.ByteBuffer __buffer__)
toBytes()
public final java.nio.ByteBuffer toBytes()
toBytes
in interface GenericInterface
public final java.nio.ByteBuffer toBytes(boolean direct)
toBytes
in interface GenericInterface
direct
- whether to create a direct buffer
public final java.nio.ByteBuffer toBytes(java.nio.ByteBuffer buffer)
buffer
- the byte buffer
public final java.nio.ByteBuffer responseToBytes(java.nio.ByteBuffer __buffer__)
__buffer__
- the byte buffer
public final java.nio.ByteBuffer streamToBytes(java.nio.ByteBuffer __buffer__)
__buffer__
- the byte buffer
public final java.nio.ByteBuffer unusedToBytes(java.nio.ByteBuffer __buffer__)
__buffer__
- the byte buffer
public final java.nio.ByteBuffer requestToBytes(java.nio.ByteBuffer __buffer__)
__buffer__
- the byte buffer
public final java.nio.ByteBuffer versionToBytes(java.nio.ByteBuffer __buffer__)
__buffer__
- the byte buffer
public final java.nio.ByteBuffer typeToBytes(java.nio.ByteBuffer __buffer__)
__buffer__
- the byte buffer
public final java.nio.ByteBuffer topicToBytes(java.nio.ByteBuffer __buffer__)
__buffer__
- the byte buffer
public boolean hasVetoListeners()
public void fireVetoableChangeEvent(java.beans.PropertyChangeEvent event) throws java.beans.PropertyVetoException
This procedure fires vetoable change events to all registered listeners.
event
- the event to fire
java.beans.PropertyVetoException
- when some listener vetos the changepublic void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
This procedure includes the specified listener into the list of registered vetoable change listeners (if not already contained).
listener
- the listener to addremoveVetoableChangeListener(java.beans.VetoableChangeListener)
public void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
This procedure excludes the specified listener from the list of registered vetoable change listeners.
listener
- the listener to removeaddVetoableChangeListener(java.beans.VetoableChangeListener)
public void cleanVetoableChangeListenerList()
This procedure excludes all listeners from the list of registered vetoable change listeners.
addVetoableChangeListener(java.beans.VetoableChangeListener)
,
removeVetoableChangeListener(java.beans.VetoableChangeListener)
public boolean hasChangeListeners()
public void firePropertyChangeEvent(java.beans.PropertyChangeEvent event)
This procedure fires property change events to all registered listeners.
event
- the event to firepublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
This procedure includes the specified listener into the list of registered property change listeners (if not already contained).
listener
- the listener to addremovePropertyChangeListener(java.beans.PropertyChangeListener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
This procedure excludes the specified listener from the list of registered property change listeners.
listener
- the listener to removeaddPropertyChangeListener(java.beans.PropertyChangeListener)
public void cleanPropertyChangeListenerList()
This procedure excludes all listeners from the list of registered property change listeners.
addPropertyChangeListener(java.beans.PropertyChangeListener)
,
removePropertyChangeListener(java.beans.PropertyChangeListener)
public void setResponse(GenericData value) throws java.beans.PropertyVetoException
value
- the new value
java.beans.PropertyVetoException
- if change is vetoedgetResponse()
public GenericData getResponse()
setResponse(org.jsesoft.jse.exchange.GenericData)
public void setStream(int value) throws java.beans.PropertyVetoException
value
- the new value
java.beans.PropertyVetoException
- if change is vetoedgetStream()
public int getStream()
setStream(int)
public void setUnused(int value) throws java.beans.PropertyVetoException
value
- the new value
java.beans.PropertyVetoException
- if change is vetoedgetUnused()
public int getUnused()
setUnused(int)
public void setRequest(GenericData value) throws java.beans.PropertyVetoException
value
- the new value
java.beans.PropertyVetoException
- if change is vetoedgetRequest()
public GenericData getRequest()
setRequest(org.jsesoft.jse.exchange.GenericData)
public void setVersion(int value) throws java.beans.PropertyVetoException
value
- the new value
java.beans.PropertyVetoException
- if change is vetoedgetVersion()
public int getVersion()
setVersion(int)
public void setType(int value) throws java.beans.PropertyVetoException
value
- the new value
java.beans.PropertyVetoException
- if change is vetoedgetType()
public int getType()
setType(int)
public void setTopic(int value) throws java.beans.PropertyVetoException
value
- the new value
java.beans.PropertyVetoException
- if change is vetoedgetTopic()
public int getTopic()
setTopic(int)
public void setBuffer(java.nio.ByteBuffer buffer)
setBuffer
in interface GenericInterface
fromBytes()
public void setBuffer(java.nio.ByteBuffer buffer, boolean refresh)
setBuffer
in interface GenericInterface
refresh
- whether to refresh the local variablesfromBytes()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |