001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common Development
008: * and Distribution License("CDDL") (collectively, the "License"). You
009: * may not use this file except in compliance with the License. You can obtain
010: * a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
011: * or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific
012: * language governing permissions and limitations under the License.
013: *
014: * When distributing the software, include this License Header Notice in each
015: * file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
016: * Sun designates this particular file as subject to the "Classpath" exception
017: * as provided by Sun in the GPL Version 2 section of the License file that
018: * accompanied this code. If applicable, add the following below the License
019: * Header, with the fields enclosed by brackets [] replaced by your own
020: * identifying information: "Portions Copyrighted [year]
021: * [name of copyright owner]"
022: *
023: * Contributor(s):
024: *
025: * If you wish your version of this file to be governed by only the CDDL or
026: * only the GPL Version 2, indicate your decision by adding "[Contributor]
027: * elects to include this software in this distribution under the [CDDL or GPL
028: * Version 2] license." If you don't indicate a single choice of license, a
029: * recipient has the option to distribute your version of this file under
030: * either the CDDL, the GPL Version 2 or to extend the choice of license to
031: * its licensees as provided above. However, if you add GPL Version 2 code
032: * and therefore, elected the GPL Version 2 license, then the option applies
033: * only if the new code is made subject to such option by the copyright
034: * holder.
035: */
036:
037: package com.sun.tools.ws.wsdl.parser;
038:
039: /**
040: * An interface defining constants needed to read and write WSDL documents.
041: *
042: * @author WS Development Team
043: */
044: public interface Constants {
045: // WSDL element tags
046: public static String TAG_BINDING = "binding";
047: public static String TAG_DEFINITIONS = "definitions";
048: public static String TAG_DOCUMENTATION = "documentation";
049: public static String TAG_MESSAGE = "message";
050: public static String TAG_PART = "part";
051: public static String TAG_PORT_TYPE = "portType";
052: public static String TAG_TYPES = "types";
053: public static String TAG_OPERATION = "operation";
054: public static String TAG_INPUT = "input";
055: public static String TAG_OUTPUT = "output";
056: public static String TAG_FAULT = "fault";
057: public static String TAG_SERVICE = "service";
058: public static String TAG_PORT = "port";
059: public static String TAG_ = "";
060:
061: // WSDL attribute names
062: public static String ATTR_ELEMENT = "element";
063: public static String ATTR_NAME = "name";
064: public static String ATTR_REQUIRED = "required";
065: public static String ATTR_TARGET_NAMESPACE = "targetNamespace";
066: public static String ATTR_TYPE = "type";
067: public static String ATTR_MESSAGE = "message";
068: public static String ATTR_BINDING = "binding";
069: public static String ATTR_LOCATION = "location";
070: public static String ATTR_TRANSPORT = "transport";
071: public static String ATTR_STYLE = "style";
072: public static String ATTR_USE = "use";
073: public static String ATTR_NAMESPACE = "namespace";
074: public static String ATTR_ENCODING_STYLE = "encodingStyle";
075: public static String ATTR_PART = "part";
076: public static String ATTR_PARTS = "parts";
077: public static String ATTR_SOAP_ACTION = "soapAction";
078: public static String ATTR_PARAMETER_ORDER = "parameterOrder";
079: public static String ATTR_VERB = "verb";
080:
081: // schema attribute names
082: public static String ATTR_ID = "id";
083: public static String ATTR_VERSION = "version";
084: public static String ATTR_ATTRIBUTE_FORM_DEFAULT = "attributeFormDefault";
085: public static String ATTR_BLOCK_DEFAULT = "blockDefault";
086: public static String ATTR_ELEMENT_FORM_DEFAULT = "elementFormDefault";
087: public static String ATTR_FINAL_DEFAULT = "finalDefault";
088: public static String ATTR_ABSTRACT = "abstract";
089: public static String ATTR_NILLABLE = "nillable";
090: public static String ATTR_DEFAULT = "default";
091: public static String ATTR_FIXED = "fixed";
092: public static String ATTR_FORM = "form";
093: public static String ATTR_BLOCK = "block";
094: public static String ATTR_FINAL = "final";
095: public static String ATTR_REF = "ref";
096: public static String ATTR_SUBSTITUTION_GROUP = "substitutionGroup";
097: public static String ATTR_MIN_OCCURS = "minOccurs";
098: public static String ATTR_MAX_OCCURS = "maxOccurs";
099: public static String ATTR_PROCESS_CONTENTS = "processContents";
100: public static String ATTR_MIXED = "mixed";
101: public static String ATTR_BASE = "base";
102: public static String ATTR_VALUE = "value";
103: public static String ATTR_XPATH = "xpath";
104: public static String ATTR_SCHEMA_LOCATION = "schemaLocation";
105: public static String ATTR_REFER = "refer";
106: public static String ATTR_ITEM_TYPE = "itemType";
107: public static String ATTR_PUBLIC = "public";
108: public static String ATTR_SYSTEM = "system";
109: public static String ATTR_MEMBER_TYPES = "memberTypes";
110: public static String ATTR_ = "";
111:
112: // WSDL attribute values
113: public static String ATTRVALUE_RPC = "rpc";
114: public static String ATTRVALUE_DOCUMENT = "document";
115: public static String ATTRVALUE_LITERAL = "literal";
116: public static String ATTRVALUE_ENCODED = "encoded";
117:
118: // schema attribute values
119: public static String ATTRVALUE_QUALIFIED = "qualified";
120: public static String ATTRVALUE_UNQUALIFIED = "unqualified";
121: public static String ATTRVALUE_ALL = "#all";
122: public static String ATTRVALUE_SUBSTITUTION = "substitution";
123: public static String ATTRVALUE_EXTENSION = "extension";
124: public static String ATTRVALUE_RESTRICTION = "restriction";
125: public static String ATTRVALUE_LIST = "list";
126: public static String ATTRVALUE_UNION = "union";
127: public static String ATTRVALUE_UNBOUNDED = "unbounded";
128: public static String ATTRVALUE_PROHIBITED = "prohibited";
129: public static String ATTRVALUE_OPTIONAL = "optional";
130: public static String ATTRVALUE_REQUIRED = "required";
131: public static String ATTRVALUE_LAX = "lax";
132: public static String ATTRVALUE_SKIP = "skip";
133: public static String ATTRVALUE_STRICT = "strict";
134: public static String ATTRVALUE_ANY = "##any";
135: public static String ATTRVALUE_LOCAL = "##local";
136: public static String ATTRVALUE_OTHER = "##other";
137: public static String ATTRVALUE_TARGET_NAMESPACE = "##targetNamespace";
138: public static String ATTRVALUE_ = "";
139:
140: // namespace URIs
141: public static String NS_XML = "http://www.w3.org/XML/1998/namespace";
142: public static String NS_XMLNS = "http://www.w3.org/2000/xmlns/";
143: public static String NS_WSDL = "http://schemas.xmlsoap.org/wsdl/";
144: public static String NS_WSDL_SOAP = "http://schemas.xmlsoap.org/wsdl/soap/";
145: public static String NS_WSDL_SOAP12 = "http://schemas.xmlsoap.org/wsdl/soap12/";
146: public static String NS_WSDL_HTTP = "http://schemas.xmlsoap.org/wsdl/http/";
147: public static String NS_WSDL_MIME = "http://schemas.xmlsoap.org/wsdl/mime/";
148: public static String NS_XSD = "http://www.w3.org/2001/XMLSchema";
149: public static String NS_XSI = "http://www.w3.org/2001/XMLSchema-instance";
150: public static String NS_ = "";
151:
152: // other constants
153: public static String XMLNS = "xmlns";
154: public static String TRUE = "true";
155: public static String FALSE = "false";
156: }
|