public class XMLBean
extends MatchingTask
Modifier and Type | Class and Description |
---|---|
class |
XMLBean.ErrorLogger |
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 |
getJavaSource() |
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.
|
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 |
setJavaSource(String javasource)
Generate java source compatible with the given version.
|
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 |
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.
|
public void execute() throws BuildException
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)
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)
novdoc
- public boolean isNoExt()
public void setJavaSource(String javasource)
public String getJavaSource()
public void setSource(String s)
public String getCatalog()
public void setCatalog(String catalog)
Copyright © 2010 - 2020 Adobe. All Rights Reserved