org.lexevs.dao.index.model.compass.v20
Class IndexedEntityBuilder

java.lang.Object
  extended by org.lexevs.dao.index.model.compass.v20.IndexedEntityBuilder
All Implemented Interfaces:
IndexableResourceBuilder<Entity,org.compass.core.Resource>

public class IndexedEntityBuilder
extends java.lang.Object
implements IndexableResourceBuilder<Entity,org.compass.core.Resource>

The Class IndexedEntityBuilder.

Author:
Kevin Peterson

Constructor Summary
IndexedEntityBuilder()
           
 
Method Summary
 org.compass.core.Resource buildIndexableResource(Entity input)
          Builds the indexable resource.
protected  java.lang.String combineNameAndValue(java.lang.String name, java.lang.String value)
          Combine name and value.
protected  java.util.List<java.lang.String> getAllContexts(Property[] properties)
          Gets the all contexts.
protected  java.util.List<java.lang.String> getAllPropertyNames(Property[] properties)
          Gets the all property names.
protected  java.util.List<java.lang.String> getAllPropertyTypes(Property[] properties)
          Gets the all property types.
protected  java.util.List<java.lang.String> getAllQualifiers(Property[] properties)
          Gets the all qualifiers.
protected  java.util.List<java.lang.String> getAllSources(Property[] properties)
          Gets the all sources.
 org.compass.core.Compass getCompass()
          Gets the compass.
 java.lang.String resolveId(Entity input)
          Resolve id.
 void setCompass(org.compass.core.Compass compass)
          Sets the compass.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexedEntityBuilder

public IndexedEntityBuilder()
Method Detail

getAllQualifiers

protected java.util.List<java.lang.String> getAllQualifiers(Property[] properties)
Gets the all qualifiers.

Parameters:
properties - the properties
Returns:
the all qualifiers

getAllContexts

protected java.util.List<java.lang.String> getAllContexts(Property[] properties)
Gets the all contexts.

Parameters:
properties - the properties
Returns:
the all contexts

getAllPropertyNames

protected java.util.List<java.lang.String> getAllPropertyNames(Property[] properties)
Gets the all property names.

Parameters:
properties - the properties
Returns:
the all property names

getAllPropertyTypes

protected java.util.List<java.lang.String> getAllPropertyTypes(Property[] properties)
Gets the all property types.

Parameters:
properties - the properties
Returns:
the all property types

getAllSources

protected java.util.List<java.lang.String> getAllSources(Property[] properties)
Gets the all sources.

Parameters:
properties - the properties
Returns:
the all sources

combineNameAndValue

protected java.lang.String combineNameAndValue(java.lang.String name,
                                               java.lang.String value)
Combine name and value.

Parameters:
name - the name
value - the value
Returns:
the string

buildIndexableResource

public org.compass.core.Resource buildIndexableResource(Entity input)
Description copied from interface: IndexableResourceBuilder
Builds the indexable resource.

Specified by:
buildIndexableResource in interface IndexableResourceBuilder<Entity,org.compass.core.Resource>
Parameters:
input - the input
Returns:
the o

resolveId

public java.lang.String resolveId(Entity input)
Description copied from interface: IndexableResourceBuilder
Resolve id.

Specified by:
resolveId in interface IndexableResourceBuilder<Entity,org.compass.core.Resource>
Parameters:
input - the input
Returns:
the string

setCompass

public void setCompass(org.compass.core.Compass compass)
Sets the compass.

Parameters:
compass - the new compass

getCompass

public org.compass.core.Compass getCompass()
Gets the compass.

Returns:
the compass

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.