Class FormatterProfileReader
- java.lang.Object
-
- org.jboss.forge.roaster.model.util.FormatterProfileReader
-
public class FormatterProfileReader extends java.lang.ObjectReads Formatter profiles- Author:
- George Gastaldi
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FormatterProfileReaderfromEclipseXml(java.io.InputStream inputStream)Creates a newFormatterProfileReaderinstance.java.util.PropertiesgetDefaultProperties()Get the default settings.java.util.Set<java.lang.String>getProfileNames()Returns the profile names in thisFormatterProfileReader.java.util.PropertiesgetPropertiesFor(java.lang.String formatterName)Returns thePropertiesrelated to the formatter name.
-
-
-
Method Detail
-
fromEclipseXml
public static FormatterProfileReader fromEclipseXml(java.io.InputStream inputStream) throws java.io.IOException
Creates a newFormatterProfileReaderinstance.- Parameters:
inputStream- a XML with the Eclipse Formatter format- Returns:
- a new generated FormatterProfileReader
- Throws:
java.io.IOException- if the reading fails because of an IO eventjava.lang.IllegalStateException- if the reading fails because of an internal error
-
getDefaultProperties
public java.util.Properties getDefaultProperties()
Get the default settings.- Returns:
- the default settings for
FormatterProfileReader
-
getPropertiesFor
public java.util.Properties getPropertiesFor(java.lang.String formatterName)
Returns thePropertiesrelated to the formatter name.- Parameters:
formatterName- the formatter name- Returns:
- the properties related to the given formatter name
-
getProfileNames
public java.util.Set<java.lang.String> getProfileNames()
Returns the profile names in thisFormatterProfileReader.- Returns:
- the profiler names
-
-