|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.config.SearchAttribute
public class SearchAttribute
A cache search attribute. Search attributes must have a name and optionally an expression or class set (if neither is set then this implies java bean style)
| Constructor Summary | |
|---|---|
SearchAttribute()
|
|
| Method Summary | |
|---|---|
NodeElement |
asConfigElement(NodeElement parent)
Create a generated config element node for this search attribute definition |
SearchAttribute |
className(java.lang.String className)
Set the attribute extractor class name |
AttributeExtractor |
constructExtractor()
Construct the extractor for this attribute configuration |
SearchAttribute |
expression(java.lang.String expression)
Set the attribute expression |
java.lang.String |
getClassName()
Get the extractor class name |
java.lang.String |
getExpression()
Get the attribute expression |
java.lang.String |
getName()
Get the attribute name |
SearchAttribute |
name(java.lang.String name)
Set the attribute name |
SearchAttribute |
properties(java.lang.String props)
Set the extractor properties |
SearchAttribute |
propertySeparator(java.lang.String sep)
Set the extractor properties separator |
void |
setClass(java.lang.String className)
Set the extractor class for this attribute. |
void |
setExpression(java.lang.String expression)
Set the attribute expression. |
void |
setName(java.lang.String name)
Set the attribute name |
void |
setProperties(java.lang.String props)
Set the extractor properties |
void |
setPropertySeparator(java.lang.String sep)
Set the extractor properties separator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SearchAttribute()
| Method Detail |
|---|
public void setName(java.lang.String name)
name - public void setClass(java.lang.String className)
AttributeExtractor
className - public void setExpression(java.lang.String expression)
ReflectionAttributeExtractor for more information
expression - public java.lang.String getClassName()
public java.lang.String getExpression()
public java.lang.String getName()
public AttributeExtractor constructExtractor()
public SearchAttribute name(java.lang.String name)
name -
public SearchAttribute className(java.lang.String className)
className - attribute extractor class
public SearchAttribute expression(java.lang.String expression)
expression - attribute expression
public void setProperties(java.lang.String props)
props - public void setPropertySeparator(java.lang.String sep)
separator - public SearchAttribute propertySeparator(java.lang.String sep)
seperator -
public SearchAttribute properties(java.lang.String props)
props -
public NodeElement asConfigElement(NodeElement parent)
parent - the enclosing parent config element
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||