davmail.exchange.ews
Class EWSMethod.Item

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,String>
          extended by davmail.exchange.ews.EWSMethod.Item
All Implemented Interfaces:
Serializable, Cloneable, Map<String,String>
Enclosing class:
EWSMethod

public static class EWSMethod.Item
extends HashMap<String,String>

Item

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Field Summary
protected  List<FileAttachment> attachments
           
protected  List<EWSMethod.Attendee> attendees
           
protected  List<String> fieldNames
           
protected  List<FieldUpdate> fieldUpdates
           
protected  byte[] mimeContent
           
protected  List<EWSMethod.Occurrence> occurrences
           
protected  ItemId referenceItemId
           
 String type
          Item type.
 
Constructor Summary
EWSMethod.Item()
           
 
Method Summary
 void addAttendee(EWSMethod.Attendee attendee)
          Add attendee.
 void addOccurrence(EWSMethod.Occurrence occurrence)
          Add occurrence.
 FileAttachment getAttachmentByName(String attachmentName)
          Get file attachment by file name
 List<EWSMethod.Attendee> getAttendees()
          Get all attendees.
 boolean getBoolean(String key)
          Get property value as boolean
 int getInt(String key)
          Get property value as int
 long getLong(String key)
          Get property value as long
 List<EWSMethod.Occurrence> getOccurrences()
          Get occurences.
 String put(String key, String value)
           
 void setFieldUpdates(List<FieldUpdate> fieldUpdates)
          Field updates.
 String toString()
           
 void write(Writer writer)
          Write XML content to writer.
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

type

public String type
Item type.


mimeContent

protected byte[] mimeContent

fieldUpdates

protected List<FieldUpdate> fieldUpdates

attachments

protected List<FileAttachment> attachments

attendees

protected List<EWSMethod.Attendee> attendees

fieldNames

protected final List<String> fieldNames

occurrences

protected List<EWSMethod.Occurrence> occurrences

referenceItemId

protected ItemId referenceItemId
Constructor Detail

EWSMethod.Item

public EWSMethod.Item()
Method Detail

toString

public String toString()
Overrides:
toString in class AbstractMap<String,String>

put

public String put(String key,
                  String value)
Specified by:
put in interface Map<String,String>
Overrides:
put in class HashMap<String,String>

write

public void write(Writer writer)
           throws IOException
Write XML content to writer.

Parameters:
writer - writer
Throws:
IOException - on error

setFieldUpdates

public void setFieldUpdates(List<FieldUpdate> fieldUpdates)
Field updates.

Parameters:
fieldUpdates - field updates

getInt

public int getInt(String key)
Get property value as int

Parameters:
key - property response name
Returns:
property value

getLong

public long getLong(String key)
Get property value as long

Parameters:
key - property response name
Returns:
property value

getBoolean

public boolean getBoolean(String key)
Get property value as boolean

Parameters:
key - property response name
Returns:
property value

getAttachmentByName

public FileAttachment getAttachmentByName(String attachmentName)
Get file attachment by file name

Parameters:
attachmentName - attachment name
Returns:
attachment

getAttendees

public List<EWSMethod.Attendee> getAttendees()
Get all attendees.

Returns:
all attendees

addAttendee

public void addAttendee(EWSMethod.Attendee attendee)
Add attendee.

Parameters:
attendee - attendee object

addOccurrence

public void addOccurrence(EWSMethod.Occurrence occurrence)
Add occurrence.

Parameters:
occurrence - event occurence

getOccurrences

public List<EWSMethod.Occurrence> getOccurrences()
Get occurences.

Returns:
event occurences


Copyright © 2001-2013 MickaĆ«l Guessant. All Rights Reserved.