/** * Type of input schema language. One of: DTD, XMLSCHEMA, RELAXNG, * RELAXNG_COMPACT, WSDL, AUTODETECT. If unspecified, it is assumed * AUTODETECT. */ @MojoParameter(expression = "${maven.xjc2.schemaLanguage}") public String getSchemaLanguage() { return schemaLanguage; }
pd.setName(propertyName); } else { String description = parameter.description(); if (StringUtils.isEmpty(description)) { description = d.getDocComment(); String property = parameter.property(); if (!StringUtils.isEmpty(property)) { pd.setName(property); pd.setRequired(parameter.required()); pd.setEditable(!parameter.readonly()); String deprecated = parameter.deprecated(); if (!StringUtils.isEmpty(deprecated)) { pd.setDeprecated(deprecated); String alias = parameter.alias(); if (!StringUtils.isEmpty(alias)) { pd.setAlias(alias); String expression = parameter.expression(); if (StringUtils.isEmpty(expression)) { expression = null; String defaultValue = parameter.defaultValue(); if (!StringUtils.isEmpty(defaultValue)) { pd.setDefaultValue(defaultValue);
value = mojoParamAnno.defaultValue(); if (value != null && value.trim().length() == 0) { value = null;
/** * Provides the class name of the catalog resolver. * * @return Class name of the catalog resolver. */ @MojoParameter(expression = "${maven.xjc2.catalogResolver}") public String getCatalogResolver() { return catalogResolver; }
/** * A list of regular expression file search patterns to specify the schemas * to be excluded from the <code>schemaIncludes</code> list. Searching is * based from the root of schemaDirectory. * */ @MojoParameter public String[] getSchemaExcludes() { return schemaExcludes; }
/** * If 'true', the XJC binding compiler will run in the extension mode (xjc's * -extension option). Otherwise, it will run in the strict conformance * mode. */ @MojoParameter(defaultValue = "false", expression = "${maven.xjc2.extension}") public boolean getExtension() { return extension; }
/** * If 'true', Perform strict validation of the input schema (xjc's -nv * option). */ @MojoParameter(defaultValue = "true", expression = "${maven.xjc2.strict}") public boolean getStrict() { return strict; }
/** * The source directory containing *.xsd schema files. Notice that binding * files are searched by default in this deriectory. * */ @MojoParameter(defaultValue = "src/main/resources", expression = "${maven.xjc2.schemaDirectory}", required = true) public File getSchemaDirectory() { return schemaDirectory; }
/** * If 'true', the generated Java source files are set as read-only (xjc's * -readOnly option). */ @MojoParameter(defaultValue = "false", expression = "${maven.xjc2.readOnly}") public boolean getReadOnly() { return readOnly; }
/** * If 'true', no up-to-date check is performed and the XJC always * re-generates the sources. * */ @MojoParameter(defaultValue = "false", expression = "${maven.xjc2.forceRegenerate}") public boolean getForceRegenerate() { return forceRegenerate; }
/** * A list of of input files or URLs to consider during the up-to-date. By * default it always considers: 1. schema files, 2. binding files, 3. * catalog file, and 4. the pom.xml file of the project executing this * plugin. */ @MojoParameter public File[] getOtherDepends() { return otherDepends; }
@MojoParameter(expression = "${maven.xjc2.episode}", defaultValue = "true") public boolean getEpisode() { return episode; }
/** * <p> * The generated classes will all be placed under this Java package (xjc's * -p option), unless otherwise specified in the schemas. * </p> * <p> * If left unspecified, the package will be derived from the schemas only. * </p> */ @MojoParameter(expression = "${maven.xjc2.generatePackage}") public String getGeneratePackage() { return generatePackage; }
@MojoParameter public Dependency[] getEpisodes() { return episodes; }
@MojoParameter(expression = "${localRepository}", required = true) public ArtifactRepository getLocalRepository() { return localRepository; }
/** * A list of regular expression file search patterns to specify the binding * files to be excluded from the <code>bindingIncludes</code>. Searching is * based from the root of bindingDirectory. */ @MojoParameter public String[] getBindingExcludes() { return bindingExcludes; }
/** * If 'true', maven's default exludes are NOT added to all the excludes * lists. */ @MojoParameter(defaultValue = "false", expression = "${maven.xjc2.disableDefaultExcludes}") public boolean getDisableDefaultExcludes() { return disableDefaultExcludes; }
/** * Specify the catalog file to resolve external entity references (xjc's * -catalog option) </p> * <p> * Support TR9401, XCatalog, and OASIS XML Catalog format. See the * catalog-resolver sample and this article for details. * </p> */ @MojoParameter(expression = "${maven.xjc2.catalog}") public File getCatalog() { return catalog; }
/** * If 'false', the plugin will not write the generated code to disk. */ @MojoParameter(defaultValue = "true", expression = "${maven.xjc2.writeCode}") public boolean getWriteCode() { return writeCode; }
/** * Project classpath. Used internally when runing the XJC compiler. */ @MojoParameter(expression = "${project.compileClasspathElements}", required = true, readonly = true) public List getClasspathElements() { return classpathElements; }