|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.codestreet.messageforge.RFld com.codestreet.messageforge.RFldTibrvMsg
Class to represent a TibrvMsg field.
TibrvMsg
,
Serialized FormField Summary | |
protected com.tibco.tibrv.TibrvMsg |
dataObj_
Data. |
Fields inherited from class com.codestreet.messageforge.RFld |
desc_, fieldId_, locked_, name_, optional_, propertyName_, tags_, transient_, valSet_ |
Constructor Summary | |
RFldTibrvMsg()
Default constructor. |
|
RFldTibrvMsg(java.lang.String name,
int fieldId)
Constructor. |
|
RFldTibrvMsg(java.lang.String name,
int fieldId,
java.lang.String desc)
Constructor. |
Method Summary | |
boolean |
equals(java.lang.Object anObject)
Check if another field is equal to this field. |
static boolean |
equals(com.tibco.tibrv.TibrvMsg first,
com.tibco.tibrv.TibrvMsg second)
Recursive method to compare two TibrvMsg. |
java.lang.String |
getTag()
Get the XML tag for this field type. |
RFldType |
getType()
Get field type. |
static RFldType |
getType(java.lang.String xmlTag)
Get the RFldType object corresponding to the specified XML field tag. |
com.tibco.tibrv.TibrvMsg |
getValue()
Get data. |
java.util.Hashtable |
getValueAsHashtable()
Get the field value as a java.util.Hashtable. |
protected java.util.Hashtable |
getValueAsHashtable(com.tibco.tibrv.TibrvMsg rvMsg)
Get the value of a TibrvMsg as a java.util.Hashtable. |
java.lang.Object |
getValueAsObject()
Get the field value as an object. |
java.lang.Object |
getValueAsObject(java.lang.String name,
java.lang.String separator)
Get the value of a nested field as an object. |
java.lang.String |
getValueAsString()
Get the field value as a string. |
int |
hashCode()
Returns the hash code value for the field. |
void |
marshal(java.io.Writer writer,
int indentLevel,
java.lang.String indent,
boolean newLines,
boolean expandEmptyElements)
Write the field as XML to target writer. |
void |
reset()
Reset the field value. |
RFld |
set(byte[] newData)
Set data. |
RFld |
set(org.jdom.Element elem)
Set the field value from a JDOM element. |
RFld |
set(java.util.Hashtable newData)
Set data. |
static void |
set(java.util.Hashtable source,
com.tibco.tibrv.TibrvMsg target)
Set data. |
RFld |
set(java.lang.Object newData)
Set data. |
RFld |
set(com.tibco.tibrv.TibrvMsg newData)
Set data. |
static void |
setTag(java.lang.String tag)
Set the XML tag for this field type. |
void |
validate()
Validate against constraints. |
void |
validate(java.util.Hashtable newData)
Check if a new value will satifsy constraints. |
void |
validate(com.tibco.tibrv.TibrvMsg newData)
Check if a new value will satifsy constraints. |
Methods inherited from class com.codestreet.messageforge.RFld |
addConstraint, buildMinMaxConstraintKey, getConstraint, getConstraintCount, getDesc, getId, getName, getOptional, getPropertyName, getTags, getTransient, isConstrained, isLocked, isProperty, isValSet, marshal, setId, setLocked, setName, setOptional, setPropertyName, setTags, setTransient, setXmlAttrNames, setXmlTags |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected com.tibco.tibrv.TibrvMsg dataObj_
Constructor Detail |
public RFldTibrvMsg()
public RFldTibrvMsg(java.lang.String name, int fieldId)
name
- Field name. Field names must follow the TibrvMsg
field naming conventions.fieldId
- Field id. Field ids must be either 0
to indicate that there is no id on the field, or greater. In addition,
field ids must be unique within a messages - no two fields are allowed
to have the same field id.TibrvMsg
public RFldTibrvMsg(java.lang.String name, int fieldId, java.lang.String desc)
name
- Field name. Field names must follow the TibrvMsg
field naming conventions.fieldId
- Field id. Field ids must be either 0
to indicate that there is no id on the field, or greater. In addition,
field ids must be unique within a messages - no two fields are allowed
to have the same field id.desc
- Field description.TibrvMsg
Method Detail |
public final RFldType getType()
getType
in interface RFldInterface
getType
in class RFld
RFldType
public boolean equals(java.lang.Object anObject)
equals
in class RFld
anObject
- Another field.
public static boolean equals(com.tibco.tibrv.TibrvMsg first, com.tibco.tibrv.TibrvMsg second)
first
- First TibrvMsg.second
- Second TibrvMsg.
public int hashCode()
hashCode
in class RFld
public void reset() throws FieldValidationException
reset
in class RFld
FieldValidationException
RFld.isValSet()
public RFld set(byte[] newData) throws FieldValidationException
newData
- New data.
FieldValidationException
public RFld set(java.lang.Object newData) throws FieldValidationException
set
in interface RFldInterface
set
in class RFld
newData
- New data.
FieldValidationException
public RFld set(com.tibco.tibrv.TibrvMsg newData) throws FieldValidationException
newData
- New data.
FieldValidationException
public RFld set(java.util.Hashtable newData) throws FieldValidationException
newData
- New data.
FieldValidationException
public static void set(java.util.Hashtable source, com.tibco.tibrv.TibrvMsg target) throws ProtocolException
source
- Source java.util.Hashtable.target
- Target com.tibco.tibrv.TibrvMsg.
ProtocolException
public final RFld set(org.jdom.Element elem) throws FieldValidationException
set
in interface RFldInterface
set
in class RFld
elem
- Field value as a JDOM element.
FieldValidationException
public void validate() throws FieldValidationException
validate
in class RFld
FieldValidationException
public void validate(com.tibco.tibrv.TibrvMsg newData) throws FieldValidationException
newData
- New value.
FieldValidationException
public void validate(java.util.Hashtable newData) throws FieldValidationException
newData
- New value.
FieldValidationException
public com.tibco.tibrv.TibrvMsg getValue()
public java.lang.Object getValueAsObject()
public java.lang.Object getValueAsObject(java.lang.String name, java.lang.String separator)
name
- Field name.separator
- Field name separator.
public java.lang.String getValueAsString()
getValueAsString
in class RFld
public java.util.Hashtable getValueAsHashtable() throws FieldValidationException
FieldValidationException
protected java.util.Hashtable getValueAsHashtable(com.tibco.tibrv.TibrvMsg rvMsg) throws FieldValidationException
FieldValidationException
public void marshal(java.io.Writer writer, int indentLevel, java.lang.String indent, boolean newLines, boolean expandEmptyElements) throws ConverterException
marshal
in interface RFldInterface
marshal
in class RFld
writer
- Output target.indent
- Indentation.newLines
- Newlines are inserted after each element if true.expandEmptyElements
- Empty elements - elements with no content - are expanded if true.
ConverterException
public final java.lang.String getTag()
getTag
in class RFld
public static void setTag(java.lang.String tag)
tag
- New XML tag for this field type.public static final RFldType getType(java.lang.String xmlTag)
xmlTag
- XML tag of field.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |