|
Java APG, Version 1.0 Author Lowell D. Thomas Copyright © Coast to Coast Research, Inc. 2011 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Hostname.RuleNames>
com.coasttocoastresearch.examples.demo.Hostname.RuleNames
public static enum Hostname.RuleNames
This enum provides easy to remember enum constants for locating the rule identifiers and names. The enum constants have the same spelling as the rule names rendered in all caps with underscores replacing hyphens.
| Enum Constant Summary | |
|---|---|
ALPHA
id = 4, name = "ALPHA" |
|
ALPHANUM
id = 5, name = "alphanum" |
|
CONTEXT
id = 0, name = "context" |
|
DOMAINLABEL
id = 2, name = "domainlabel" |
|
HOSTNAME
id = 1, name = "hostname" |
|
SP
id = 6, name = "SP" |
|
TOPLABEL
id = 3, name = "toplabel" |
|
| Method Summary | |
|---|---|
int |
ruleID()
Associates the enum with an identifier for the grammar rule it represents. |
java.lang.String |
ruleName()
Associates the enum with the original grammar name of the rule it represents. |
static Hostname.RuleNames |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Hostname.RuleNames[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Hostname.RuleNames ALPHA
4, name = "ALPHA"
public static final Hostname.RuleNames ALPHANUM
5, name = "alphanum"
public static final Hostname.RuleNames CONTEXT
0, name = "context"
public static final Hostname.RuleNames DOMAINLABEL
2, name = "domainlabel"
public static final Hostname.RuleNames HOSTNAME
1, name = "hostname"
public static final Hostname.RuleNames SP
6, name = "SP"
public static final Hostname.RuleNames TOPLABEL
3, name = "toplabel"
| Method Detail |
|---|
public int ruleID()
public java.lang.String ruleName()
public static Hostname.RuleNames valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic static Hostname.RuleNames[] values()
for (Hostname.RuleNames c : Hostname.RuleNames.values()) System.out.println(c);
|
Java APG, Version 1.0 Author Lowell D. Thomas Copyright © Coast to Coast Research, Inc. 2011 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||