com.sun.tools.xjc.maven2
Class XJC2TaskAdapter

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by com.sun.tools.xjc.XJC2Task
              extended by com.sun.tools.xjc.maven2.XJC2TaskAdapter
All Implemented Interfaces:
java.lang.Cloneable

public class XJC2TaskAdapter
extends com.sun.tools.xjc.XJC2Task

Inherit all the Ant XJC2Task behaviour and compensate for the missing Ant project and Maven logging facility.


Field Summary
 
Fields inherited from class com.sun.tools.xjc.XJC2Task
options
 
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
XJC2TaskAdapter(org.apache.maven.plugin.logging.Log log)
          Constructor
 
Method Summary
 void log(java.lang.String message, int logType)
          Overloaded to route logging mesages from XJC2Task to the Maven logger.
 void setStrict(boolean strict)
          Perform strict validation of the input schema.
 
Methods inherited from class com.sun.tools.xjc.XJC2Task
addConfiguredBinding, addConfiguredDepends, addConfiguredProduces, addConfiguredSchema, addConfiguredXMLCatalog, createArg, createClasspath, execute, setBinding, setCatalog, setClasspath, setClasspathRef, setDestdir, setExtension, setFailonerror, setHeader, setLanguage, setPackage, setReadonly, setRemoveOldOutput, setSchema, setStackSize, setTarget, setXexplicitAnnotation
 
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, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XJC2TaskAdapter

public XJC2TaskAdapter(org.apache.maven.plugin.logging.Log log)
Constructor

Parameters:
log - The logging system to use.
Method Detail

log

public void log(java.lang.String message,
                int logType)
Overloaded to route logging mesages from XJC2Task to the Maven logger.

Overrides:
log in class org.apache.tools.ant.Task
Parameters:
message - message to log.
logType - message log level.

setStrict

public void setStrict(boolean strict)
Perform strict validation of the input schema.

Parameters:
strict - true to perform validation of the input schemas.


Copyright © 2006-2009 java.net. All Rights Reserved.