1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/share/jaxws_classes/com/sun/tools/internal/ws/wsdl/parser/Constants.java Tue Mar 06 16:09:35 2012 -0800 1.3 @@ -0,0 +1,145 @@ 1.4 +/* 1.5 + * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 1.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.7 + * 1.8 + * This code is free software; you can redistribute it and/or modify it 1.9 + * under the terms of the GNU General Public License version 2 only, as 1.10 + * published by the Free Software Foundation. Oracle designates this 1.11 + * particular file as subject to the "Classpath" exception as provided 1.12 + * by Oracle in the LICENSE file that accompanied this code. 1.13 + * 1.14 + * This code is distributed in the hope that it will be useful, but WITHOUT 1.15 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1.16 + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1.17 + * version 2 for more details (a copy is included in the LICENSE file that 1.18 + * accompanied this code). 1.19 + * 1.20 + * You should have received a copy of the GNU General Public License version 1.21 + * 2 along with this work; if not, write to the Free Software Foundation, 1.22 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1.23 + * 1.24 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 1.25 + * or visit www.oracle.com if you need additional information or have any 1.26 + * questions. 1.27 + */ 1.28 + 1.29 +package com.sun.tools.internal.ws.wsdl.parser; 1.30 + 1.31 +/** 1.32 + * An interface defining constants needed to read and write WSDL documents. 1.33 + * 1.34 + * @author WS Development Team 1.35 + */ 1.36 +public interface Constants { 1.37 + // WSDL element tags 1.38 + public static String TAG_BINDING = "binding"; 1.39 + public static String TAG_DEFINITIONS = "definitions"; 1.40 + public static String TAG_DOCUMENTATION = "documentation"; 1.41 + public static String TAG_MESSAGE = "message"; 1.42 + public static String TAG_PART = "part"; 1.43 + public static String TAG_PORT_TYPE = "portType"; 1.44 + public static String TAG_TYPES = "types"; 1.45 + public static String TAG_OPERATION = "operation"; 1.46 + public static String TAG_INPUT = "input"; 1.47 + public static String TAG_OUTPUT = "output"; 1.48 + public static String TAG_FAULT = "fault"; 1.49 + public static String TAG_SERVICE = "service"; 1.50 + public static String TAG_PORT = "port"; 1.51 + public static String TAG_ = ""; 1.52 + 1.53 + // WSDL attribute names 1.54 + public static String ATTR_ELEMENT = "element"; 1.55 + public static String ATTR_NAME = "name"; 1.56 + public static String ATTR_REQUIRED = "required"; 1.57 + public static String ATTR_TARGET_NAMESPACE = "targetNamespace"; 1.58 + public static String ATTR_TYPE = "type"; 1.59 + public static String ATTR_MESSAGE = "message"; 1.60 + public static String ATTR_BINDING = "binding"; 1.61 + public static String ATTR_LOCATION = "location"; 1.62 + public static String ATTR_TRANSPORT = "transport"; 1.63 + public static String ATTR_STYLE = "style"; 1.64 + public static String ATTR_USE = "use"; 1.65 + public static String ATTR_NAMESPACE = "namespace"; 1.66 + public static String ATTR_ENCODING_STYLE = "encodingStyle"; 1.67 + public static String ATTR_PART = "part"; 1.68 + public static String ATTR_PARTS = "parts"; 1.69 + public static String ATTR_SOAP_ACTION = "soapAction"; 1.70 + public static String ATTR_PARAMETER_ORDER = "parameterOrder"; 1.71 + public static String ATTR_VERB = "verb"; 1.72 + 1.73 + // schema attribute names 1.74 + public static String ATTR_ID = "id"; 1.75 + public static String ATTR_VERSION = "version"; 1.76 + public static String ATTR_ATTRIBUTE_FORM_DEFAULT = "attributeFormDefault"; 1.77 + public static String ATTR_BLOCK_DEFAULT = "blockDefault"; 1.78 + public static String ATTR_ELEMENT_FORM_DEFAULT = "elementFormDefault"; 1.79 + public static String ATTR_FINAL_DEFAULT = "finalDefault"; 1.80 + public static String ATTR_ABSTRACT = "abstract"; 1.81 + public static String ATTR_NILLABLE = "nillable"; 1.82 + public static String ATTR_DEFAULT = "default"; 1.83 + public static String ATTR_FIXED = "fixed"; 1.84 + public static String ATTR_FORM = "form"; 1.85 + public static String ATTR_BLOCK = "block"; 1.86 + public static String ATTR_FINAL = "final"; 1.87 + public static String ATTR_REF = "ref"; 1.88 + public static String ATTR_SUBSTITUTION_GROUP = "substitutionGroup"; 1.89 + public static String ATTR_MIN_OCCURS = "minOccurs"; 1.90 + public static String ATTR_MAX_OCCURS = "maxOccurs"; 1.91 + public static String ATTR_PROCESS_CONTENTS = "processContents"; 1.92 + public static String ATTR_MIXED = "mixed"; 1.93 + public static String ATTR_BASE = "base"; 1.94 + public static String ATTR_VALUE = "value"; 1.95 + public static String ATTR_XPATH = "xpath"; 1.96 + public static String ATTR_SCHEMA_LOCATION = "schemaLocation"; 1.97 + public static String ATTR_REFER = "refer"; 1.98 + public static String ATTR_ITEM_TYPE = "itemType"; 1.99 + public static String ATTR_PUBLIC = "public"; 1.100 + public static String ATTR_SYSTEM = "system"; 1.101 + public static String ATTR_MEMBER_TYPES = "memberTypes"; 1.102 + public static String ATTR_ = ""; 1.103 + 1.104 + // WSDL attribute values 1.105 + public static String ATTRVALUE_RPC = "rpc"; 1.106 + public static String ATTRVALUE_DOCUMENT = "document"; 1.107 + public static String ATTRVALUE_LITERAL = "literal"; 1.108 + public static String ATTRVALUE_ENCODED = "encoded"; 1.109 + 1.110 + // schema attribute values 1.111 + public static String ATTRVALUE_QUALIFIED = "qualified"; 1.112 + public static String ATTRVALUE_UNQUALIFIED = "unqualified"; 1.113 + public static String ATTRVALUE_ALL = "#all"; 1.114 + public static String ATTRVALUE_SUBSTITUTION = "substitution"; 1.115 + public static String ATTRVALUE_EXTENSION = "extension"; 1.116 + public static String ATTRVALUE_RESTRICTION = "restriction"; 1.117 + public static String ATTRVALUE_LIST = "list"; 1.118 + public static String ATTRVALUE_UNION = "union"; 1.119 + public static String ATTRVALUE_UNBOUNDED = "unbounded"; 1.120 + public static String ATTRVALUE_PROHIBITED = "prohibited"; 1.121 + public static String ATTRVALUE_OPTIONAL = "optional"; 1.122 + public static String ATTRVALUE_REQUIRED = "required"; 1.123 + public static String ATTRVALUE_LAX = "lax"; 1.124 + public static String ATTRVALUE_SKIP = "skip"; 1.125 + public static String ATTRVALUE_STRICT = "strict"; 1.126 + public static String ATTRVALUE_ANY = "##any"; 1.127 + public static String ATTRVALUE_LOCAL = "##local"; 1.128 + public static String ATTRVALUE_OTHER = "##other"; 1.129 + public static String ATTRVALUE_TARGET_NAMESPACE = "##targetNamespace"; 1.130 + public static String ATTRVALUE_ = ""; 1.131 + 1.132 + // namespace URIs 1.133 + public static String NS_XML = "http://www.w3.org/XML/1998/namespace"; 1.134 + public static String NS_XMLNS = "http://www.w3.org/2000/xmlns/"; 1.135 + public static String NS_WSDL = "http://schemas.xmlsoap.org/wsdl/"; 1.136 + public static String NS_WSDL_SOAP = "http://schemas.xmlsoap.org/wsdl/soap/"; 1.137 + public static String NS_WSDL_SOAP12 = "http://schemas.xmlsoap.org/wsdl/soap12/"; 1.138 + public static String NS_WSDL_HTTP = "http://schemas.xmlsoap.org/wsdl/http/"; 1.139 + public static String NS_WSDL_MIME = "http://schemas.xmlsoap.org/wsdl/mime/"; 1.140 + public static String NS_XSD = "http://www.w3.org/2001/XMLSchema"; 1.141 + public static String NS_XSI = "http://www.w3.org/2001/XMLSchema-instance"; 1.142 + public static String NS_ = ""; 1.143 + 1.144 + // other constants 1.145 + public static String XMLNS = "xmlns"; 1.146 + public static String TRUE = "true"; 1.147 + public static String FALSE = "false"; 1.148 +}