001/* 002 * The MIT License 003 * Copyright (c) 2012 Microsoft Corporation 004 * 005 * Permission is hereby granted, free of charge, to any person obtaining a copy 006 * of this software and associated documentation files (the "Software"), to deal 007 * in the Software without restriction, including without limitation the rights 008 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 009 * copies of the Software, and to permit persons to whom the Software is 010 * furnished to do so, subject to the following conditions: 011 * 012 * The above copyright notice and this permission notice shall be included in 013 * all copies or substantial portions of the Software. 014 * 015 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 016 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 017 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 018 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 019 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 020 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 021 * THE SOFTWARE. 022 */ 023 024package microsoft.exchange.webservices.data.core.enumeration.misc; 025 026import microsoft.exchange.webservices.data.core.EwsUtilities; 027 028/** 029 * Defines the namespaces as used by the EwsXmlReader, EwsServiceXmlReader, and 030 * EwsServiceXmlWriter classes. 031 */ 032public enum XmlNamespace { 033 /* 034 * The namespace is not specified. 035 */ 036 /** 037 * The Not specified. 038 */ 039 NotSpecified("", ""), 040 041 /** 042 * The Messages. 043 */ 044 Messages(EwsUtilities.EwsMessagesNamespacePrefix, 045 EwsUtilities.EwsMessagesNamespace), 046 047 /** 048 * The Types. 049 */ 050 Types(EwsUtilities.EwsTypesNamespacePrefix, EwsUtilities.EwsTypesNamespace), 051 052 /** 053 * The Errors. 054 */ 055 Errors(EwsUtilities.EwsErrorsNamespacePrefix, 056 EwsUtilities.EwsErrorsNamespace), 057 058 /** 059 * The Soap. 060 */ 061 Soap(EwsUtilities.EwsSoapNamespacePrefix, EwsUtilities.EwsSoapNamespace), 062 063 /** 064 * The Soap12. 065 */ 066 Soap12(EwsUtilities.EwsSoapNamespacePrefix, 067 EwsUtilities.EwsSoap12Namespace), 068 069 /** 070 * The Xml schema instance. 071 */ 072 XmlSchemaInstance(EwsUtilities.EwsXmlSchemaInstanceNamespacePrefix, 073 EwsUtilities.EwsXmlSchemaInstanceNamespace), 074 075 /** 076 * The Passport soap fault. 077 */ 078 PassportSoapFault(EwsUtilities.PassportSoapFaultNamespacePrefix, 079 EwsUtilities.PassportSoapFaultNamespace), 080 081 /** 082 * The WS trust february2005. 083 */ 084 WSTrustFebruary2005(EwsUtilities.WSTrustFebruary2005NamespacePrefix, 085 EwsUtilities.WSTrustFebruary2005Namespace), 086 087 /** 088 * The WS addressing. 089 */ 090 WSAddressing(EwsUtilities.WSAddressingNamespacePrefix, 091 EwsUtilities.WSAddressingNamespace), 092 093 /** 094 * The Autodiscover. 095 */ 096 Autodiscover(EwsUtilities.AutodiscoverSoapNamespacePrefix, 097 EwsUtilities.AutodiscoverSoapNamespace); 098 099 /** 100 * The prefix. 101 */ 102 private String prefix; 103 104 /** 105 * The name space uri. 106 */ 107 private String nameSpaceUri; 108 109 /** 110 * Instantiates a new xml namespace. 111 * 112 * @param prefix the prefix 113 * @param nameSpaceUri the name space uri 114 */ 115 XmlNamespace(String prefix, String nameSpaceUri) { 116 this.prefix = prefix; 117 this.nameSpaceUri = nameSpaceUri; 118 } 119 120 /** 121 * Gets the name space uri. 122 * 123 * @return the name space uri 124 */ 125 public String getNameSpaceUri() { 126 return this.nameSpaceUri; 127 } 128 129 /** 130 * Gets the name space prefix. 131 * 132 * @return the name space prefix 133 */ 134 public String getNameSpacePrefix() { 135 return this.prefix; 136 } 137}