Package ro.sync.util.editorvars
Enum EditorVariables.FrameworkRewritePolicy
- java.lang.Object
-
- java.lang.Enum<EditorVariables.FrameworkRewritePolicy>
-
- ro.sync.util.editorvars.EditorVariables.FrameworkRewritePolicy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EditorVariables.FrameworkRewritePolicy>
- Enclosing class:
- EditorVariables
public static enum EditorVariables.FrameworkRewritePolicy extends java.lang.Enum<EditorVariables.FrameworkRewritePolicy>
Used to determine how framework variables should be expanded/rewritten.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description REWRITE_ABSOLUTE
All framework variables will be expanded to their absolute paths.REWRITE_BASE_WITH_FRAMEWORK
Variables BASE_FRAMEWORK_DIRECTORY and BASE_FRAMEWORK_DIRECTORY_URL will be expanded to FRAMEWORK_DIRECTORY and FRAMEWORK_URL if they match.REWRITE_BASE_WITH_FRAMEWORK_NAME
Variables BASE_FRAMEWORK_DIRECTORY and BASE_FRAMEWORK_DIRECTORY_URL will be expanded to FRAMEWORK_DIR_FUNCTION_VARIABLE_PREFIX and FRAMEWORK_FUNCTION_VARIABLE_PREFIX if they match.REWRITE_FRAMEWORK_WITH_BASE
Variables FRAMEWORK_DIRECTORY and FRAMEWORK_URL will be expanded to BASE_FRAMEWORK_DIRECTORY and BASE_FRAMEWORK_DIRECTORY_URL if they match.REWRITE_WITH_FRAMEWORK
Variables FRAMEWORK_DIRECTORY and FRAMEWORK_URL will not be expanded and will be used to rewrite FRAMEWORKS_DIRECTORY and FRAMEWORKS_DIRECTORY_URL if they match.REWRITE_WITH_FRAMEWORKS
Variables FRAMEWORKS_DIRECTORY and FRAMEWORKS_DIRECTORY_URL will not be expanded and will be used to rewrite FRAMEWORK_DIRECTORY and FRAMEWORK_URL if encountered and if they match.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EditorVariables.FrameworkRewritePolicy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EditorVariables.FrameworkRewritePolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REWRITE_ABSOLUTE
public static final EditorVariables.FrameworkRewritePolicy REWRITE_ABSOLUTE
All framework variables will be expanded to their absolute paths.
-
REWRITE_WITH_FRAMEWORKS
public static final EditorVariables.FrameworkRewritePolicy REWRITE_WITH_FRAMEWORKS
Variables FRAMEWORKS_DIRECTORY and FRAMEWORKS_DIRECTORY_URL will not be expanded and will be used to rewrite FRAMEWORK_DIRECTORY and FRAMEWORK_URL if encountered and if they match. If they don't match, FRAMEWORK_DIRECTORY and FRAMEWORK_URL will be expanded to their absolute paths.
-
REWRITE_WITH_FRAMEWORK
public static final EditorVariables.FrameworkRewritePolicy REWRITE_WITH_FRAMEWORK
Variables FRAMEWORK_DIRECTORY and FRAMEWORK_URL will not be expanded and will be used to rewrite FRAMEWORKS_DIRECTORY and FRAMEWORKS_DIRECTORY_URL if they match. If they don't match, FRAMEWORKS_DIRECTORY and FRAMEWORKS_DIRECTORY_URL will be expanded to their absolute path.
-
REWRITE_FRAMEWORK_WITH_BASE
public static final EditorVariables.FrameworkRewritePolicy REWRITE_FRAMEWORK_WITH_BASE
Variables FRAMEWORK_DIRECTORY and FRAMEWORK_URL will be expanded to BASE_FRAMEWORK_DIRECTORY and BASE_FRAMEWORK_DIRECTORY_URL if they match.
-
REWRITE_BASE_WITH_FRAMEWORK
public static final EditorVariables.FrameworkRewritePolicy REWRITE_BASE_WITH_FRAMEWORK
Variables BASE_FRAMEWORK_DIRECTORY and BASE_FRAMEWORK_DIRECTORY_URL will be expanded to FRAMEWORK_DIRECTORY and FRAMEWORK_URL if they match.
-
REWRITE_BASE_WITH_FRAMEWORK_NAME
public static final EditorVariables.FrameworkRewritePolicy REWRITE_BASE_WITH_FRAMEWORK_NAME
Variables BASE_FRAMEWORK_DIRECTORY and BASE_FRAMEWORK_DIRECTORY_URL will be expanded to FRAMEWORK_DIR_FUNCTION_VARIABLE_PREFIX and FRAMEWORK_FUNCTION_VARIABLE_PREFIX if they match.
-
-
Method Detail
-
values
public static EditorVariables.FrameworkRewritePolicy[] 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 (EditorVariables.FrameworkRewritePolicy c : EditorVariables.FrameworkRewritePolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EditorVariables.FrameworkRewritePolicy valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-