public final class ComponentResourceSelector extends java.lang.Object
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.| Modifier and Type | Field and Description |
|---|---|
java.util.Locale |
locale |
| Constructor and Description |
|---|
ComponentResourceSelector(java.util.Locale locale) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Returns true if the object is another selector with the same locale and set of axis.
|
<T> T |
getAxis(java.lang.Class<T> axisType)
Returns a previously stored axis value, or null if no axis value of the specified type has been stored.
|
int |
hashCode() |
java.lang.String |
toShortString()
Returns a string identifying the locale, and any additional axis types and values.
|
java.lang.String |
toString() |
<T> ComponentResourceSelector |
withAxis(java.lang.Class<T> axisType,
T axisValue)
Returns a new selector with the given axis data.
|
public final java.util.Locale locale
public ComponentResourceSelector(java.util.Locale locale)
public <T> ComponentResourceSelector withAxis(java.lang.Class<T> axisType, T axisValue)
equals() and hashCode().axisType - non-blank axis keyaxisValue - non-null axis valuepublic <T> T getAxis(java.lang.Class<T> axisType)
T - axisType - public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toShortString()
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.