001: /*
002: * Portions Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
003: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
004: *
005: * This code is free software; you can redistribute it and/or modify it
006: * under the terms of the GNU General Public License version 2 only, as
007: * published by the Free Software Foundation. Sun designates this
008: * particular file as subject to the "Classpath" exception as provided
009: * by Sun in the LICENSE file that accompanied this code.
010: *
011: * This code is distributed in the hope that it will be useful, but WITHOUT
012: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
013: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
014: * version 2 for more details (a copy is included in the LICENSE file that
015: * accompanied this code).
016: *
017: * You should have received a copy of the GNU General Public License version
018: * 2 along with this work; if not, write to the Free Software Foundation,
019: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
020: *
021: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
022: * CA 95054 USA or visit www.sun.com if you need additional information or
023: * have any questions.
024: */
025:
026: package com.sun.tools.internal.ws.wsdl.parser;
027:
028: /**
029: * An interface defining constants needed to read and write WSDL documents.
030: *
031: * @author WS Development Team
032: */
033: public interface Constants {
034: // WSDL element tags
035: public static String TAG_BINDING = "binding";
036: public static String TAG_DEFINITIONS = "definitions";
037: public static String TAG_DOCUMENTATION = "documentation";
038: public static String TAG_MESSAGE = "message";
039: public static String TAG_PART = "part";
040: public static String TAG_PORT_TYPE = "portType";
041: public static String TAG_TYPES = "types";
042: public static String TAG_OPERATION = "operation";
043: public static String TAG_INPUT = "input";
044: public static String TAG_OUTPUT = "output";
045: public static String TAG_FAULT = "fault";
046: public static String TAG_SERVICE = "service";
047: public static String TAG_PORT = "port";
048: public static String TAG_ = "";
049:
050: // WSDL attribute names
051: public static String ATTR_ELEMENT = "element";
052: public static String ATTR_NAME = "name";
053: public static String ATTR_REQUIRED = "required";
054: public static String ATTR_TARGET_NAMESPACE = "targetNamespace";
055: public static String ATTR_TYPE = "type";
056: public static String ATTR_MESSAGE = "message";
057: public static String ATTR_BINDING = "binding";
058: public static String ATTR_LOCATION = "location";
059: public static String ATTR_TRANSPORT = "transport";
060: public static String ATTR_STYLE = "style";
061: public static String ATTR_USE = "use";
062: public static String ATTR_NAMESPACE = "namespace";
063: public static String ATTR_ENCODING_STYLE = "encodingStyle";
064: public static String ATTR_PART = "part";
065: public static String ATTR_PARTS = "parts";
066: public static String ATTR_SOAP_ACTION = "soapAction";
067: public static String ATTR_PARAMETER_ORDER = "parameterOrder";
068: public static String ATTR_VERB = "verb";
069:
070: // schema attribute names
071: public static String ATTR_ID = "id";
072: public static String ATTR_VERSION = "version";
073: public static String ATTR_ATTRIBUTE_FORM_DEFAULT = "attributeFormDefault";
074: public static String ATTR_BLOCK_DEFAULT = "blockDefault";
075: public static String ATTR_ELEMENT_FORM_DEFAULT = "elementFormDefault";
076: public static String ATTR_FINAL_DEFAULT = "finalDefault";
077: public static String ATTR_ABSTRACT = "abstract";
078: public static String ATTR_NILLABLE = "nillable";
079: public static String ATTR_DEFAULT = "default";
080: public static String ATTR_FIXED = "fixed";
081: public static String ATTR_FORM = "form";
082: public static String ATTR_BLOCK = "block";
083: public static String ATTR_FINAL = "final";
084: public static String ATTR_REF = "ref";
085: public static String ATTR_SUBSTITUTION_GROUP = "substitutionGroup";
086: public static String ATTR_MIN_OCCURS = "minOccurs";
087: public static String ATTR_MAX_OCCURS = "maxOccurs";
088: public static String ATTR_PROCESS_CONTENTS = "processContents";
089: public static String ATTR_MIXED = "mixed";
090: public static String ATTR_BASE = "base";
091: public static String ATTR_VALUE = "value";
092: public static String ATTR_XPATH = "xpath";
093: public static String ATTR_SCHEMA_LOCATION = "schemaLocation";
094: public static String ATTR_REFER = "refer";
095: public static String ATTR_ITEM_TYPE = "itemType";
096: public static String ATTR_PUBLIC = "public";
097: public static String ATTR_SYSTEM = "system";
098: public static String ATTR_MEMBER_TYPES = "memberTypes";
099: public static String ATTR_ = "";
100:
101: // WSDL attribute values
102: public static String ATTRVALUE_RPC = "rpc";
103: public static String ATTRVALUE_DOCUMENT = "document";
104: public static String ATTRVALUE_LITERAL = "literal";
105: public static String ATTRVALUE_ENCODED = "encoded";
106:
107: // schema attribute values
108: public static String ATTRVALUE_QUALIFIED = "qualified";
109: public static String ATTRVALUE_UNQUALIFIED = "unqualified";
110: public static String ATTRVALUE_ALL = "#all";
111: public static String ATTRVALUE_SUBSTITUTION = "substitution";
112: public static String ATTRVALUE_EXTENSION = "extension";
113: public static String ATTRVALUE_RESTRICTION = "restriction";
114: public static String ATTRVALUE_LIST = "list";
115: public static String ATTRVALUE_UNION = "union";
116: public static String ATTRVALUE_UNBOUNDED = "unbounded";
117: public static String ATTRVALUE_PROHIBITED = "prohibited";
118: public static String ATTRVALUE_OPTIONAL = "optional";
119: public static String ATTRVALUE_REQUIRED = "required";
120: public static String ATTRVALUE_LAX = "lax";
121: public static String ATTRVALUE_SKIP = "skip";
122: public static String ATTRVALUE_STRICT = "strict";
123: public static String ATTRVALUE_ANY = "##any";
124: public static String ATTRVALUE_LOCAL = "##local";
125: public static String ATTRVALUE_OTHER = "##other";
126: public static String ATTRVALUE_TARGET_NAMESPACE = "##targetNamespace";
127: public static String ATTRVALUE_ = "";
128:
129: // namespace URIs
130: public static String NS_XML = "http://www.w3.org/XML/1998/namespace";
131: public static String NS_XMLNS = "http://www.w3.org/2000/xmlns/";
132: public static String NS_WSDL = "http://schemas.xmlsoap.org/wsdl/";
133: public static String NS_WSDL_SOAP = "http://schemas.xmlsoap.org/wsdl/soap/";
134: public static String NS_WSDL_SOAP12 = "http://schemas.xmlsoap.org/wsdl/soap12/";
135: public static String NS_WSDL_HTTP = "http://schemas.xmlsoap.org/wsdl/http/";
136: public static String NS_WSDL_MIME = "http://schemas.xmlsoap.org/wsdl/mime/";
137: public static String NS_XSD = "http://www.w3.org/2001/XMLSchema";
138: public static String NS_XSI = "http://www.w3.org/2001/XMLSchema-instance";
139: public static String NS_ = "";
140:
141: // other constants
142: public static String XMLNS = "xmlns";
143: public static String TRUE = "true";
144: public static String FALSE = "false";
145: }
|