public enum ResourceType extends Enum<ResourceType>
Enum Constant and Description |
---|
any |
bundle |
css |
html |
js |
jsfcss |
jsfjs |
unknown |
xhtml |
xhtmlfirst |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(String type) |
String |
getSuffix() |
boolean |
matches(Resource r) |
static boolean |
matches(String type,
Resource r) |
static ResourceType |
parse(String type) |
static ResourceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResourceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResourceType any
public static final ResourceType unknown
public static final ResourceType css
public static final ResourceType js
public static final ResourceType bundle
public static final ResourceType html
public static final ResourceType jsfjs
public static final ResourceType jsfcss
public static final ResourceType xhtml
public static final ResourceType xhtmlfirst
public static ResourceType[] values()
for (ResourceType c : ResourceType.values()) System.out.println(c);
public static ResourceType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static final ResourceType parse(String type)
Copyright © 2015 Nuxeo SA. All rights reserved.