com.dfamaj.textproc.xwm.primitives
Class IfvoidPrimitive

java.lang.Object
  extended by com.dfamaj.textproc.xwm.XwmMacroDefinition
      extended by com.dfamaj.textproc.xwm.primitives.XwmPrimitive
          extended by com.dfamaj.textproc.xwm.primitives.IfvoidPrimitive
All Implemented Interfaces:
ThreadUnsafe, java.io.Serializable

public final class IfvoidPrimitive
extends XwmPrimitive
implements java.io.Serializable

la primitive "\ifvoid"

Since:
2.0
Version:
2.0 -- 2007-02-04 -- $Revision$
Author:
David Andriana
See Also:
Serialized Form

Method Summary
static XwmPrimitive getInstance()
          
renvoie une instance de la primitive.
protected  Tokenizer handleAction(java.lang.String primitive, XwmEngine engine, boolean condition)
          
lit l'action à effectuer, et la rajoute au moteur si la condition logique est vraie (true").
 Tokenizer handlePrimitive(java.lang.String primitive, XwmEngine engine)
          
traite la primitive "\ifvoid".
static boolean isPrimitive(XwmMacroDefinition macroDefinition)
          
renvoie true si la macro passée en paramètre est la primitive "\ifvoid".
 
Methods inherited from class com.dfamaj.textproc.xwm.XwmMacroDefinition
addParam, addParamOutput, addTokenOutput, getOutputTokens, getParamCount, getParamIndex, getParamName, getParamSeparator, setParamSeparator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static XwmPrimitive getInstance()
renvoie une instance de la primitive.


handlePrimitive

public Tokenizer handlePrimitive(java.lang.String primitive,
                                 XwmEngine engine)
                          throws java.io.IOException,
                                 XwmEngineException
traite la primitive "\ifvoid".

Specified by:
handlePrimitive in class XwmPrimitive
Throws:
java.io.IOException
XwmEngineException

isPrimitive

public static boolean isPrimitive(XwmMacroDefinition macroDefinition)
renvoie true si la macro passée en paramètre est la primitive "\ifvoid".


handleAction

protected final Tokenizer handleAction(java.lang.String primitive,
                                       XwmEngine engine,
                                       boolean condition)
                                throws java.io.IOException
lit l'action à effectuer, et la rajoute au moteur si la condition logique est vraie (true").

Throws:
java.io.IOException