Class SolrjFieldInfoNature
java.lang.Object
org.castor.core.nature.BaseNature
org.exolab.castor.builder.info.nature.SolrjFieldInfoNature
- Since:
- 1.3.3
- Author:
- Werner Guttmann
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the solrj field name.getId()Returns the fully qualified class name of the nature.booleanReturns true if the solrj annotation is of type @Id.voidsetFieldName(String fieldName) Sets the solrj field name.voidsetIdDefinition(boolean idDefinition) Sets whether or not the annotated solrj field is of type @Id.Methods inherited from class BaseNature
getBooleanPropertyDefaultFalse, getHolder, getProperty, getPropertyAsList, getPropertyAsMap, setPropertyModifier and TypeMethodDescriptionprotected final booleangetBooleanPropertyDefaultFalse(String propertyName) Returns boolean value of the property or false if property value is null.protected final PropertyHolderReturns thePropertyHolder.protected final ObjectgetProperty(String key) Returns the property mapped to the key or null if not set before.protected ListgetPropertyAsList(String property) Returns value of the property as a List.protected MapgetPropertyAsMap(String property) Returns value of the property as a List.protected final voidsetProperty(String key, Object property) Sets the property for a given.
-
Constructor Details
-
SolrjFieldInfoNature
-
-
Method Details
-
getId
Returns the fully qualified class name of the nature.- Returns:
- the nature id.
- See Also:
-
getFieldName
-
setFieldName
Sets the solrj field name.- Parameters:
fieldName- name of the field.
-
isIdDefinition
public boolean isIdDefinition()Returns true if the solrj annotation is of type @Id.- Returns:
- true if the solrj annotation is of type @Id.
-
setIdDefinition
public void setIdDefinition(boolean idDefinition) Sets whether or not the annotated solrj field is of type @Id.- Parameters:
elementDef- The flag indicating whether or not the annotated solrj field is of type @Id.
-