|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task org.apache.tools.ant.taskdefs.MatchingTask org.apache.xmlbeans.impl.tool.XMLBean
public class XMLBean
Modeled after Ant's javac and zip tasks. 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.
Nested Class Summary | |
---|---|
class |
XMLBean.ErrorLogger
|
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
---|
fileset |
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
XMLBean()
|
Method Summary | |
---|---|
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()
|
java.lang.String |
getCatalog()
Gets the XML Catalog file for org.apache.xml.resolver.tools.CatalogResolver. |
java.io.File |
getClassgendir()
|
Path |
getClasspath()
|
java.lang.String |
getDebugLevel()
Get the value of debugLevel. |
java.io.File |
getDestfile()
|
java.lang.String |
getExecutable()
|
java.lang.String |
getIgnoreDuplicatesInNamespaces()
|
java.lang.String |
getJavaSource()
|
java.lang.String |
getMemoryInitialSize()
Set the initial memory size of the underlying javac process. |
java.lang.String |
getMemoryMaximumSize()
Set the maximum memory size of the underlying javac process. |
boolean |
getOptimize()
Gets the optimize flag. |
java.io.File |
getSchema()
|
java.io.File |
getSrcgendir()
|
java.lang.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(java.lang.String catalog)
Sets the XML Catalog file for org.apache.xml.resolver.tools.CatalogResolver. |
void |
setClassgendir(java.io.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(java.lang.String compiler)
Choose the implementation for this particular task. |
void |
setDebug(boolean debug)
Generate debugging symbols. |
void |
setDebugLevel(java.lang.String v)
Keyword list to be appended to the -g command-line switch. |
void |
setDestfile(java.io.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(java.lang.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(java.lang.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(java.lang.String javasource)
Generate java source compatible with the given version. |
void |
setMemoryInitialSize(java.lang.String memoryInitialSize)
|
void |
setMemoryMaximumSize(java.lang.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(java.io.File schema)
A file that points to either an individual schema file or a directory of files. |
void |
setSource(java.lang.String s)
|
void |
setSrcgendir(java.io.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(java.lang.String typesystemname)
The name of the package that the TypeSystemHolder class should be generated in. |
void |
setVerbose(boolean verbose)
Controls the amount of output. |
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
---|
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 |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLBean()
Method Detail |
---|
public void execute() throws BuildException
execute
in class Task
BuildException
public void addFileset(FileSet fileset)
public java.io.File getSchema()
public void setSchema(java.io.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 java.io.File getDestfile()
public void setDestfile(java.io.File destfile)
destfile
- Optional.public java.io.File getSrcgendir()
public void setSrcgendir(java.io.File srcgendir)
srcgendir
- Optional.public java.io.File getClassgendir()
public void setClassgendir(java.io.File classgendir)
classgendir
- Optional.public void setCompiler(java.lang.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 java.lang.String getDebugLevel()
public void setDebugLevel(java.lang.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(java.lang.String forkExec)
Ignored unless fork is true or extJavac has been specified as the compiler.
public java.lang.String getExecutable()
public boolean isSrconly()
public void setSrconly(boolean srconly)
srconly
- Optional.public java.lang.String getTypesystemname()
public Extension createExtension()
public void setIgnoreDuplicatesInNamespaces(java.lang.String namespaces)
public java.lang.String getIgnoreDuplicatesInNamespaces()
public void setTypesystemname(java.lang.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 java.lang.String getMemoryInitialSize()
public void setMemoryInitialSize(java.lang.String memoryInitialSize)
public java.lang.String getMemoryMaximumSize()
public void setMemoryMaximumSize(java.lang.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(java.lang.String javasource)
public java.lang.String getJavaSource()
public void setSource(java.lang.String s)
public java.lang.String getCatalog()
public void setCatalog(java.lang.String catalog)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |