Class ByteArrayPropertyDefinition
- java.lang.Object
-
- microsoft.exchange.webservices.data.property.definition.PropertyDefinitionBase
-
- microsoft.exchange.webservices.data.property.definition.ServiceObjectPropertyDefinition
-
- microsoft.exchange.webservices.data.property.definition.PropertyDefinition
-
- microsoft.exchange.webservices.data.property.definition.ByteArrayPropertyDefinition
-
public final class ByteArrayPropertyDefinition extends PropertyDefinition
Represents byte array property definition.
-
-
Constructor Summary
Constructors Constructor Description ByteArrayPropertyDefinition(String xmlElementName, String uri, EnumSet<PropertyDefinitionFlags> flags, ExchangeVersion version)Initializes a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<Byte>getType()Gets the property type.booleanisNullable()Gets a value indicating whether this property definition is for a nullable type (ref, int?, bool?...).voidloadPropertyValueFromXml(EwsServiceXmlReader reader, PropertyBag propertyBag)Loads from XML.protected byte[]parse(String value)Parses the specified value.protected StringtoString(byte[] value)Converts byte array property to a string.voidwritePropertyValueToXml(EwsServiceXmlWriter writer, PropertyBag propertyBag, boolean isUpdateOperation)Writes the property value to XML.-
Methods inherited from class microsoft.exchange.webservices.data.property.definition.PropertyDefinition
getAssociatedInternalProperties, getName, getPrintableName, getVersion, getXmlElement, hasFlag, hasFlag, registerAssociatedInternalProperties, setName
-
Methods inherited from class microsoft.exchange.webservices.data.property.definition.ServiceObjectPropertyDefinition
getUri, getXmlElementName, writeAttributesToXml
-
Methods inherited from class microsoft.exchange.webservices.data.property.definition.PropertyDefinitionBase
toString, tryLoadFromXml, writeToXml
-
-
-
-
Constructor Detail
-
ByteArrayPropertyDefinition
public ByteArrayPropertyDefinition(String xmlElementName, String uri, EnumSet<PropertyDefinitionFlags> flags, ExchangeVersion version)
Initializes a new instance.- Parameters:
xmlElementName- Name of the XML element.uri- The URI.flags- The flags.version- The version.
-
-
Method Detail
-
parse
protected byte[] parse(String value)
Parses the specified value.- Parameters:
value- accepts String- Returns:
- value
-
toString
protected String toString(byte[] value)
Converts byte array property to a string.- Parameters:
value- accepts Object- Returns:
- value
-
isNullable
public boolean isNullable()
Gets a value indicating whether this property definition is for a nullable type (ref, int?, bool?...).- Returns:
- True
-
getType
public Class<Byte> getType()
Gets the property type.- Specified by:
getTypein classPropertyDefinitionBase
-
loadPropertyValueFromXml
public void loadPropertyValueFromXml(EwsServiceXmlReader reader, PropertyBag propertyBag) throws Exception
Loads from XML.- Specified by:
loadPropertyValueFromXmlin classPropertyDefinition- Parameters:
reader- The reader.propertyBag- The property bag.- Throws:
Exception- the exception
-
writePropertyValueToXml
public void writePropertyValueToXml(EwsServiceXmlWriter writer, PropertyBag propertyBag, boolean isUpdateOperation) throws XMLStreamException, ServiceLocalException
Writes the property value to XML.- Specified by:
writePropertyValueToXmlin classPropertyDefinition- Parameters:
writer- The writer.propertyBag- The property bag.isUpdateOperation- Indicates whether the context is an update operation.- Throws:
XMLStreamException- the XML stream exceptionServiceLocalException- the service local exception
-
-