public static enum PathElement.Type extends java.lang.Enum<PathElement.Type>
| Enum Constant and Description |
|---|
BEHVIOUR
Denotes a behavior (method).
|
DATA
Denotes a data element (attribute).
|
MODULE
Denotes a module (class).
|
NAMESPACE
Denotes a namespace (package).
|
| Modifier and Type | Field and Description |
|---|---|
private boolean |
member
Stores whether the type denotes a class member.
|
private java.lang.String |
xmlName
Stores the name of the type in an XML file.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getXmlName()
Returns the name of this type in an XML file.
|
boolean |
isMember()
Returns whether this type denotes a member.
|
static PathElement.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PathElement.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static PathElement.Type |
xmlValueOf(java.lang.String name)
Returns the type matching (exactly) the given XML name.
|
public static final PathElement.Type NAMESPACE
public static final PathElement.Type MODULE
public static final PathElement.Type BEHVIOUR
public static final PathElement.Type DATA
private java.lang.String xmlName
private boolean member
public static PathElement.Type[] values()
for (PathElement.Type c : PathElement.Type.values()) System.out.println(c);
public static PathElement.Type 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 namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getXmlName()
public boolean isMember()
true if it denotes a member, false
elsepublic static PathElement.Type xmlValueOf(java.lang.String name)
name - the XML name to search for