|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.core.mapping.AbstractMapping
org.compass.core.mapping.AbstractMultipleMapping
org.compass.core.mapping.AbstractResourceMapping
public abstract class AbstractResourceMapping
| Field Summary |
|---|
| Fields inherited from class org.compass.core.mapping.AbstractMultipleMapping |
|---|
mappings, mappingsMap |
| Constructor Summary | |
|---|---|
AbstractResourceMapping()
|
|
| Method Summary | |
|---|---|
int |
addMapping(Mapping mapping)
No duplicate names are allowed when added an id (applies the property names) |
protected void |
copy(AbstractResourceMapping resourceMapping)
|
protected abstract void |
doPostProcess()
|
String |
getAlias()
The alias of the Resource. |
String |
getAllAnalyzer()
Returns the analyzer name that is associated with the all property. |
String |
getAllProperty()
Returns the name of the all property for the given resoruce. |
Property.TermVector |
getAllTermVector()
Returns the term vector configuration for the given all proeprty. |
String |
getAnalyzer()
Returns the analyzer name that need to be used with the resouce. |
ResourceAnalyzerController |
getAnalyzerController()
Returns the analzer controller that is associated with the Resource. |
float |
getBoost()
Returns the boost of the given resource. |
String[] |
getExtendedMappings()
|
ResourcePropertyMapping[] |
getIdMappings()
Returns all the resource property mappings that acts as the id of the resource. |
ResourcePropertyMapping |
getResourcePropertyMapping(String propertyName)
Returns the first resource property mapping that match the given proeprty name ( Mapping.getName(), or
null if not exists. |
ResourcePropertyMapping |
getResourcePropertyMappingByPath(String path)
Returns the ResourcePropertyMapping that match the given path
(Mapping.getPath(), or
null of not exists. |
ResourcePropertyMapping[] |
getResourcePropertyMappings(String propertyName)
Returns the list of resource property mappings that match the given proeprty name ( Mapping.getName(), or
null if not exists. |
String[] |
getResourcePropertyNames()
Returns all the mapped property names for the resoruce. |
String |
getSubIndex()
The sub index that the Resource will be saved to in the
search engine. |
boolean |
hasSpecificAnalyzerPerResourceProperty()
Returns true if the resource proeprty mapping of the resource have
a specific analyzer set. |
boolean |
isAllSupported()
Returns true if the "all" property will be created for the resource. |
boolean |
isRoot()
Returns true if it is a root resource mapping. |
void |
postProcess()
Perform the post processing of the mapping, after it's internal data has been set. |
void |
setAlias(String alias)
|
void |
setAllAnalyzer(String allAnalyzer)
|
void |
setAllProperty(String allProperty)
|
void |
setAllSupported(boolean isAllSupported)
|
void |
setAllTermVector(Property.TermVector allTermVector)
|
void |
setAnalyzer(String analyzer)
|
void |
setAnalyzerController(ResourceAnalyzerController analyzerController)
|
void |
setBoost(float boost)
|
void |
setExtendedMappings(String[] extendedMappings)
|
void |
setRoot(boolean isRoot)
|
void |
setSubIndex(String subIndex)
|
void |
shallowCopy(AbstractResourceMapping resourceMapping)
|
| Methods inherited from class org.compass.core.mapping.AbstractMultipleMapping |
|---|
clearMappings, copy, getMapping, getMapping, mappingsIt, mappingsSize, removeExistingByName, removeExistingByPath, shallowCopy |
| Methods inherited from class org.compass.core.mapping.AbstractMapping |
|---|
controlsObjectNullability, copy, getConverter, getConverterName, getName, getPath, setConverter, setConverterName, setName, setPath |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.compass.core.mapping.ResourceMapping |
|---|
getResourcePropertyMappingByDotPath, getResourcePropertyMappings, isIncludePropertiesWithNoMappingsInAll |
| Methods inherited from interface org.compass.core.mapping.AliasMapping |
|---|
shallowCopy |
| Methods inherited from interface org.compass.core.mapping.MultipleMapping |
|---|
getMapping, getMapping, mappingsIt |
| Constructor Detail |
|---|
public AbstractResourceMapping()
| Method Detail |
|---|
public ResourcePropertyMapping[] getIdMappings()
ResourceMapping
getIdMappings in interface ResourceMappingprotected void copy(AbstractResourceMapping resourceMapping)
public void shallowCopy(AbstractResourceMapping resourceMapping)
public void postProcess()
throws MappingException
PostProcessingMapping
postProcess in interface PostProcessingMappingMappingException
protected abstract void doPostProcess()
throws MappingException
MappingExceptionpublic int addMapping(Mapping mapping)
addMapping in interface MultipleMappingaddMapping in class AbstractMultipleMappingmapping - The mapping to add
public ResourcePropertyMapping[] getResourcePropertyMappings(String propertyName)
ResourceMappingMapping.getName(), or
null if not exists.
getResourcePropertyMappings in interface ResourceMappingpublic ResourcePropertyMapping getResourcePropertyMapping(String propertyName)
ResourceMappingMapping.getName(), or
null if not exists.
getResourcePropertyMapping in interface ResourceMappingpublic ResourcePropertyMapping getResourcePropertyMappingByPath(String path)
ResourceMappingResourcePropertyMapping that match the given path
(Mapping.getPath(), or
null of not exists.
getResourcePropertyMappingByPath in interface ResourceMappingpublic String getAlias()
ResourceMappingResource.
getAlias in interface AliasMappinggetAlias in interface ResourceMappingpublic void setAlias(String alias)
setAlias in interface AliasMappingpublic String[] getExtendedMappings()
getExtendedMappings in interface AliasMappingpublic void setExtendedMappings(String[] extendedMappings)
setExtendedMappings in interface AliasMappingpublic float getBoost()
ResourceMapping
getBoost in interface ResourceMappingpublic void setBoost(float boost)
public String getAnalyzer()
ResourceMappingnull.
getAnalyzer in interface ResourceMappingpublic void setAnalyzer(String analyzer)
public boolean isRoot()
ResourceMappingtrue if it is a root resource mapping. If it is a
root mapping, then it controlls the general Resource level
settings like alias and sub-index. Usually, non-root resource mapping are mappings that are
incorporated within another resoruce.
isRoot in interface ResourceMappingpublic void setRoot(boolean isRoot)
public String getAllProperty()
ResourceMapping
getAllProperty in interface ResourceMappingpublic void setAllProperty(String allProperty)
public boolean isAllSupported()
ResourceMappingtrue if the "all" property will be created for the resource. The
all property is a special property that have all the other resource values in it to be
searchable.
isAllSupported in interface ResourceMappingpublic void setAllSupported(boolean isAllSupported)
public String getSubIndex()
ResourceMappingResource will be saved to in the
search engine.
getSubIndex in interface ResourceMappingpublic void setSubIndex(String subIndex)
public Property.TermVector getAllTermVector()
ResourceMapping
getAllTermVector in interface ResourceMappingpublic void setAllTermVector(Property.TermVector allTermVector)
public boolean hasSpecificAnalyzerPerResourceProperty()
ResourceMappingtrue if the resource proeprty mapping of the resource have
a specific analyzer set.
hasSpecificAnalyzerPerResourceProperty in interface ResourceMappingpublic String getAllAnalyzer()
ResourceMappingnull.
getAllAnalyzer in interface ResourceMappingpublic void setAllAnalyzer(String allAnalyzer)
public ResourceAnalyzerController getAnalyzerController()
ResourceMappingResource.
Can be null.
getAnalyzerController in interface ResourceMappingpublic void setAnalyzerController(ResourceAnalyzerController analyzerController)
public String[] getResourcePropertyNames()
ResourceMapping
getResourcePropertyNames in interface ResourceMapping
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||