ro.isdc.wro.model.resource.processor.support
Enum ProcessingType

java.lang.Object
  extended by java.lang.Enum<ProcessingType>
      extended by ro.isdc.wro.model.resource.processor.support.ProcessingType
All Implemented Interfaces:
Serializable, Comparable<ProcessingType>

public enum ProcessingType
extends Enum<ProcessingType>

A type of processing to apply during preProcessor execution.

Since:
1.6.0
Author:
Alex Objelean

Enum Constant Summary
ALL
          Applies all eligible processors.
IMPORT_ONLY
          Applies only processors which are interested of being applied for imported resources (ex: using @import directive for css).
 
Method Summary
static ProcessingType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ProcessingType[] 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

ALL

public static final ProcessingType ALL
Applies all eligible processors.


IMPORT_ONLY

public static final ProcessingType IMPORT_ONLY
Applies only processors which are interested of being applied for imported resources (ex: using @import directive for css). This is necessary to fix the problem of LessCss processor (or similar) when using as preProcessor.

Method Detail

values

public static ProcessingType[] 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 (ProcessingType c : ProcessingType.values())
    System.out.println(c);

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

valueOf

public static ProcessingType 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


Copyright © 2008-2013. All Rights Reserved.