microsoft.exchange.webservices.data.property.complex
Class RulePredicateSizeRange

java.lang.Object
  extended by microsoft.exchange.webservices.data.property.complex.ComplexProperty
      extended by microsoft.exchange.webservices.data.property.complex.RulePredicateSizeRange
All Implemented Interfaces:
ISelfValidate, ComplexFunctionDelegate<EwsServiceXmlReader>

public final class RulePredicateSizeRange
extends ComplexProperty

Represents the minimum and maximum size of a message.


Constructor Summary
protected RulePredicateSizeRange()
          Initializes a new instance of the RulePredicateSizeRange class.
 
Method Summary
 Integer getMaximumSize()
          Gets or sets the maximum size, in kilobytes.
 Integer getMinimumSize()
          Gets or sets the minimum size, in kilobytes.
protected  void internalValidate()
          Validates this instance.
 void setMaximumSize(Integer value)
           
 void setMinimumSize(Integer value)
           
 boolean tryReadElementFromXml(EwsServiceXmlReader reader)
          Tries to read element from XML.
 void writeElementsToXml(EwsServiceXmlWriter writer)
          Writes elements to XML.
 
Methods inherited from class microsoft.exchange.webservices.data.property.complex.ComplexProperty
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, func, getNamespace, loadFromXml, loadFromXml, readAttributesFromXml, readTextValueFromXml, removeChangeEvent, setNamespace, tryReadElementFromXmlToPatch, updateFromXml, updateFromXml, validate, writeAttributesToXml, writeToXml, writeToXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RulePredicateSizeRange

protected RulePredicateSizeRange()
Initializes a new instance of the RulePredicateSizeRange class.

Method Detail

getMinimumSize

public Integer getMinimumSize()
Gets or sets the minimum size, in kilobytes. If MinimumSize is set to null, no minimum size applies.


setMinimumSize

public void setMinimumSize(Integer value)

getMaximumSize

public Integer getMaximumSize()
Gets or sets the maximum size, in kilobytes. If MaximumSize is set to null, no maximum size applies.


setMaximumSize

public void setMaximumSize(Integer value)

tryReadElementFromXml

public boolean tryReadElementFromXml(EwsServiceXmlReader reader)
                              throws Exception
Tries to read element from XML.

Overrides:
tryReadElementFromXml in class ComplexProperty
Parameters:
reader - The reader.
Returns:
True if element was read.
Throws:
Exception - the exception

writeElementsToXml

public void writeElementsToXml(EwsServiceXmlWriter writer)
                        throws ServiceXmlSerializationException,
                               XMLStreamException
Writes elements to XML.

Overrides:
writeElementsToXml in class ComplexProperty
Parameters:
writer - the writer
Throws:
XMLStreamException - the XML stream exception
ServiceXmlSerializationException

internalValidate

protected void internalValidate()
                         throws ServiceValidationException,
                                Exception
Validates this instance.

Overrides:
internalValidate in class ComplexProperty
Throws:
Exception - the exception
ServiceValidationException


Copyright © 2012–2015 Microsoft. All rights reserved.