public abstract class AlternateIdBase extends Object implements ISelfValidate
Modifier | Constructor and Description |
---|---|
protected |
AlternateIdBase()
Initializes a new instance of the class.
|
protected |
AlternateIdBase(IdFormat format)
Initializes a new instance of the class.
|
Modifier and Type | Method and Description |
---|---|
IdFormat |
getFormat()
Gets the format in which the Id in expressed.
|
protected abstract String |
getXmlElementName()
Gets the name of the XML element.
|
protected void |
internalValidate()
Validate this instance.
|
void |
loadAttributesFromXml(EwsServiceXmlReader reader)
Loads the attribute from XML.
|
void |
setFormat(IdFormat format)
Sets the format.
|
void |
validate()
Validates this instance.
|
protected void |
writeAttributesToXml(EwsServiceXmlWriter writer)
Writes the attribute to XML.
|
void |
writeToXml(EwsServiceXmlWriter writer)
Writes to XML.
|
protected AlternateIdBase()
protected AlternateIdBase(IdFormat format)
format
- the formatpublic IdFormat getFormat()
public void setFormat(IdFormat format)
format
- the new formatprotected abstract String getXmlElementName()
protected void writeAttributesToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException
writer
- the writerServiceXmlSerializationException
- the service xml serialization exceptionpublic void loadAttributesFromXml(EwsServiceXmlReader reader) throws Exception
reader
- the readerException
- the exceptionpublic void writeToXml(EwsServiceXmlWriter writer) throws ServiceXmlSerializationException, XMLStreamException
writer
- the writerServiceXmlSerializationException
- the service xml serialization exceptionXMLStreamException
- the XML stream exceptionprotected void internalValidate() throws Exception
Exception
public void validate() throws Exception
validate
in interface ISelfValidate
Exception
ServiceValidationException
- the service validation exceptionCopyright © 2012–2015 Microsoft. All rights reserved.