public class RouteChunk
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
RouteChunk(Routes routes,
RouteChunk parent,
java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
RouteChunk |
add(java.lang.String newValue)
Adds a new child to the tree.
|
void |
bind(ActionRuntime actionRuntime)
Binds chunk to an action runtime.
|
RouteChunk[] |
children()
Returns all the children or
null if no children exist. |
RouteChunk |
findOrCreateChild(java.lang.String value)
Finds existing chunk or creates a new one if does not exist.
|
java.lang.String |
get()
Returns chunks string value.
|
boolean |
hasMacrosOnPath() |
boolean |
isEndpoint()
Returns
true if this chunk is an endpoint and therefore bound to
the configuration. |
boolean |
match(java.lang.String value)
Returns
true if path chunk value matches the input. |
RouteChunk |
parent()
Returns parent chunk unless it is a root.
|
PathMacros |
pathMacros()
Returns path macros if this chunk has it, otherwise returns
null . |
java.lang.String |
toString() |
ActionRuntime |
value()
Returns associated action runtime with this chunk.
|
protected RouteChunk(Routes routes, RouteChunk parent, java.lang.String value)
public RouteChunk add(java.lang.String newValue)
public RouteChunk findOrCreateChild(java.lang.String value)
public void bind(ActionRuntime actionRuntime)
public boolean isEndpoint()
true
if this chunk is an endpoint and therefore bound to
the configuration.public ActionRuntime value()
null
if this chunk is not an endpoint.public java.lang.String get()
public RouteChunk parent()
public PathMacros pathMacros()
null
.public boolean hasMacrosOnPath()
public RouteChunk[] children()
null
if no children exist.public boolean match(java.lang.String value)
true
if path chunk value matches the input.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2003-present Jodd Team