Package org.apache.torque.generator.source.transform

# Klasse CopyAttributeTransformer

java.lang.Object
org.apache.torque.generator.source.transform.SourceTargetAttributeTransformer
org.apache.torque.generator.source.transform.CopyAttributeTransformer

Alle implementierten Schnittstellen:
  `SourceTransformer`

public class CopyAttributeTransformer extends SourceTargetAttributeTransformer
Fills an attribute with the content of another attribute. It can be configured whether the target attribute is overwritten if it is not set. $Id: CopyAttributeTransformer.java 1839288 2018-08-27 09:48:33Z tv $

- ## Konstruktorübersicht

  Konstruktoren
  Konstruktor
  Beschreibung
  `CopyAttributeTransformer()`

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `SourceElement`
  `transform(Object rootObject, ControllerState controllerState)`
  Fills the target attribute according to the settings.

  ### Von Klasse geerbte Methoden org.apache.torque.generator.source.transform.SourceTargetAttributeTransformer

  `getSourceAttributeName, getTargetAttributeName, isOverwrite, setOverwrite, setSourceAttributeName, setTargetAttributeName`

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

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

- ## Konstruktordetails

  - ### CopyAttributeTransformer

    public CopyAttributeTransformer()

- ## Methodendetails

  - ### transform

    public SourceElement transform(Object rootObject, ControllerState controllerState) throws SourceTransformerException
    Fills the target attribute according to the settings.
    Angegeben von:
      `transform` in Schnittstelle `SourceTransformer`
    Angegeben von:
      `transform` in Klasse `SourceTargetAttributeTransformer`
    Parameter:
      `rootObject` - the root of the source graph, not null.
      `controllerState` - the controller state.
    Gibt zurück:
      the modified source element, not null.
    Löst aus:
      `SourceTransformerException` - if rootObject is not a SourceElement.
      `IllegalStateException` - if sourceAttributeName or targetAttributeName was not set.
    Siehe auch:
      - `SourceTransformer.transform(Object, ControllerState)`