org.exolab.castor.builder.info.nature
Class SolrjFieldInfoNature

java.lang.Object
  extended by org.castor.core.nature.BaseNature
      extended by org.exolab.castor.builder.info.nature.SolrjFieldInfoNature
All Implemented Interfaces:
Nature

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 Summary
SolrjFieldInfoNature(FieldInfo fieldInfo)
          Constructor taking a FieldInfo.
 
Method Summary
 java.lang.String getFieldName()
          Retrieves the solrj field name.
 java.lang.String getId()
          Returns the fully qualified class name of the nature.
 boolean isIdDefinition()
          Returns true if the solrj annotation is of type @Id.
 void setFieldName(java.lang.String fieldName)
          Sets the solrj field name.
 void setIdDefinition(boolean idDefinition)
          Sets whether or not the annotated solrj field is of type @Id.
 
Methods inherited from class org.castor.core.nature.BaseNature
getBooleanPropertyDefaultFalse, getHolder, getProperty, getPropertyAsList, getPropertyAsMap, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SolrjFieldInfoNature

public SolrjFieldInfoNature(FieldInfo fieldInfo)
Constructor taking a FieldInfo.

Parameters:
fieldInfo - in focus.
Method Detail

getId

public java.lang.String getId()
Returns the fully qualified class name of the nature.

Returns:
the nature id.
See Also:
org.exolab.castor.builder.info.nature.Nature#getId()

getFieldName

public java.lang.String getFieldName()
Retrieves the solrj field name.

Returns:
name of field.

setFieldName

public void setFieldName(java.lang.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.


Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com