class PathElement
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PathElement.Type
Defines member path element types.
|
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
name
Stores the name of the path element.
|
private java.lang.String |
pattern
Stores if this element is a pattern.
|
private PathElement.Type |
type
Stores the path element type.
|
| Constructor and Description |
|---|
PathElement(PathElement.Type type,
java.lang.String name,
java.lang.String pattern)
Creates a new path element.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Returns the name of the path element.
|
java.lang.String |
getPattern()
Returns the pattern.
|
PathElement.Type |
getType()
Returns the type of the path element.
|
java.lang.String |
toString()
Returns a textual description of this path element (for debugging).
|
private PathElement.Type type
private java.lang.String name
private java.lang.String pattern
public PathElement(PathElement.Type type, java.lang.String name, java.lang.String pattern)
type - the type of the path elementname - the name of the elementpattern - the pattern (if available, or null)public java.lang.String getName()
public PathElement.Type getType()
public java.lang.String getPattern()
public java.lang.String toString()
toString in class java.lang.Object