public enum ResourceType extends Enum<ResourceType>
Modifier and Type | Method and Description |
---|---|
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 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 String getSuffix()
public static final ResourceType parse(String type)
public final boolean matches(Resource r)
Copyright © 2015 Nuxeo SA. All rights reserved.