|
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(String className)
Set the attribute extractor class name |
AttributeExtractor |
constructExtractor(ClassLoader loader)
Construct the extractor for this attribute configuration |
SearchAttribute |
expression(String expression)
Set the attribute expression |
String |
getClassName()
Get the extractor class name |
String |
getExpression()
Get the attribute expression |
String |
getName()
Get the attribute name |
String |
getTypeName()
|
SearchAttribute |
name(String name)
Set the attribute name |
SearchAttribute |
properties(String props)
Set the extractor properties |
SearchAttribute |
propertySeparator(String sep)
Set the extractor properties separator |
void |
setClass(String className)
Set the extractor class for this attribute. |
void |
setExpression(String expression)
Set the attribute expression. |
void |
setName(String name)
Set the attribute name |
void |
setProperties(String props)
Set the extractor properties |
void |
setPropertySeparator(String sep)
Set the extractor properties separator |
void |
setType(Class<?> type)
Set optional attribute type |
void |
setType(String type)
Set optional attribute type |
SearchAttribute |
type(Class<?> type)
Set optional attribute type |
SearchAttribute |
type(String type)
Set optional attribute type |
| 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(String name)
name - public void setClass(String className)
AttributeExtractor
className - public void setExpression(String expression)
ReflectionAttributeExtractor for more information
expression - public void setType(String type)
type - public void setType(Class<?> type)
type - public String getClassName()
public String getExpression()
public String getName()
public String getTypeName()
public AttributeExtractor constructExtractor(ClassLoader loader)
public SearchAttribute name(String name)
name -
public SearchAttribute className(String className)
className - attribute extractor class
public SearchAttribute expression(String expression)
expression - attribute expression
public SearchAttribute type(String type)
type -
public SearchAttribute type(Class<?> type)
type -
public void setProperties(String props)
props - public void setPropertySeparator(String sep)
sep - public SearchAttribute propertySeparator(String sep)
sep -
public SearchAttribute properties(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 | |||||||||