|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry5.services.pageload.ComponentResourceSelector
public final class ComponentResourceSelector
Encapsulates the information that is used when locating a template or message catalog associated with a component.
The selector is combined with the component class name to locate the other resources. The selector defines one or
more axes that are combined with a ComponentResourceLocator implementation to enforce a naming
convention for locating resources. The primary axis is Locale (Tapestry 5.2 and earlier used a Locale
instance as the selector), but Tapestry 5.3 adds support for additional axes.
| Field Summary | |
|---|---|
Locale |
locale
|
| Constructor Summary | |
|---|---|
ComponentResourceSelector(Locale locale)
|
|
| Method Summary | ||
|---|---|---|
boolean |
equals(Object obj)
Returns true if the object is another selector with the same locale and set of axis. |
|
|
getAxis(Class<T> axisType)
Returns a previously stored axis value, or null if no axis value of the specified type has been stored. |
|
int |
hashCode()
|
|
String |
toShortString()
Returns a string identifying the locale, and any additional axis types and values. |
|
String |
toString()
|
|
|
withAxis(Class<T> axisType,
T axisValue)
Returns a new selector with the given axis data. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final Locale locale
| Constructor Detail |
|---|
public ComponentResourceSelector(Locale locale)
| Method Detail |
|---|
public <T> ComponentResourceSelector withAxis(Class<T> axisType,
T axisValue)
equals() and hashCode().
axisType - non-blank axis keyaxisValue - non-null axis value
public <T> T getAxis(Class<T> axisType)
T - axisType -
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic String toShortString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||