public class XjcTask
extends org.apache.tools.ant.Task
| Modifier and Type | Class and Description |
|---|---|
static class |
XjcTask.Binding |
static class |
XjcTask.Schema |
| Constructor and Description |
|---|
XjcTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfiguredBinding(XjcTask.Binding binding)
Add the nested
binding element. |
void |
addConfiguredSchema(XjcTask.Schema schema)
Add the nested
schema element. |
void |
execute()
Executes the task.
|
void |
setCatalog(String value)
Specifies catalog files to resolve external entity references.
|
void |
setClasspath(org.apache.tools.ant.types.Path path)
Specifies where to find user class files.
|
void |
setClasspathRef(org.apache.tools.ant.types.Reference ref)
Specifies where to find user class files as reference to a path.
|
void |
setContentForWildcard(boolean value)
Specifies whether generate content property for types with multiple
xs:any derived elements. |
void |
setDestdir(String value)
Specifies the directory where the generated files will go.
|
void |
setDisableXmlSecurity(boolean value)
Specifies whether the XML security features when parsing XML documents
will be disabled.
|
void |
setEnableIntrospection(boolean value)
Specifies whether correct generation of Boolean getters/setters
to enable Bean Introspection apis will be enabled.
|
void |
setEncoding(String value)
Specifies character encoding for generated source files.
|
void |
setExtension(boolean value) |
void |
setFailOnError(boolean value)
Specifies whether compilation errors will fail the build.
|
void |
setFormat(String value)
Specifies the format of the schema.
|
void |
setHttpProxy(String value)
Specifies HTTP/HTTPS proxy.
|
void |
setHttpProxyFile(String value)
Specifies HTTP/HTTPS proxy in a file to protect password.
|
void |
setMarkGenerated(boolean value)
Specifies whether the generated code will be marked as
@Generated. |
void |
setNoHeader(boolean value)
Specifies whether the generation of a file header with timestamp will
be supressed.
|
void |
setNoValidate(boolean value)
Specifies whether strict validation of the input schema(s) will be
supressed.
|
void |
setPackage(String value)
Specifies the target package.
|
void |
setQuiet(boolean value)
Specifies whether the XJC output will be supressed.
|
void |
setReadonly(boolean value)
Specifies whether generated files will be in read-only mode.
|
void |
setRemoveOldInput(String value) |
void |
setSchema(String value) |
void |
setTarget(String value)
Specifies whether XJC will behave like XJC 2.0 or 2.1 and generate code
that doesn’t use any 2.2 features.
|
void |
setVerbose(boolean value)
Specifies whether the XJC output will be extra verbose.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, init, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildException - if there is an execution
problem.public void setDestdir(String value)
value - the name of the directory.public void setSchema(String value)
public void setClasspath(org.apache.tools.ant.types.Path path)
path - the classpath.public void setClasspathRef(org.apache.tools.ant.types.Reference ref)
ref - the reference.public void setPackage(String value)
value - the name of the target package.public void setTarget(String value)
"2.0" or
"2.1".value - the target version.public void setReadonly(boolean value)
value - a Boolean value.public void setVerbose(boolean value)
value - a Boolean value.public void setQuiet(boolean value)
value - a Boolean value.public void setEnableIntrospection(boolean value)
value - a Boolean value.public void setContentForWildcard(boolean value)
xs:any derived elements.value - a Boolean value.public void setDisableXmlSecurity(boolean value)
value - a Boolean value.public void setNoValidate(boolean value)
value - a Boolean value.public void setNoHeader(boolean value)
value - a Boolean value.public void setFormat(String value)
"xmlschema", "relaxng", "relaxng-compact", "dtd", "wsdl".value - the name of the format.public void setExtension(boolean value)
public void setFailOnError(boolean value)
value - a Boolean value.public void setMarkGenerated(boolean value)
@Generated.value - a Boolean value.public void setCatalog(String value)
value - the name of the catalog file.public void setHttpProxy(String value)
[user[:password]@]proxyHost:proxyPort.value - the HTTP/HTTPS proxy.public void setHttpProxyFile(String value)
value - the HTTP/HTTPS proxy.setHttpProxy(String)public void setEncoding(String value)
value - the character encoding.public void setRemoveOldInput(String value)
public void addConfiguredSchema(XjcTask.Schema schema)
schema element.schema - the schema element.public void addConfiguredBinding(XjcTask.Binding binding)
binding element.binding - the binding element.