Class SolrjFieldInfoNature

java.lang.Object
org.castor.core.nature.BaseNature
org.exolab.castor.builder.info.nature.SolrjFieldInfoNature

public final class SolrjFieldInfoNature extends BaseNature
A SOLRJ specific view of a FieldInfo. Implementation based on property access on FieldInfo.
Since:
1.3.3
Author:
Werner Guttmann
  • Constructor Details

    • SolrjFieldInfoNature

      public SolrjFieldInfoNature(FieldInfo fieldInfo)
      Constructor taking a FieldInfo.
      Parameters:
      fieldInfo - in focus.
  • Method Details

    • getId

      public String getId()
      Returns the fully qualified class name of the nature.
      Returns:
      the nature id.
      See Also:
      • invalid @see
        org.exolab.castor.builder.info.nature.Nature#getId()
    • getFieldName

      public String getFieldName()
      Retrieves the solrj field name.
      Returns:
      name of field.
    • setFieldName

      public void setFieldName(String fieldName)
      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.