/** * Reads the end element. * * @param xmlNamespace the xml namespace * @param localName the local name * @throws Exception the exception */ public void readEndElement(XmlNamespace xmlNamespace, String localName) throws Exception { this.internalReadElement(xmlNamespace, localName, new XmlNodeType( XmlNodeType.END_ELEMENT)); }
/** * Reads the start element. * * @param namespacePrefix the namespace prefix * @param localName the local name * @throws Exception the exception */ public void readStartElement(String namespacePrefix, String localName) throws Exception { this.internalReadElement(namespacePrefix, localName, new XmlNodeType( XmlNodeType.START_ELEMENT)); }
/** * Reads the start element. * * @param xmlNamespace the xml namespace * @param localName the local name * @throws Exception the exception */ public void readStartElement(XmlNamespace xmlNamespace, String localName) throws Exception { this.internalReadElement(xmlNamespace, localName, new XmlNodeType( XmlNodeType.START_ELEMENT)); }
/** * Reads the end element. * * @param namespacePrefix the namespace prefix * @param elementName the element name * @throws Exception the exception */ public void readEndElement(String namespacePrefix, String elementName) throws Exception { this.internalReadElement(namespacePrefix, elementName, new XmlNodeType( XmlNodeType.END_ELEMENT)); }
/** * Read XML element. * * @param xmlNamespace The XML namespace * @param localName Name of the local * @param nodeType Type of the node * @throws Exception the exception */ private void internalReadElement(XmlNamespace xmlNamespace, String localName, XmlNodeType nodeType) throws Exception { if (xmlNamespace == XmlNamespace.NotSpecified) { this.internalReadElement("", localName, nodeType); } else { this.read(nodeType); if ((!this.getLocalName().equals(localName)) || (!this.getNamespaceUri().equals(EwsUtilities .getNamespaceUri(xmlNamespace)))) { throw new ServiceXmlDeserializationException( String .format( "An element node '%s:%s' of the type %s was expected, but node '%s' of type %s was found.", EwsUtilities .getNamespacePrefix( xmlNamespace), localName, nodeType.toString(), this .getName(), this.getNodeType() .toString())); } } }
/** * Reads the end element. * * @param xmlNamespace the xml namespace * @param localName the local name * @throws Exception the exception */ public void readEndElement(XmlNamespace xmlNamespace, String localName) throws Exception { this.internalReadElement(xmlNamespace, localName, new XmlNodeType( XmlNodeType.END_ELEMENT)); }
/** * Reads the start element. * * @param namespacePrefix the namespace prefix * @param localName the local name * @throws Exception the exception */ public void readStartElement(String namespacePrefix, String localName) throws Exception { this.internalReadElement(namespacePrefix, localName, new XmlNodeType( XmlNodeType.START_ELEMENT)); }
/** * Reads the end element. * * @param namespacePrefix the namespace prefix * @param elementName the element name * @throws Exception the exception */ public void readEndElement(String namespacePrefix, String elementName) throws Exception { this.internalReadElement(namespacePrefix, elementName, new XmlNodeType( XmlNodeType.END_ELEMENT)); }
/** * Reads the start element. * * @param xmlNamespace the xml namespace * @param localName the local name * @throws Exception the exception */ public void readStartElement(XmlNamespace xmlNamespace, String localName) throws Exception { this.internalReadElement(xmlNamespace, localName, new XmlNodeType( XmlNodeType.START_ELEMENT)); }
/** * Read XML element. * * @param xmlNamespace The XML namespace * @param localName Name of the local * @param nodeType Type of the node * @throws Exception the exception */ private void internalReadElement(XmlNamespace xmlNamespace, String localName, XmlNodeType nodeType) throws Exception { if (xmlNamespace == XmlNamespace.NotSpecified) { this.internalReadElement("", localName, nodeType); } else { this.read(nodeType); if ((!this.getLocalName().equals(localName)) || (!this.getNamespaceUri().equals(EwsUtilities .getNamespaceUri(xmlNamespace)))) { throw new ServiceXmlDeserializationException( String .format( "An element node '%s:%s' of the type %s was expected, but node '%s' of type %s was found.", EwsUtilities .getNamespacePrefix( xmlNamespace), localName, nodeType.toString(), this .getName(), this.getNodeType() .toString())); } } }