microsoft.exchange.webservices.data.misc
Class AbstractFolderIdWrapper

java.lang.Object
  extended by microsoft.exchange.webservices.data.misc.AbstractFolderIdWrapper
Direct Known Subclasses:
FolderIdWrapper

public abstract class AbstractFolderIdWrapper
extends Object

Represents the abstraction of a folder Id.


Constructor Summary
protected AbstractFolderIdWrapper()
          Initializes a new instance of AbstractFolderIdWrapper.
 
Method Summary
 Folder getFolder()
          Obtains the Folder object associated with the wrapper.
protected  void validate(ExchangeVersion version)
          Validates folderId against specified version.
protected abstract  void writeToXml(EwsServiceXmlWriter writer)
          Writes the Id encapsulated in the wrapper to XML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFolderIdWrapper

protected AbstractFolderIdWrapper()
Initializes a new instance of AbstractFolderIdWrapper.

Method Detail

getFolder

public Folder getFolder()
Obtains the Folder object associated with the wrapper.

Returns:
The Folder object associated with the wrapper.

writeToXml

protected abstract void writeToXml(EwsServiceXmlWriter writer)
                            throws Exception
Writes the Id encapsulated in the wrapper to XML.

Parameters:
writer - the writer
Throws:
Exception - the exception

validate

protected void validate(ExchangeVersion version)
                 throws ServiceVersionException
Validates folderId against specified version.

Parameters:
version - the version
Throws:
ServiceVersionException - the service version exception


Copyright © 2012–2015 Microsoft. All rights reserved.