public class XMLBean extends MatchingTask
Schema files to process, or directories of schema files, are set with the 'schema' attribute, and can be filtered with 'includes' and 'excludes'. Alternatively, one or more nested <fileset> elements can specify the files and directories to be used to generate this XMLBean. The include set can also define .java files that should be built as well. See the FileSet documentation at http://jakarta.apache.org/ant/manual/index.html for instructions on FileSets if you are unfamiliar with their usage.
Modifier and Type | Class and Description |
---|---|
class |
XMLBean.ErrorLogger |
fileset
description, location, project
Constructor and Description |
---|
XMLBean() |
Modifier and Type | Method and Description |
---|---|
void |
addFileset(FileSet fileset) |
Path |
createClasspath()
Adds a path to the classpath.
|
Extension |
createExtension()
One or more SchemaCompiler extensions can be passed in via the <extension> subelement.
|
void |
execute() |
String |
getCatalog()
Gets the XML Catalog file for org.apache.xml.resolver.tools.CatalogResolver.
|
File |
getClassgendir() |
Path |
getClasspath() |
String |
getDebugLevel()
Get the value of debugLevel.
|
File |
getDestfile() |
String |
getExecutable() |
String |
getIgnoreDuplicatesInNamespaces() |
String |
getMemoryInitialSize()
Set the initial memory size of the underlying javac process.
|
String |
getMemoryMaximumSize()
Set the maximum memory size of the underlying javac process.
|
boolean |
getOptimize()
Gets the optimize flag.
|
String |
getRepackage() |
File |
getSchema() |
File |
getSrcgendir() |
String |
getTypesystemname() |
boolean |
isDebug() |
boolean |
isDownload() |
boolean |
isFailonerror() |
boolean |
isIncludeAntRuntime() |
boolean |
isIncludeJavaRuntime() |
boolean |
isNoAnnotations() |
boolean |
isNoExt() |
boolean |
isNoPvr() |
boolean |
isNoSrcRegen() |
boolean |
isNoUpa() |
boolean |
isNoValidateDoc() |
boolean |
isNowarn() |
boolean |
isQuiet() |
boolean |
isSrconly() |
boolean |
isVerbose() |
void |
setCatalog(String catalog)
Sets the XML Catalog file for org.apache.xml.resolver.tools.CatalogResolver.
|
void |
setClassgendir(File classgendir)
Set a location to generate .class files into.
|
void |
setClasspath(Path classpath)
The classpath to use if schemas in the fileset import definitions that are
supplied by other compiled xml beans JAR files, or if .java files are in the
schema fileset.
|
void |
setClasspathRef(Reference classpathref)
Adds a reference to a classpath defined elsewhere.
|
void |
setCompiler(String compiler)
Choose the implementation for this particular task.
|
void |
setDebug(boolean debug)
Generate debugging symbols.
|
void |
setDebugLevel(String v)
Keyword list to be appended to the -g command-line switch.
|
void |
setDestfile(File destfile)
Define the name of the jar file created.
|
void |
setDownload(boolean download)
Set to true to permit the compiler to download URLs for imports
and includes.
|
void |
setExecutable(String forkExec)
Sets the the name of the javac executable.
|
void |
setFailonerror(boolean failonerror)
Determines whether or not the ant target will continue if the XMLBean
creation encounters a build error.
|
void |
setFork(boolean f)
If true, forks the javac compiler.
|
void |
setIgnoreDuplicatesInNamespaces(String namespaces)
One or more namespaces in which duplicate definitions are to be ignored
can be passed in via the <ignoreDuplicatesInNamespaces> subelement.
|
void |
setIncludeAntRuntime(boolean includeAntRuntime) |
void |
setIncludeJavaRuntime(boolean includeJavaRuntime) |
void |
setMemoryInitialSize(String memoryInitialSize) |
void |
setMemoryMaximumSize(String memoryMaximumSize) |
void |
setNoAnnotations(boolean noann)
Skip over schema <annotation%gt; elements.
|
void |
setNoExt(boolean noext)
Ignore extensions found in .xsdconfig files
|
void |
setNoPvr(boolean nopvr)
Do not enforce the particle valid (restriction) rule.
|
void |
setNoSrcRegen(boolean noSrcRegen) |
void |
setNoUpa(boolean noupa)
Do not enforce the unique particle attribution rule.
|
void |
setNoValidateDoc(boolean novdoc)
Do not validate the contents of schema <documentation> elements.
|
void |
setNowarn(boolean nowarn) |
void |
setOptimize(boolean optimize)
If true, compiles with optimization enabled.
|
void |
setQuiet(boolean quiet)
Controls the amount of output.
|
void |
setRepackage(String repackage) |
void |
setSchema(File schema)
A file that points to either an individual schema file or a directory of files.
|
void |
setSource(String s) |
void |
setSrcgendir(File srcgendir)
Set a location to generate .java files into.
|
void |
setSrconly(boolean srconly)
A value of true means that only source will be generated.
|
void |
setTypesystemname(String typesystemname)
The name of the package that the TypeSystemHolder class should be
generated in.
|
void |
setVerbose(boolean verbose)
Controls the amount of output.
|
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
clone, getDescription, getLocation, getProject, setDescription, setLocation
public void execute() throws BuildException
execute
in class Task
BuildException
public void addFileset(FileSet fileset)
public File getSchema()
public void setSchema(File schema)
schema
- Required, unless a fileset element is nested.public void setClasspath(Path classpath)
classpath
- Optional.public Path createClasspath()
public void setClasspathRef(Reference classpathref)
classpathref
- Optional.public Path getClasspath()
public File getDestfile()
public void setDestfile(File destfile)
destfile
- Optional.public File getSrcgendir()
public void setSrcgendir(File srcgendir)
srcgendir
- Optional.public File getClassgendir()
public void setClassgendir(File classgendir)
classgendir
- Optional.public void setCompiler(String compiler)
public boolean isDownload()
public void setDownload(boolean download)
download
- Optional.public void setOptimize(boolean optimize)
public boolean getOptimize()
public boolean isVerbose()
public void setVerbose(boolean verbose)
verbose
- Optional.public boolean isQuiet()
public void setQuiet(boolean quiet)
quiet
- Optional.public boolean isDebug()
public String getDebugLevel()
public void setDebugLevel(String v)
This will be ignored by all implementations except modern and classic(ver >= 1.2). Legal values are none or a comma-separated list of the following keywords: lines, vars, and source. If debuglevel is not specified, by default, :none will be appended to -g. If debug is not turned on, this attribute will be ignored.
v
- Value to assign to debugLevel.public void setDebug(boolean debug)
debug
- Optional.public void setFork(boolean f)
f
- "true|false|on|off|yes|no"public void setExecutable(String forkExec)
Ignored unless fork is true or extJavac has been specified as the compiler.
public String getExecutable()
public boolean isSrconly()
public void setSrconly(boolean srconly)
srconly
- Optional.public String getTypesystemname()
public Extension createExtension()
public void setIgnoreDuplicatesInNamespaces(String namespaces)
public String getIgnoreDuplicatesInNamespaces()
public void setTypesystemname(String typesystemname)
typesystemname
- Optional.public boolean isFailonerror()
public void setFailonerror(boolean failonerror)
failonerror
- Optional.public boolean isIncludeAntRuntime()
public void setIncludeAntRuntime(boolean includeAntRuntime)
public boolean isIncludeJavaRuntime()
public void setIncludeJavaRuntime(boolean includeJavaRuntime)
public boolean isNowarn()
public void setNowarn(boolean nowarn)
public boolean isNoSrcRegen()
public void setNoSrcRegen(boolean noSrcRegen)
public String getMemoryInitialSize()
public void setMemoryInitialSize(String memoryInitialSize)
public String getMemoryMaximumSize()
public void setMemoryMaximumSize(String memoryMaximumSize)
public void setNoUpa(boolean noupa)
public boolean isNoUpa()
public void setNoPvr(boolean nopvr)
public boolean isNoPvr()
public void setNoAnnotations(boolean noann)
public boolean isNoAnnotations()
public void setNoValidateDoc(boolean novdoc)
public boolean isNoValidateDoc()
public void setNoExt(boolean noext)
noext
- Ignore extensionspublic boolean isNoExt()
public void setSource(String s)
public String getCatalog()
public void setCatalog(String catalog)
public String getRepackage()
public void setRepackage(String repackage)