Package org.apache.torque.generator.control.existingtargetstrategy

# Klasse SkipExistingTargetFileStrategy

java.lang.Object
org.apache.torque.generator.control.existingtargetstrategy.ReplaceTargetFileStrategy
org.apache.torque.generator.control.existingtargetstrategy.SkipExistingTargetFileStrategy

Alle implementierten Schnittstellen:
  `ExistingTargetStrategy`

public class SkipExistingTargetFileStrategy extends ReplaceTargetFileStrategy
A handler which implements the strategy to skip existing target files.

Version:
  $Id: SkipExistingTargetFileStrategy.java 1917241 2024-04-21 13:29:41Z tv $

- ## Feldübersicht

  Felder
  Modifizierer und Typ
  Feld
  Beschreibung
  `static final String`
  `STRATEGY_NAME`
  The strategy name "skip".

- ## Konstruktorübersicht

  Konstruktoren
  Konstruktor
  Beschreibung
  `SkipExistingTargetFileStrategy()`

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `boolean`
  `beforeGeneration(String outputDirKey, String outputPath, Charset charSet, UnitConfiguration unitConfiguration)`
  Will be called before the generation is started and decides whether the generation process for this file should proceed.
  `String`
  `getStrategyName()`
  Returns the name of the existing target strategy.

  ### Von Klasse geerbte Methoden org.apache.torque.generator.control.existingtargetstrategy.ReplaceTargetFileStrategy

  `afterGeneration`

  ### Von Klasse geerbte Methoden java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Felddetails

  - ### STRATEGY_NAME

    public static final String STRATEGY_NAME
    The strategy name "skip".
    Siehe auch:
      - Konstantenfeldwerte

- ## Konstruktordetails

  - ### SkipExistingTargetFileStrategy

    public SkipExistingTargetFileStrategy()

- ## Methodendetails

  - ### beforeGeneration

    public boolean beforeGeneration(String outputDirKey, String outputPath, Charset charSet, UnitConfiguration unitConfiguration)
    Will be called before the generation is started and decides whether the generation process for this file should proceed.
    Angegeben von:
      `beforeGeneration` in Schnittstelle `ExistingTargetStrategy`
    Setzt außer Kraft:
      `beforeGeneration` in Klasse `ReplaceTargetFileStrategy`
    Parameter:
      `outputDirKey` - the key for the output directory into which the generated file should be written, null for the default output directory.
      `outputPath` - the path to which the output should be written, relative to the output base directory.
      `charSet` - The character encoding of the generated file, or null for the platform default encoding.
      `unitConfiguration` - the configuration of the current configuration unit, not null.
    Gibt zurück:
      true if the target file does not exist, false otherwise.

  - ### getStrategyName

    public String getStrategyName()
    Returns the name of the existing target strategy.
    Angegeben von:
      `getStrategyName` in Schnittstelle `ExistingTargetStrategy`
    Setzt außer Kraft:
      `getStrategyName` in Klasse `ReplaceTargetFileStrategy`
    Gibt zurück:
      "skip"