001: /**
002: * Licensed to the Apache Software Foundation (ASF) under one
003: * or more contributor license agreements. See the NOTICE file
004: * distributed with this work for additional information
005: * regarding copyright ownership. The ASF licenses this file
006: * to you under the Apache License, Version 2.0 (the
007: * "License"); you may not use this file except in compliance
008: * with the License. You may obtain a copy of the License at
009: *
010: * http://www.apache.org/licenses/LICENSE-2.0
011: *
012: * Unless required by applicable law or agreed to in writing,
013: * software distributed under the License is distributed on an
014: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015: * KIND, either express or implied. See the License for the
016: * specific language governing permissions and limitations
017: * under the License.
018: */package org.apache.cxf.tools.common;
019:
020: import javax.xml.namespace.QName;
021:
022: public final class ToolConstants {
023:
024: //public static final String TOOLSPECS_BASE = "/org/apache/cxf/tools/common/toolspec/toolspecs/";
025: public static final String TOOLSPECS_BASE = "/org/apache/cxf/tools/";
026: public static final String SCHEMA_URI = "http://www.w3.org/2001/XMLSchema";
027: public static final String XML_NAMESPACE_URI = "http://www.w3.org/XML/1998/namespace";
028: public static final String WSDL_NAMESPACE_URI = "http://schemas.xmlsoap.org/wsdl/";
029:
030: public static final String DEFAULT_TEMP_DIR = "gen_tmp";
031: public static final String CFG_OUTPUTDIR = "outputdir";
032: public static final String CFG_OUTPUTFILE = "outputfile";
033: public static final String CFG_WSDLURL = "wsdlurl";
034: public static final String CFG_WSDLLOCATION = "wsdlLocation";
035: public static final String CFG_NAMESPACE = "namespace";
036: public static final String CFG_VERBOSE = "verbose";
037: public static final String CFG_PORT = "port";
038: public static final String CFG_BINDING = "binding";
039: public static final String CFG_WEBSERVICE = "webservice";
040: public static final String CFG_SERVER = "server";
041: public static final String CFG_CLIENT = "client";
042: public static final String CFG_ALL = "all";
043: public static final String CFG_IMPL = "impl";
044: public static final String CFG_PACKAGENAME = "packagename";
045: public static final String CFG_NINCLUDE = "ninclude";
046: public static final String CFG_NEXCLUDE = "nexclude";
047: public static final String CFG_CMD_ARG = "args";
048: public static final String CFG_INSTALL_DIR = "install.dir";
049: public static final String CFG_PLATFORM_VERSION = "platform.version";
050: public static final String CFG_COMPILE = "compile";
051: public static final String CFG_CLASSDIR = "classdir";
052: public static final String CFG_EXTRA_SOAPHEADER = "exsoapheader";
053: public static final String CFG_DEFAULT_NS = "defaultns";
054: public static final String CFG_DEFAULT_EX = "defaultex";
055: public static final String CFG_XJC_ARGS = "xjc";
056: public static final String CFG_CATALOG = "catalog";
057: public static final String CFG_DEFAULT_VALUES = "defaultValues";
058:
059: public static final String CFG_VALIDATE_WSDL = "validate";
060: public static final String CFG_CREATE_XSD_IMPORTS = "createxsdimports";
061:
062: public static final String CFG_FRONTEND = "frontend";
063:
064: public static final String CFG_DATABINDING = "db";
065:
066: // WSDL2Java Constants
067:
068: public static final String CFG_TYPES = "types";
069: public static final String CFG_INTERFACE = "interface";
070: public static final String CFG_NIGNOREEXCLUDE = "nignoreexclude";
071: public static final String CFG_ANT = "ant";
072: public static final String CFG_LIB_REF = "library.references";
073: public static final String CFG_ANT_PROP = "ant.prop";
074:
075: //Internal Flag to generate
076: public static final String CFG_IMPL_CLASS = "implClass";
077: public static final String CFG_GEN_CLIENT = "genClient";
078: public static final String CFG_GEN_SERVER = "genServer";
079: public static final String CFG_GEN_IMPL = "genImpl";
080: public static final String CFG_GEN_TYPES = "genTypes";
081: public static final String CFG_GEN_SEI = "genSEI";
082: public static final String CFG_GEN_ANT = "genAnt";
083: public static final String CFG_GEN_SERVICE = "genService";
084: public static final String CFG_GEN_OVERWRITE = "overwrite";
085: public static final String CFG_GEN_FAULT = "genFault";
086:
087: // Java2WSDL Constants
088:
089: public static final String CFG_CLASSPATH = "classpath";
090: public static final String CFG_TNS = "tns";
091: public static final String CFG_SERVICENAME = "servicename";
092: public static final String CFG_SCHEMANS = "schemans";
093: public static final String CFG_USETYPES = "usetypes";
094: public static final String CFG_CLASSNAME = "classname";
095: public static final String CFG_PORTTYPE = "porttype";
096: public static final String CFG_SOURCEDIR = "sourcedir";
097:
098: // WSDL2Service Constants
099: public static final String CFG_ADDRESS = "address";
100: public static final String CFG_TRANSPORT = "transport";
101: public static final String CFG_SERVICE = "service";
102: public static final String CFG_BINDING_ATTR = "attrbinding";
103: public static final String CFG_SOAP12 = "soap12";
104:
105: // WSDL2Soap Constants
106: public static final String CFG_STYLE = "style";
107: public static final String CFG_USE = "use";
108:
109: // XSD2WSDL Constants
110: public static final String CFG_XSDURL = "xsdurl";
111: public static final String CFG_NAME = "name";
112:
113: // WsdlValidator
114: public static final String CFG_DEEP = "deep";
115: public static final String CFG_SCHEMA_DIR = "schemaDir";
116: public static final String CFG_SCHEMA_URL = "schemaURL";
117: public static final String CXF_SCHEMA_DIR = "cxf_schema_dir";
118: public static final String CXF_SCHEMAS_DIR_INJAR = "schemas/wsdl/";
119: public static final String CFG_SUPPRESS_WARNINGS = "suppressWarnings";
120:
121: // WSDL2Java Processor Constants
122: public static final String SEI_GENERATOR = "sei.generator";
123: public static final String FAULT_GENERATOR = "fault.generator";
124: public static final String TYPE_GENERATOR = "type.generator";
125: public static final String IMPL_GENERATOR = "impl.generator";
126: public static final String SVR_GENERATOR = "svr.generator";
127: public static final String CLT_GENERATOR = "clt.generator";
128: public static final String SERVICE_GENERATOR = "service.generator";
129: public static final String ANT_GENERATOR = "ant.generator";
130: public static final String HANDLER_GENERATOR = "handler.generator";
131:
132: // Binding namespace
133: public static final String NS_JAXWS_BINDINGS = "http://java.sun.com/xml/ns/jaxws";
134: public static final String NS_JAXB_BINDINGS = "http://java.sun.com/xml/ns/jaxb";
135: public static final QName JAXWS_BINDINGS = new QName(
136: NS_JAXWS_BINDINGS, "bindings");
137: public static final QName JAXB_BINDINGS = new QName(
138: NS_JAXB_BINDINGS, "bindings");
139: public static final String JAXWS_BINDINGS_WSDL_LOCATION = "wsdlLocation";
140: public static final String JAXWS_BINDING_NODE = "node";
141: public static final String JAXWS_BINDING_VERSION = "version";
142:
143: public static final String ASYNC_METHOD_SUFFIX = "Async";
144:
145: public static final String HANDLER_CHAINS_URI = "http://java.sun.com/xml/ns/javaee";
146: public static final String HANDLER_CHAIN = "handler-chain";
147: public static final String HANDLER_CHAINS = "handler-chains";
148:
149: //public static final String RAW_JAXB_MODEL = "rawjaxbmodel";
150:
151: // JMS address
152: public static final String NS_JMS_ADDRESS = "http://cxf.apache.org/transports/jms";
153: public static final QName JMS_ADDRESS = new QName(NS_JMS_ADDRESS,
154: "address");
155:
156: // JBI address
157: public static final String NS_JBI_ADDRESS = "http://cxf.apache.org/transports/jbi";
158: public static final QName JBI_ADDRESS = new QName(NS_JBI_ADDRESS,
159: "address");
160:
161: public static final String JMS_ADDR_DEST_STYLE = "destinationStyle";
162: public static final String JMS_ADDR_JNDI_URL = "jndiProviderURL";
163: public static final String JMS_ADDR_JNDI_FAC = "jndiConnectionFactoryName";
164: public static final String JMS_ADDR_JNDI_DEST = "jndiDestinationName";
165: public static final String JMS_ADDR_MSG_TYPE = "messageType";
166: public static final String JMS_ADDR_INIT_CTX = "initialContextFactory";
167: public static final String JMS_ADDR_SUBSCRIBER_NAME = "durableSubscriberName";
168: public static final String JMS_ADDR_MSGID_TO_CORRID = "useMessageIDAsCorrelationID";
169:
170: // XML Binding
171: public static final String XMLBINDING_ROOTNODE = "rootNode";
172: public static final String XMLBINDING_HTTP_LOCATION = "location";
173: public static final String NS_XML_FORMAT = "http://cxf.apache.org/bindings/xformat";
174: public static final String XML_FORMAT_PREFIX = "xformat";
175: public static final String NS_XML_HTTP = "http://schemas.xmlsoap.org/wsdl/http/";
176: public static final String XML_HTTP_PREFIX = "http";
177: public static final QName XML_HTTP_ADDRESS = new QName(NS_XML_HTTP,
178: "address");
179: public static final QName XML_FORMAT = new QName(NS_XML_FORMAT,
180: "body");
181: public static final QName XML_BINDING_FORMAT = new QName(
182: NS_XML_FORMAT, "binding");
183:
184: public static final String SCHEMA_MAP = "schemaMap";
185: public static final String PORTTYPE_MAP = "portTypeMap";
186: public static final String SCHEMA_TARGET_NAMESPACES = "schemaTargetNameSpaces";
187: public static final String WSDL_DEFINITION = "wsdlDefinition";
188: public static final String IMPORTED_DEFINITION = "importedDefinition";
189: public static final String IMPORTED_PORTTYPE = "importedPortType";
190: public static final String IMPORTED_SERVICE = "importedService";
191: public static final String BINDING_GENERATOR = "BindingGenerator";
192:
193: // Tools framework
194: public static final String FRONTEND_PLUGIN = "frontend";
195: public static final String DATABINDING_PLUGIN = "databinding";
196:
197: public static final String CFG_WSDL_VERSION = "wsdlversion";
198:
199: // Suppress the code generation, in this case you can just get the generated code model
200: public static final String CFG_SUPPRESS_GEN = "suppress";
201: public static final String DEFAULT_PACKAGE_NAME = "defaultnamespace";
202: }
|