public enum ResourceType extends Enum<ResourceType>
Java class for resource.type.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="resource.type">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="title"/>
<enumeration value="style"/>
<enumeration value="base"/>
<enumeration value="link"/>
<enumeration value="meta"/>
<enumeration value="script"/>
<enumeration value="noscript"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
BASE |
LINK |
META |
NOSCRIPT |
SCRIPT |
STYLE |
TITLE |
| Modifier and Type | Method and Description |
|---|---|
static ResourceType |
fromValue(String v) |
String |
value() |
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 TITLE
public static final ResourceType STYLE
public static final ResourceType BASE
public static final ResourceType LINK
public static final ResourceType META
public static final ResourceType SCRIPT
public static final ResourceType NOSCRIPT
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 value()
public static ResourceType fromValue(String v)
Copyright © 2012–2014 RedSoft. All rights reserved.