|
||||||||||
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.RFldTibrvIPAddr
Class to represent a TibrvIPAddr field.
TibrvIPAddr
,
Serialized FormField Summary | |
protected com.tibco.tibrv.TibrvIPAddr |
dataObj_
Data. |
protected static java.lang.String |
XML_TAG
XML tag for this element type. |
Fields inherited from class com.codestreet.messageforge.RFld |
desc_, fieldId_, locked_, name_, optional_, propertyName_, tags_, transient_, valSet_ |
Constructor Summary | |
RFldTibrvIPAddr()
Default constructor. |
|
RFldTibrvIPAddr(java.lang.String name,
int fieldId)
Constructor. |
|
RFldTibrvIPAddr(java.lang.String name,
int fieldId,
java.lang.String desc)
Constructor. |
|
RFldTibrvIPAddr(java.lang.String name,
int fieldId,
java.lang.String desc,
byte[] value)
Constructor. |
|
RFldTibrvIPAddr(java.lang.String name,
int fieldId,
java.lang.String desc,
byte b1,
byte b2,
byte b3,
byte b4)
Constructor. |
|
RFldTibrvIPAddr(java.lang.String name,
int fieldId,
java.lang.String desc,
java.net.InetAddress value)
Constructor. |
|
RFldTibrvIPAddr(java.lang.String name,
int fieldId,
java.lang.String desc,
int value)
Constructor. |
Method Summary | |
boolean |
equals(java.lang.Object anObject)
Check if another field is equal to this field. |
java.lang.String |
getTag()
Get the XML tag for this field type. |
RFldType |
getType()
Get field type. |
com.tibco.tibrv.TibrvIPAddr |
getValue()
Get data. |
java.util.Hashtable |
getValueAsHashtable()
Get the field value as a java.util.Hashtable. |
int |
getValueAsInt()
Get the field value as an int. |
java.lang.Object |
getValueAsObject()
Get the field value as an Object. |
java.lang.String |
getValueAsString()
Get the int field value as a String. |
int |
hashCode()
Returns the hash code value for the field. |
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.lang.Object newData)
Set data. |
RFld |
set(com.tibco.tibrv.TibrvIPAddr 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(com.tibco.tibrv.TibrvIPAddr 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, 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 static transient java.lang.String XML_TAG
protected com.tibco.tibrv.TibrvIPAddr dataObj_
Constructor Detail |
public RFldTibrvIPAddr()
public RFldTibrvIPAddr(java.lang.String name, int fieldId)
name
- Field name.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.public RFldTibrvIPAddr(java.lang.String name, int fieldId, java.lang.String desc)
name
- Field name.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.public RFldTibrvIPAddr(java.lang.String name, int fieldId, java.lang.String desc, byte[] value) throws FieldValidationException
name
- Field name.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.value
- Create an IP address from an array of 4 bytes. For aaa.bbb.ccc.ddd, let bytes[0]
be the high byte aaa, and bytes[3] be the low byte ddd.public RFldTibrvIPAddr(java.lang.String name, int fieldId, java.lang.String desc, java.net.InetAddress value) throws FieldValidationException
name
- Field name.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.value
- Value. No copy is made - be careful when modifying the
data.public RFldTibrvIPAddr(java.lang.String name, int fieldId, java.lang.String desc, int value) throws FieldValidationException
name
- Field name.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.value
- Value. No copy is made - be careful when modifying the
data.public RFldTibrvIPAddr(java.lang.String name, int fieldId, java.lang.String desc, byte b1, byte b2, byte b3, byte b4) throws FieldValidationException
name
- Field name.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.b1
- High byte.b2
- Byte 2.b3
- Byte 3.b4
- Low byte.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 int hashCode()
hashCode
in class RFld
public void reset() throws FieldValidationException
reset
in class RFld
FieldValidationException
RFld.isValSet()
public RFld set(java.lang.Object newData) throws FieldValidationException
set
in interface RFldInterface
set
in class RFld
newData
- New data.
FieldValidationException
public RFld set(byte[] newData) throws FieldValidationException
newData
- New data.
FieldValidationException
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 RFld set(com.tibco.tibrv.TibrvIPAddr newData) throws FieldValidationException
newData
- New data.
FieldValidationException
public void validate() throws FieldValidationException
validate
in class RFld
FieldValidationException
public void validate(com.tibco.tibrv.TibrvIPAddr newData) throws FieldValidationException
newData
- New value.
FieldValidationException
public com.tibco.tibrv.TibrvIPAddr getValue()
public java.lang.Object getValueAsObject()
public java.lang.String getValueAsString()
getValueAsString
in class RFld
getValueAsInt()
public int getValueAsInt()
public java.util.Hashtable getValueAsHashtable() throws FieldValidationException
FieldValidationException
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |