Package eu.simuline.m2latex.core
Enum Target
- java.lang.Object
-
- java.lang.Enum<Target>
-
- eu.simuline.m2latex.core.Target
-
- All Implemented Interfaces:
Serializable,Comparable<Target>,java.lang.constant.Constable
public enum Target extends Enum<Target>
The enumeration of all supported creational targets. Additional targets areclrandgrp. The latter is not creational. Created: Fri Oct 7 13:32:21 2016- Version:
- 1.0
- Author:
- Ernst Reissner
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Constructor Summary
Constructors Modifier Constructor Description privateTarget()
-
Method Summary
Modifier and Type Method Description abstract StringgetPatternOutputFiles(Settings settings)Returns the pattern of the output files.abstract voidprocessSource(LatexProcessor latexProcessor, File texFile)Processes the latex main filetexFiledelegating tolatexProcessor.static TargetvalueOf(String name)Returns the enum constant of this type with the specified name.static Target[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static Target[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Target valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
processSource
public abstract void processSource(LatexProcessor latexProcessor, File texFile) throws BuildFailureException
Processes the latex main filetexFiledelegating tolatexProcessor. Logging: FIXME: may be incomplete- EEX01, EEX02, EEX03, WEX04, WEX05 if running a command
to transform
texFilefailed.
- Parameters:
latexProcessor- the processor to processtexFiletexFile- the latex main file to be processed.- Throws:
BuildFailureException- TEX01 if invocation of a command to transformtexFilefailed.
- EEX01, EEX02, EEX03, WEX04, WEX05 if running a command
to transform
-
getPatternOutputFiles
public abstract String getPatternOutputFiles(Settings settings)
Returns the pattern of the output files. For example if creating pdf, this is just^T$T\.pdf$, whereT$Trepresents the name of the latex main file without suffix. For targethtml, this is much more complicated, because a lot of files are created in general, not only^T$T\.h?tml?$.- Parameters:
settings- the settings required to determine the pattern. This depends on the settings forhtmlonly.
-
-