Class TransformationSet
java.lang.Object
org.codehaus.mojo.xml.transformer.TransformationSet
An instance of this class is used to specify a set of files, which are transformed by a common XSLT stylesheet.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the attributes, which should be set on the transformer factory.getDir()
Returns a directory, which is scanned for files to transform.String[]
Returns patterns of files, which are being excluded from the transformation set.Returns the features, which should be set on the transformer factory.org.codehaus.plexus.components.io.filemappers.FileMapper[]
Returns a set of file mappers, which are being used to convert the generated files name.String[]
Returns patterns of files, which are being included into the transformation set.String[]
Returns patterns of additional files, which are being considered for the uptodate check.Returns the output directory, where the generated files are being placed.Returns the transformers output properties.Returns the stylesheet parameters.Returns the XSLT stylesheet, which is being used to control the transformation.boolean
Returns, whether the output directory is added to the classpath.boolean
Returns, whether Maven's default excludes are being ignored.boolean
Returns, whether the transformer should create validating XML parsers for reading XML documents.boolean
Returns, whether the transformer should create xinclude aware XML parsers for reading XML documents.void
setAddedToClasspath
(boolean addedToClasspath) Sets, whether the output directory is added to the classpath.void
setAttributes
(NameValuePair[] pAttributes) Sets the attributes, which should be set on the transformer factory.void
Sets the name of a directory, which is scanned for files to transform.void
setExcludes
(String[] pExcludes) Sets patterns of files, which are being excluded from the transformation set.void
setFeatures
(NameValuePair[] pFeatures) Sets the features, which should be set on the transformer factory.void
setFileMappers
(org.codehaus.plexus.components.io.filemappers.FileMapper[] pFileMappers) Sets a set of file mappers, which are being used to convert the generated files name.void
setIncludes
(String[] pIncludes) Sets patterns of files, which are being included into the transformation set.void
setOtherDepends
(String[] pOtherDepends) Sets patterns of additional files, which are being considered for the uptodate check.void
setOutputDir
(File pOutputDir) Sets the output directory, where the generated files are being placed.void
setOutputProperties
(NameValuePair[] pOutputProperties) Sets the transformers output properties.void
setParameters
(NameValuePair[] pParameters) Sets the stylesheet parameters.void
setSkipDefaultExcludes
(boolean pSkipDefaultExcludes) Sets, whether Maven's default excludes are being ignored.void
setStylesheet
(String pStylesheet) Sets the XSLT stylesheet, which is being used to control the transformation.void
setValidating
(boolean pValidating) Sets, whether the transformer should create validating XML parsers for reading XML documents.void
setXincludeAware
(boolean pXIncludeAware) Sets, whether the transformer should create xinclude aware XML parsers for reading XML documents.
-
Constructor Details
-
TransformationSet
public TransformationSet()
-
-
Method Details
-
setExcludes
Sets patterns of files, which are being excluded from the transformation set.- Parameters:
pExcludes
- Patterns of files, which are being excluded.
-
setIncludes
Sets patterns of files, which are being included into the transformation set.- Parameters:
pIncludes
- Patterns of files, which are being included.
-
setOtherDepends
Sets patterns of additional files, which are being considered for the uptodate check.- Parameters:
pOtherDepends
- Patters of other files, which are being considered for the uptodate check.
-
setParameters
Sets the stylesheet parameters.- Parameters:
pParameters
- Stylesheet parameters
-
getDir
Returns a directory, which is scanned for files to transform.- Returns:
- The base directory to scan for files to transform.
-
getExcludes
Returns patterns of files, which are being excluded from the transformation set.- Returns:
- Patterns of files, which are being excluded.
- See Also:
-
getIncludes
Returns patterns of files, which are being included into the transformation set.- Returns:
- Patterns of files, which are being included.
- See Also:
-
getOtherDepends
Returns patterns of additional files, which are being considered for the uptodate check.- Returns:
- Patters of other files, which are being considered for the uptodate check.
-
getOutputDir
Returns the output directory, where the generated files are being placed. Defaults to {project.build.directory}/generated-resources/xml/xslt.- Returns:
- Output directory for generated files.
-
getParameters
Returns the stylesheet parameters.- Returns:
- Stylesheet parameters
-
getStylesheet
Returns the XSLT stylesheet, which is being used to control the transformation.- Returns:
- The XSLT stylesheet to read.
-
isAddedToClasspath
public boolean isAddedToClasspath()Returns, whether the output directory is added to the classpath. Defaults to false.- Returns:
- True, if the
getOutputDir()
is being added to the classpath. Otherwise false.
-
isSkipDefaultExcludes
public boolean isSkipDefaultExcludes()Returns, whether Maven's default excludes are being ignored. Defaults to false (Default excludes are being used).- Returns:
- False, if default excludes are being applied. Otherwise true.
-
setAddedToClasspath
public void setAddedToClasspath(boolean addedToClasspath) Sets, whether the output directory is added to the classpath. Defaults to false.- Parameters:
addedToClasspath
- True, if thegetOutputDir()
is being added to the classpath. Otherwise false.
-
setDir
Sets the name of a directory, which is scanned for files to transform.- Parameters:
pDir
- The base directory to scan for files to transform.
-
setOutputDir
Sets the output directory, where the generated files are being placed. Defaults to {project.build.directory}/generated-resources/xml/xslt.- Parameters:
pOutputDir
- Output directory for generated files.
-
setSkipDefaultExcludes
public void setSkipDefaultExcludes(boolean pSkipDefaultExcludes) Sets, whether Maven's default excludes are being ignored. Defaults to false (Default excludes are being used).- Parameters:
pSkipDefaultExcludes
- False, if default excludes are being applied. Otherwise true.
-
setStylesheet
Sets the XSLT stylesheet, which is being used to control the transformation.- Parameters:
pStylesheet
- The XSLT stylesheet to read.
-
getFileMappers
public org.codehaus.plexus.components.io.filemappers.FileMapper[] getFileMappers()Returns a set of file mappers, which are being used to convert the generated files name.- Returns:
- The set of file mappers to use.
-
setFileMappers
public void setFileMappers(org.codehaus.plexus.components.io.filemappers.FileMapper[] pFileMappers) Sets a set of file mappers, which are being used to convert the generated files name.- Parameters:
pFileMappers
- The set of file mappers to use.
-
isValidating
public boolean isValidating()Returns, whether the transformer should create validating XML parsers for reading XML documents. The default value is false.- Returns:
- True, if the transformers parser will be validating. Otherwise false.
-
setValidating
public void setValidating(boolean pValidating) Sets, whether the transformer should create validating XML parsers for reading XML documents. The default value is false.- Parameters:
pValidating
- True, if the transformers parser will be validating. Otherwise false.
-
getOutputProperties
Returns the transformers output properties.- Returns:
- The transformers output properties.
-
setOutputProperties
Sets the transformers output properties.- Parameters:
pOutputProperties
- The transformers output properties.
-
getFeatures
Returns the features, which should be set on the transformer factory.- Returns:
- The features to set on the transformer factory.
-
setFeatures
Sets the features, which should be set on the transformer factory.- Parameters:
pFeatures
- The features to set on the transformer factory.
-
getAttributes
Returns the attributes, which should be set on the transformer factory.- Returns:
- The attributes to set on the transformer factory.
-
setAttributes
Sets the attributes, which should be set on the transformer factory.- Parameters:
pAttributes
- The attributes to set on the transformer factory.
-
isXincludeAware
public boolean isXincludeAware()Returns, whether the transformer should create xinclude aware XML parsers for reading XML documents. The default value is false.- Returns:
- True for XML parsers, that are xinclude aware. Otherwise false.
-
setXincludeAware
public void setXincludeAware(boolean pXIncludeAware) Sets, whether the transformer should create xinclude aware XML parsers for reading XML documents. The default value is false.- Parameters:
pXIncludeAware
- True for XML parsers, that are xinclude aware. Otherwise false.
-