|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tibco.tibrv.TibrvMsgField
raccoon.tibco.tibrv.message.RvField
public class RvField
The TIB/Rendezvous implementation of IField
Field Summary | |
---|---|
static java.lang.String |
NULL_STRING
A string constant indicating a null value |
Fields inherited from class com.tibco.tibrv.TibrvMsgField |
---|
data, id, name, type |
Fields inherited from interface raccoon.api.eai.message.IField |
---|
FIELD_DATA_NOT_NULL, FIELD_NAME_NOT_NULL |
Constructor Summary | |
---|---|
RvField()
Default constructor, required for dynamic instanciation |
|
RvField(IField pField)
Creates a new instance of this object using the given IField instance. |
|
RvField(java.lang.String pFieldName,
java.lang.Object pFieldData)
Creates a new field instance with a name and it's data. |
|
RvField(java.lang.String pFieldName,
java.lang.Object pFieldData,
int pFieldType)
Creates a new field instance with a name and it's data. |
|
RvField(java.lang.String pFieldName,
java.lang.Object pFieldData,
int pFieldType,
int pFieldId)
Creates a new instance of this object and assigns the relevant data. |
|
RvField(com.tibco.tibrv.TibrvMsgField pTibrvMsgField)
Creates a new instance of this object using the given TibrvMsgField instance. |
Method Summary | |
---|---|
java.lang.Object |
getData()
Retrieves the data associated to this field instance |
int |
getId()
Retrieves the id of this field |
java.lang.String |
getName()
Retrieves the name of this field. |
int |
getType()
Returns the type of the object |
void |
setData(java.lang.Object pData)
Defines the data associated to this field instance |
void |
setId(int pId)
Defines the id of this field. |
void |
setName(java.lang.String pFieldName)
Defines the name of this field |
void |
setType(int pType)
Defines the type of the object. |
java.lang.String |
toString()
Generates a string representation for this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NULL_STRING
Constructor Detail |
---|
public RvField()
public RvField(java.lang.String pFieldName, java.lang.Object pFieldData) throws java.lang.IllegalArgumentException
pFieldName
- the name of the fieldpFieldData
- the data of the field
java.lang.IllegalArgumentException
- if pFieldName
is null
java.lang.IllegalArgumentException
- if pFieldData
is null
public RvField(java.lang.String pFieldName, java.lang.Object pFieldData, int pFieldType) throws java.lang.IllegalArgumentException
pFieldName
- the name of the fieldpFieldData
- the data of the fieldpFieldType
- the type of the data attached to this field
java.lang.IllegalArgumentException
- if pFieldName
is null
java.lang.IllegalArgumentException
- if pFieldData
is null
java.lang.IllegalArgumentException
- if pFieldType
is invalid.public RvField(java.lang.String pFieldName, java.lang.Object pFieldData, int pFieldType, int pFieldId) throws java.lang.IllegalArgumentException
pFieldName
- the name of this fieldpFieldData
- the data of this fieldpFieldType
- the type of the data attached to this fieldpFieldId
- the id of this field
java.lang.IllegalArgumentException
- if pFieldName
is null
java.lang.IllegalArgumentException
- if pFieldData
is null
java.lang.IllegalArgumentException
- if pFieldType
is invalid.public RvField(IField pField) throws java.lang.IllegalArgumentException
IField
instance.
This constructor will retrieve only the none null data from the given field.
pField
- the field from which the contents are to be taken.
java.lang.IllegalArgumentException
- if pFieldType
is invalid.public RvField(com.tibco.tibrv.TibrvMsgField pTibrvMsgField)
TibrvMsgField
instance.
pTibrvMsgField
- the field from the data of this instance is to be taken fromMethod Detail |
---|
public void setName(java.lang.String pFieldName) throws java.lang.IllegalArgumentException
setName
in interface IField
pFieldName
- the name of this field
java.lang.IllegalArgumentException
- if pFieldName
is null
public java.lang.String getName()
getName
in interface IField
public void setData(java.lang.Object pData) throws java.lang.IllegalArgumentException
setData
in interface IField
pData
- the payload of this field.
java.lang.IllegalArgumentException
- if pData
is null
public java.lang.Object getData()
getData
in interface IField
public void setId(int pId)
0
setId
in interface IField
pId
- the id of this field, should be unique per message if different from zero.public int getId()
getId
in interface IField
public void setType(int pType) throws java.lang.IllegalArgumentException
setType
in interface IField
pType
- the object type.
java.lang.IllegalArgumentException
- if the type is invalid.public int getType()
getType
in interface IField
public java.lang.String toString()
toString
in class com.tibco.tibrv.TibrvMsgField
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |