|
Compoze Software, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.compoze.exchange.PropertyValue
This class stores the key and value for a property.
| Inner Class Summary | |
class |
PropertyValue.PropertyValueNullException
|
| Constructor Summary | |
PropertyValue(PropertyKey key,
boolean bValue)
Constructor. |
|
PropertyValue(PropertyKey key,
byte[] abyteValue)
Constructor. |
|
PropertyValue(PropertyKey key,
java.util.Date value)
Constructor. |
|
PropertyValue(PropertyKey key,
double dValue)
Constructor. |
|
PropertyValue(PropertyKey key,
int iValue)
Constructor. |
|
PropertyValue(PropertyKey key,
java.lang.Object value)
Constructor. |
|
| Method Summary | |
boolean |
getBooleanValue()
Gets the value of a boolean property. |
byte[] |
getByteArrayValue()
Sets the value of a string property. |
java.util.Date |
getDateValue()
Gets the value of a Date property. |
double |
getDoubleValue()
Gets the value of a double property. |
int |
getIntValue()
Gets the value of an int property. |
long |
getInvalidCode()
Returnes the invalid code from the server. |
PropertyKey |
getKey()
Gets the property key. |
java.lang.String[] |
getStringArrayValue()
Sets the value of a string property. |
java.lang.String |
getStringValue()
Gets the value of a string property. |
java.lang.Object |
getValue()
Gets the value of the property. |
boolean |
isInvalid()
Determines if the value is invalid. |
boolean |
isUpdated()
Determines if the value has been updated. |
void |
setBooleanValue(boolean bValue)
Sets a boolean value and sets the updated flag to true. |
void |
setByteArrayValue(byte[] value)
Sets a byte array value and sets the updated flag to true. |
void |
setDateValue(java.util.Date value)
Sets a Date value and sets the updated flag to true. |
void |
setDoubleValue(double dValue)
Sets a double value and sets the updated flag to true. |
void |
setIntValue(int iValue)
Sets an int value and sets the updated flag to true. |
void |
setStringArrayValue(java.lang.String[] value)
Sets a string array value and sets the updated flag to true. |
void |
setStringValue(java.lang.String sValue)
Sets a string value and sets the updated flag to true. |
void |
setUpdated(boolean bUpdated)
Sets the updated flag (forces a property for an item to be saved to the server the next time it is updated). |
java.lang.String |
toStoreString(java.util.TimeZone tz)
Creates the string representation of the value that is used to send to the server. |
java.lang.String |
toString()
Creates a string representation of the value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PropertyValue(PropertyKey key,
java.lang.Object value)
throws ExchangeException
key - the property keyvalue - the property value
public PropertyValue(PropertyKey key,
int iValue)
throws ExchangeException
key - the property keyiValue - the int value
public PropertyValue(PropertyKey key,
double dValue)
throws ExchangeException
key - the property keydValue - the double value
public PropertyValue(PropertyKey key,
boolean bValue)
throws ExchangeException
key - the property keybValue - the boolean value
public PropertyValue(PropertyKey key,
java.util.Date value)
throws ExchangeException
key - the property keyvalue - the Date value
public PropertyValue(PropertyKey key,
byte[] abyteValue)
throws ExchangeException
key - the property keyabyteValue - the byte array value| Method Detail |
public PropertyKey getKey()
public java.lang.Object getValue()
public void setStringValue(java.lang.String sValue)
true.the - string value
public java.lang.String getStringValue()
throws ExchangeException
ExchangeException - if the value is not a stringpublic void setStringArrayValue(java.lang.String[] value)
true.the - string array value
public java.lang.String[] getStringArrayValue()
throws ExchangeException
ExchangeException - if the value is not a stringpublic void setIntValue(int iValue)
true.iValue - the int value
public int getIntValue()
throws ExchangeException
ExchangeException - if the value is not an intpublic void setDoubleValue(double dValue)
true.dValue - the double value
public double getDoubleValue()
throws ExchangeException
ExchangeException - if the value is not an doublepublic void setBooleanValue(boolean bValue)
true.bValue - the boolean value
public boolean getBooleanValue()
throws ExchangeException
ExchangeException - if the value is not an intpublic void setDateValue(java.util.Date value)
true.value - the date value
public java.util.Date getDateValue()
throws ExchangeException
ExchangeException - if the value is not an datepublic void setByteArrayValue(byte[] value)
true.the - byte array value
public byte[] getByteArrayValue()
throws ExchangeException
ExchangeException - if the value is not a stringpublic boolean isUpdated()
public void setUpdated(boolean bUpdated)
public boolean isInvalid()
null and the specific error that
occurred can be determined with getInvalidCode. It is
possible for a value to be null without an error.true if the value is in error.getInvalidCode()public long getInvalidCode()
null and the specific error that
occurred is a MAPI error value (eg 0x8004010F is MAPI_E_NOT_FOUND).public java.lang.String toStoreString(java.util.TimeZone tz)
public java.lang.String toString()
toString in class java.lang.Objectnull
|
Compoze Software, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||