public class NameValueObject
extends java.lang.Object
implements java.io.Serializable
This class represents a data attribute with a name, a value, and an encryption flag.
NameValueObject is typically used to store protocol-type information.
The type of an attribute can be one of the following:
When the encryption flag is set, the attribute value will be encrypted while stored in a persistent media (database).
Modifier and Type | Field and Description |
---|---|
static short | TYPE_BIG_DECIMAL
Used to indicate that the attribute value is a BigDecimal.
|
static short | TYPE_BINARY
Used to indicate that the attribute value is binary (StringBuffer).
|
static short | TYPE_BOOLEAN
Used to indicate that the attribute value is a Boolean.
|
static short | TYPE_INTEGER
Used to indicate that the attribute value is an Integer.
|
static short | TYPE_LONG
Used to indicate that the attribute value is a Long.
|
static short | TYPE_STRING
Used to indicate that the attribute value is a String.
|
Constructor and Description |
---|
NameValueObject()
This method is the constructor of the name value container.
|
Modifier and Type | Method and Description |
---|---|
short | getType()
This method gets the type of the object.
|
java.io.Serializable | getValue()
This method gets the object value.
|
boolean | isEncryptionRequired()
This method checks if the value needs to be encrypted.
|
void | setEncryptionRequired(boolean encryptionRequiredLocal)
This method sets the encryption flag on the name-value pair.
|
void | setType(short typeLocal)
This method sets the type of the name-value pair.
|
void | setValue(java.io.Serializable valueLocal)
This method sets the value of the object.
|
public static final short TYPE_BOOLEAN
public static final short TYPE_INTEGER
public static final short TYPE_LONG
public static final short TYPE_BIG_DECIMAL
public static final short TYPE_STRING
public static final short TYPE_BINARY
public NameValueObject()
This method is the constructor of the name value container.
public void setEncryptionRequired(boolean encryptionRequiredLocal)
This method sets the encryption flag on the name-value pair.
public boolean isEncryptionRequired()
This method checks if the value needs to be encrypted.
public void setType(short typeLocal)
This method sets the type of the name-value pair.
public short getType()
This method gets the type of the object.
Possible values are:
public void setValue(java.io.Serializable valueLocal)
This method sets the value of the object.
Possible values are:
public java.io.Serializable getValue()
This method gets the object value.