public class SearchAttribute
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
className |
private java.lang.String |
expression |
private java.lang.String |
name |
private java.lang.String |
properties |
private java.lang.String |
propertySeparator |
Constructor and Description |
---|
SearchAttribute() |
Modifier and Type | Method and Description |
---|---|
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
|
private java.lang.String name
private java.lang.String className
private java.lang.String expression
private java.lang.String properties
private java.lang.String propertySeparator
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 informationexpression
- 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 classpublic SearchAttribute expression(java.lang.String expression)
expression
- attribute expressionpublic void setProperties(java.lang.String props)
props
- public void setPropertySeparator(java.lang.String sep)
sep
- public SearchAttribute propertySeparator(java.lang.String sep)
sep
- public SearchAttribute properties(java.lang.String props)
props
- public NodeElement asConfigElement(NodeElement parent)
parent
- the enclosing parent config element