|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmicrosoft.exchange.webservices.data.misc.MapiTypeConverter
public class MapiTypeConverter
Utility class to convert between MAPI Property type values and strings.
| Constructor Summary | |
|---|---|
MapiTypeConverter()
|
|
| Method Summary | |
|---|---|
static Object |
changeType(MapiPropertyType mapiType,
Object value)
Change value to a value of compatible type. |
static String |
convertToString(MapiPropertyType mapiPropType,
Object value)
Converts a value to a string. |
static List<Object> |
convertToValue(MapiPropertyType mapiPropType,
Iterator<String> strings)
Converts the string list to array. |
static Object |
convertToValue(MapiPropertyType mapiPropType,
String stringValue)
Converts a string to value consistent with MAPI type. |
static Map<MapiPropertyType,MapiTypeConverterMapEntry> |
getMapiTypeConverterMap()
Gets the MAPI type converter map. |
static boolean |
isArrayType(MapiPropertyType mapiType)
Determines whether MapiPropertyType is an array type. |
protected static Object |
parseMapiIntegerValue(String s)
Converts a MAPI Integer value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapiTypeConverter()
| Method Detail |
|---|
public static List<Object> convertToValue(MapiPropertyType mapiPropType,
Iterator<String> strings)
throws Exception
mapiPropType - Type of the MAPI property.strings - the strings
Exception - the exception
public static Object convertToValue(MapiPropertyType mapiPropType,
String stringValue)
throws ServiceXmlDeserializationException,
FormatException
mapiPropType - the mapi prop typestringValue - the string value
ServiceXmlDeserializationException - the service xml deserialization exception
FormatException - the format exception
public static String convertToString(MapiPropertyType mapiPropType,
Object value)
mapiPropType - the mapi prop typevalue - the value
public static Object changeType(MapiPropertyType mapiType,
Object value)
throws Exception
mapiType - the mapi typevalue - the value
Exception - the exceptionprotected static Object parseMapiIntegerValue(String s)
s - The string value.
public static boolean isArrayType(MapiPropertyType mapiType)
mapiType - the mapi type
public static Map<MapiPropertyType,MapiTypeConverterMapEntry> getMapiTypeConverterMap()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||