Class FormatFileSet

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, org.apache.maven.model.InputLocationTracker

    public class FormatFileSet
    extends org.apache.maven.model.FileSet
    An extension of FileSet that adds getEncoding() and getIndentSize() fields.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      FormatFileSet()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static FormatFileSet getDefault​(java.io.File baseDir, java.lang.String encoding, int indentSize)  
      java.lang.String getEncoding()  
      int getIndentSize()  
      void setEncoding​(java.lang.String encoding)  
      void setIndentSize​(int indentSize)  
      • Methods inherited from class org.apache.maven.model.FileSet

        clone, getDirectory, setDirectory, toString
      • Methods inherited from class org.apache.maven.model.PatternSet

        addExclude, addInclude, getExcludes, getIncludes, getLocation, removeExclude, removeInclude, setExcludes, setIncludes, setLocation, setOtherLocation
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • DEFAULT_INCLUDED_EXTENSIONS

        private static final java.util.List<java.lang.String> DEFAULT_INCLUDED_EXTENSIONS
      • DEFAULT_EXCLUDES

        public static final java.util.List<java.lang.String> DEFAULT_EXCLUDES
      • encoding

        private java.lang.String encoding
        The encoding used to read the XML files.
      • indentSize

        private int indentSize
        The number of spaces expected for indentation.
    • Constructor Detail

      • FormatFileSet

        public FormatFileSet()
    • Method Detail

      • getDefault

        public static FormatFileSet getDefault​(java.io.File baseDir,
                                               java.lang.String encoding,
                                               int indentSize)
      • getIndentSize

        public int getIndentSize()
        Returns:
        the number of spaces for indentation
      • getEncoding

        public java.lang.String getEncoding()
        Returns:
        the encoding used to read the XML files
      • setEncoding

        public void setEncoding​(java.lang.String encoding)
      • setIndentSize

        public void setIndentSize​(int indentSize)