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

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

Go to download

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

There is a newer version: 1.1.5.2
Show newest version
/**************************************************************************
 * copyright file="StringPropertyDefinition.java" company="Microsoft"
 *     Copyright (c) Microsoft Corporation.  All rights reserved.
 * 
 * Defines the StringPropertyDefinition.java.
 **************************************************************************/

package microsoft.exchange.webservices.data;

import java.util.EnumSet;

/***
 * Represents String property definition.
 * 
 * 
 */
class StringPropertyDefinition extends TypedPropertyDefinition {

	/**
	 * Initializes a new instance of the "StringPropertyDefinition" class.
	 * 
	 * @param xmlElementName
	 *            Name of the XML element.
	 * @param uri
	 *            The URI.
	 * @param flags
	 *            The flags.
	 * @param version
	 *            The version.
	 */
	protected StringPropertyDefinition(String xmlElementName, String uri,
			EnumSet flags, ExchangeVersion version) {
		super(xmlElementName, uri, flags, version);
	}

	/***
	 * Parses the specified value.
	 * 
	 * @param value
	 *            The value.
	 * @return Typed value.
	 */
	@Override
	protected Object parse(String value) {
		return value;
	}

	/**
	 * Gets a value indicating whether this property definition is for a
	 * nullable type (ref, int?, bool?...).
	 * 
	 * @return True
	 */
	@Override
	protected boolean isNullable() {
		return true;
	}
	
	/**
	 * Gets the property type.
	 */
	@Override
    public Class getType() {
         return String.class; 
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy