Klasse LoadAllSourceFilesTransformer
java.lang.Object
org.apache.torque.generator.source.transform.LoadAllSourceFilesTransformer
- Alle implementierten Schnittstellen:
SourceTransformer
A SourceTransformer which loads all sources which are defined in the current
output into the source graph.
The sources are added into new created element. If such elements
already exists in the defined, generation is skipped
(preventing an infinite loop).
- Version:
- $Id: LoadAllSourceFilesTransformer.java 1917241 2024-04-21 13:29:41Z tv $
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
getAddTo()
Returns the path to the source element to where the new elements are added.Returns the name of the new element(s) into which a loaded source is added / the loaded sources are added.int
hashCode()
boolean
Returns whether all sources are be loaded into one new Element.void
Sets the path to the source element to where the new elements are added.void
setCombineSources
(boolean combineSources) Sets whether all sources are be loaded into one new Element.void
setNewElement
(String newElement) Sets the name of the new element(s) into which a loaded source is added / the loaded sources are added.transform
(Object rootObject, ControllerState controllerState) Loads the additional source into the current source graph.
-
Konstruktordetails
-
LoadAllSourceFilesTransformer
public LoadAllSourceFilesTransformer()
-
-
Methodendetails
-
transform
public Object transform(Object rootObject, ControllerState controllerState) throws SourceTransformerException Loads the additional source into the current source graph.- Angegeben von:
transform
in SchnittstelleSourceTransformer
- Parameter:
rootObject
- the root of the source graph, not null.controllerState
- the controller state, not null.- Gibt zurück:
- the transformed source root, not null.
- Löst aus:
SourceTransformerException
- if the additional source cannot be loaded or the element to add to does not exist.
-
getAddTo
Returns the path to the source element to where the new elements are added. This element must already exist.- Gibt zurück:
- the path to the anchor element.
-
setAddTo
Sets the path to the source element to where the new elements are added. This element must already exist.- Parameter:
addTo
- the path to the anchor element.
-
getNewElement
Returns the name of the new element(s) into which a loaded source is added / the loaded sources are added.- Gibt zurück:
- the name of the new element.
-
setNewElement
Sets the name of the new element(s) into which a loaded source is added / the loaded sources are added.- Parameter:
newElement
- the name of the new element.
-
isCombineSources
public boolean isCombineSources()Returns whether all sources are be loaded into one new Element. If false, a new element is created for every source.- Gibt zurück:
- whether all sources are be loaded into one new Element.
-
setCombineSources
public void setCombineSources(boolean combineSources) Sets whether all sources are be loaded into one new Element. If false, a new element is created for every source.- Parameter:
combineSources
- whether all sources are be loaded into one new Element.
-
hashCode
public int hashCode() -
equals
-