public class ImportValue
extends java.lang.Object
Constructor and Description |
---|
ImportValue(java.lang.String id)
Creates a new value object for an import item.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getData()
Returns the data value as an object, or null if no value has been assigned.
|
java.lang.String |
getId()
Returns the id or tag of the value.
|
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Get dictionary with value properties.
|
boolean |
isBinary()
Returns true if the data of this item is a byte array (byte[]).
|
boolean |
isDate()
Returns true if the data of this item is a Date object
|
boolean |
isDouble()
Returns true if the data of this item is fouble floating point value (double)
|
boolean |
isInteger()
Returns true if the data of this item is an integer (int)
|
boolean |
isNull()
Returns true if this item has no data.
|
boolean |
isString()
Returns true if the data of this item is a String object
|
void |
setData(byte[] data)
Assigns a byte array as the data value for this item
|
void |
setData(java.util.Date data)
Assigns a Date object as the data value for this item
|
void |
setData(double data)
Assigns a double as the data value for this item
|
void |
setData(int data)
Assigns an int as the data value for this item
|
void |
setData(java.lang.String data)
Assigns a string as the data value for this item
|
void |
setProperty(java.lang.String key,
java.lang.String value)
Set a property for this import value.
|
public ImportValue(java.lang.String id)
id
- The id or tag of the value.public java.lang.String getId()
public java.lang.Object getData()
public void setData(java.lang.String data)
data
- Valuepublic void setData(byte[] data)
data
- Valuepublic void setData(int data)
data
- Valuepublic void setData(double data)
data
- Valuepublic void setData(java.util.Date data)
data
- Valuepublic boolean isNull()
public boolean isString()
public boolean isBinary()
public boolean isInteger()
public boolean isDouble()
public boolean isDate()
public java.util.Map<java.lang.String,java.lang.String> getProperties()
public void setProperty(java.lang.String key, java.lang.String value)
key
- Property namevalue
- Property value
An import value may have properties that are distinct from the properties of its parent item. A typical example is an item that represents an email, in which case the values are the email body plus any attachments of the email. In such a scenario each value that represent an attachment may additionally specify meta data properties such as the file name and file type.