All Downloads are FREE. Search and download functionalities are using the official Maven repository.

microsoft.exchange.webservices.data.ItemIdWrapper Maven / Gradle / Ivy

Go to download

The source came from http://archive.msdn.microsoft.com/ewsjavaapi Support for Maven has been added.

The newest version!
/**************************************************************************
 * copyright file="ItemIdWrapper.java" company="Microsoft"
 *     Copyright (c) Microsoft Corporation.  All rights reserved.
 * 
 * Defines the ItemIdWrapper.java.
 **************************************************************************/
package microsoft.exchange.webservices.data;

/***
 * Represents an item Id provided by a ItemId object.
 */
class ItemIdWrapper extends AbstractItemIdWrapper {

	/***
	 *The ItemId object providing the Id.
	 */
	private ItemId itemId;

	/**
	 * * Initializes a new instance of ItemIdWrapper.
	 * 
	 * @param itemId
	 *            the item id
	 */
	protected ItemIdWrapper(ItemId itemId) {
		EwsUtilities.EwsAssert(itemId != null, "ItemIdWrapper.ctor",
				"itemId is null");
		this.itemId = itemId;
	}

	/**
	 * * Writes the Id encapsulated in the wrapper to XML.
	 * 
	 * @param writer
	 *            the writer
	 * @throws Exception
	 *             the exception
	 */
	@Override
	protected void writeToXml(EwsServiceXmlWriter writer) throws Exception {
		this.itemId.writeToXml(writer);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy