public class LoadAdditionalSourceTransformer extends Object implements SourceTransformer
Constructor and Description |
---|
LoadAdditionalSourceTransformer() |
Modifier and Type | Method and Description |
---|---|
String |
getElement()
Returns the path to the source element to which the additional sources
should be added.
|
List<String> |
getFileExcludes()
Returns the file patterns to exclude from the sources to read.
|
List<String> |
getFileIncludes()
Returns the file patterns to include to the sources to read.
|
String |
getSourceFormat()
Returns the key of the format of the source file(s).
|
void |
setElement(String element)
Sets the path to the source element to which the additional sources
should be added.
|
void |
setFileExcludes(List<String> fileExcludes)
Sets the file patterns to exclude from the sources to read.
|
void |
setFileIncludes(List<String> fileIncludes)
Sets the file patterns to include to the sources to read.
|
void |
setSourceFormat(String sourceFormat)
Sets the key of the source format of the source file(s).
|
SourceElement |
transform(Object rootObject,
ControllerState controllerState)
Loads the additional source into the current source graph.
|
public SourceElement transform(Object rootObject, ControllerState controllerState) throws SourceTransformerException
transform
in interface SourceTransformer
rootObject
- the root of the source graph, not null.controllerState
- the controller state, not null.SourceTransformerException
- if the additional source
cannot be loaded or the element to add to does not exist.public String getElement()
public void setElement(String element)
element
- the path to the anchor element.public List<String> getFileIncludes()
public void setFileIncludes(List<String> fileIncludes)
fileIncludes
- the file patterns to include.public List<String> getFileExcludes()
public void setFileExcludes(List<String> fileExcludes)
fileExcludes
- the file patterns to exclude.public String getSourceFormat()
public void setSourceFormat(String sourceFormat)
sourceFormat
- the key for the source format.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.