public final class ByteArrayPropertyDefinition extends PropertyDefinition
Constructor and Description |
---|
ByteArrayPropertyDefinition(String xmlElementName,
String uri,
EnumSet<PropertyDefinitionFlags> flags,
ExchangeVersion version)
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
Class<Byte> |
getType()
Gets the property type.
|
boolean |
isNullable()
Gets a value indicating whether this property definition is for a
nullable type (ref, int?
|
void |
loadPropertyValueFromXml(EwsServiceXmlReader reader,
PropertyBag propertyBag)
Loads from XML.
|
protected byte[] |
parse(String value)
Parses the specified value.
|
protected String |
toString(byte[] value)
Converts byte array property to a string.
|
void |
writePropertyValueToXml(EwsServiceXmlWriter writer,
PropertyBag propertyBag,
boolean isUpdateOperation)
Writes the property value to XML.
|
getAssociatedInternalProperties, getName, getPrintableName, getVersion, getXmlElement, hasFlag, hasFlag, registerAssociatedInternalProperties, setName
getUri, getXmlElementName, writeAttributesToXml
toString, tryLoadFromXml, writeToXml
public ByteArrayPropertyDefinition(String xmlElementName, String uri, EnumSet<PropertyDefinitionFlags> flags, ExchangeVersion version)
xmlElementName
- Name of the XML element.uri
- The URI.flags
- The flags.version
- The version.protected byte[] parse(String value)
value
- accepts Stringprotected String toString(byte[] value)
value
- accepts Objectpublic boolean isNullable()
public Class<Byte> getType()
getType
in class PropertyDefinitionBase
public void loadPropertyValueFromXml(EwsServiceXmlReader reader, PropertyBag propertyBag) throws Exception
loadPropertyValueFromXml
in class PropertyDefinition
reader
- The reader.propertyBag
- The property bag.Exception
- the exceptionpublic void writePropertyValueToXml(EwsServiceXmlWriter writer, PropertyBag propertyBag, boolean isUpdateOperation) throws XMLStreamException, ServiceLocalException
writePropertyValueToXml
in class PropertyDefinition
writer
- The writer.propertyBag
- The property bag.isUpdateOperation
- Indicates whether the context is an update operation.XMLStreamException
- the XML stream exceptionServiceLocalException
- the service local exceptionCopyright © 2012–2015 Microsoft. All rights reserved.