jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/wscompile/Options.java
changeset 33547 e4c76ac38b12
parent 25871 b80b84e87032
equal deleted inserted replaced
33390:d131f4b8433a 33547:e4c76ac38b12
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   174     }
   174     }
   175 
   175 
   176     public Target target = Target.V2_2;
   176     public Target target = Target.V2_2;
   177 
   177 
   178     /**
   178     /**
       
   179      * Type of input schema language. One of the {@code SCHEMA_XXX}
   179      * strictly follow the compatibility rules specified in JAXWS spec
   180      * strictly follow the compatibility rules specified in JAXWS spec
   180      */
   181      */
   181     public static final int STRICT = 1;
   182     public static final int STRICT = 1;
   182 
   183 
   183     /**
   184     /**
   186      */
   187      */
   187     public static final int EXTENSION = 2;
   188     public static final int EXTENSION = 2;
   188 
   189 
   189     /**
   190     /**
   190      * this switch determines how carefully the compiler will follow
   191      * this switch determines how carefully the compiler will follow
   191      * the compatibility rules in the spec. Either <code>STRICT</code>
   192      * the compatibility rules in the spec. Either {@code STRICT}
   192      * or <code>EXTENSION</code>.
   193      * or {@code EXTENSION}.
   193      */
   194      */
   194     public int compatibilityMode = STRICT;
   195     public int compatibilityMode = STRICT;
   195 
   196 
   196     public boolean isExtensionMode() {
   197     public boolean isExtensionMode() {
   197         return compatibilityMode == EXTENSION;
   198         return compatibilityMode == EXTENSION;
   291      * @param arg a file, could be a wsdl or xsd or a Class
   292      * @param arg a file, could be a wsdl or xsd or a Class
   292      */
   293      */
   293     protected void addFile(String arg) throws BadCommandLineException {}
   294     protected void addFile(String arg) throws BadCommandLineException {}
   294 
   295 
   295     /**
   296     /**
   296      * Parses an option <code>args[i]</code> and return
   297      * Parses an option {@code args[i]} and return
   297      * the number of tokens consumed.
   298      * the number of tokens consumed.
   298      *
   299      *
   299      * @return
   300      * @return
   300      *      0 if the argument is not understood. Returning 0
   301      *      0 if the argument is not understood. Returning 0
   301      *      will let the caller report an error.
   302      *      will let the caller report an error.