ro.isdc.wro.extensions.support.lint
Enum ReportXmlFormatter.FormatterType

java.lang.Object
  extended by java.lang.Enum<ReportXmlFormatter.FormatterType>
      extended by ro.isdc.wro.extensions.support.lint.ReportXmlFormatter.FormatterType
All Implemented Interfaces:
Serializable, Comparable<ReportXmlFormatter.FormatterType>
Enclosing class:
ReportXmlFormatter

public static enum ReportXmlFormatter.FormatterType
extends Enum<ReportXmlFormatter.FormatterType>


Enum Constant Summary
CHECKSTYLE
           
CSSLINT
           
JSLINT
           
LINT
           
 
Method Summary
static ReportXmlFormatter.FormatterType getByFormat(String format)
           
 String getFormat()
           
static String getSupportedFormatsAsCSV()
           
static ReportXmlFormatter.FormatterType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ReportXmlFormatter.FormatterType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LINT

public static final ReportXmlFormatter.FormatterType LINT

CHECKSTYLE

public static final ReportXmlFormatter.FormatterType CHECKSTYLE

CSSLINT

public static final ReportXmlFormatter.FormatterType CSSLINT

JSLINT

public static final ReportXmlFormatter.FormatterType JSLINT
Method Detail

values

public static ReportXmlFormatter.FormatterType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ReportXmlFormatter.FormatterType c : ReportXmlFormatter.FormatterType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ReportXmlFormatter.FormatterType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getByFormat

public static ReportXmlFormatter.FormatterType getByFormat(String format)
Parameters:
format - of the ReportXmlFormatter.FormatterType to return.
Returns:
the ReportXmlFormatter.FormatterType of searched format type or null if such format does not exist.

getSupportedFormatsAsCSV

public static String getSupportedFormatsAsCSV()
Returns:
supported formats as CSV.

getFormat

public String getFormat()
Returns:
string representation of the format.


Copyright © 2008-2013. All Rights Reserved.