org.codehaus.mojo.idlj
Class AbstractTranslator

java.lang.Object
  extended by org.codehaus.mojo.idlj.AbstractTranslator
All Implemented Interfaces:
CompilerTranslator
Direct Known Subclasses:
IdljTranslator, JacorbTranslator

public abstract class AbstractTranslator
extends Object
implements CompilerTranslator

Shared capabilities for translators.

Version:
$Id: AbstractIDLJMojo.java 9189 2009-03-10 21:47:46Z aheritier $
Author:
Arnaud Heritier

Constructor Summary
AbstractTranslator()
           
 
Method Summary
 org.apache.maven.plugin.logging.Log getLog()
           
 boolean isDebug()
           
 boolean isFailOnError()
           
 void setDebug(boolean debug)
          Enable/disable debug messages.
 void setFailOnError(boolean failOnError)
          Set to true to fail the build if an error occur while compiling the IDL.
 void setLog(org.apache.maven.plugin.logging.Log log)
          The Log that will used for the messages
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.mojo.idlj.CompilerTranslator
invokeCompiler
 

Constructor Detail

AbstractTranslator

public AbstractTranslator()
Method Detail

isDebug

public boolean isDebug()
Returns:
the debug

setDebug

public void setDebug(boolean debug)
Description copied from interface: CompilerTranslator
Enable/disable debug messages.

Specified by:
setDebug in interface CompilerTranslator
Parameters:
debug - the debug to set

getLog

public org.apache.maven.plugin.logging.Log getLog()
Returns:
the log

setLog

public void setLog(org.apache.maven.plugin.logging.Log log)
Description copied from interface: CompilerTranslator
The Log that will used for the messages

Specified by:
setLog in interface CompilerTranslator
Parameters:
log - the log to set

isFailOnError

public boolean isFailOnError()
Returns:
the failOnError

setFailOnError

public void setFailOnError(boolean failOnError)
Description copied from interface: CompilerTranslator
Set to true to fail the build if an error occur while compiling the IDL.

Specified by:
setFailOnError in interface CompilerTranslator
Parameters:
failOnError - the failOnError to set


Copyright © 2005-2011 Codehaus. All Rights Reserved.