org.compass.core.mapping.xsem
Class XmlPropertyMapping

java.lang.Object
  extended by org.compass.core.mapping.support.AbstractMapping
      extended by org.compass.core.mapping.support.AbstractResourcePropertyMapping
          extended by org.compass.core.mapping.xsem.XmlPropertyMapping
All Implemented Interfaces:
InternalMapping, InternalOverrideByNameMapping, InternalResourcePropertyMapping, Mapping, OverrideByNameMapping, ResourcePropertyMapping, XPathEnabledMapping
Direct Known Subclasses:
XmlBoostPropertyMapping, XmlIdMapping, XmlPropertyAnalyzerController

public class XmlPropertyMapping
extends AbstractResourcePropertyMapping
implements ResourcePropertyMapping, InternalOverrideByNameMapping, XPathEnabledMapping

Author:
kimchy

Constructor Summary
XmlPropertyMapping()
           
 
Method Summary
 Mapping copy()
          Copies over the mapping definition into a newly instanciated Mapping object.
protected  void copy(XmlPropertyMapping copy)
           
 String getFormat()
           
 ResourcePropertyConverter getResourcePropertyConverter()
           
 Converter getValueConverter()
           
 String getValueConverterName()
           
 String getXPath()
           
 XmlXPathExpression getXPathExpression()
           
 boolean isOverrideByName()
          Returns true to control of this mapping overrides by name anotehr mapping within the same multiple mapping container.
 void setFormat(String format)
           
 void setOverrideByName(boolean overrideByName)
           
 void setValueConverter(Converter valueConverter)
           
 void setValueConverterName(String valueConverterName)
           
 void setXPath(String xpath)
           
 void setXPathExpression(XmlXPathExpression xpathExpression)
           
 
Methods inherited from class org.compass.core.mapping.support.AbstractResourcePropertyMapping
copy, getAnalyzer, getBoost, getExcludeFromAll, getIndex, getNullValue, getOriginalName, getReverse, getRootAlias, getSpellCheck, getStore, getTermVector, hasNullValue, isInternal, isOmitNorms, isOmitTf, setAnalyzer, setBoost, setExcludeFromAll, setIndex, setInternal, setName, setNullValue, setOmitNorms, setOmitTf, setReverse, setRootAlias, setSpellCheck, setStore, setTermVector
 
Methods inherited from class org.compass.core.mapping.support.AbstractMapping
controlsObjectNullability, copy, getConverter, getConverterName, getName, getPath, setConverter, setConverterName, 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.ResourcePropertyMapping
getAnalyzer, getBoost, getExcludeFromAll, getIndex, getNullValue, getOriginalName, getReverse, getRootAlias, getSpellCheck, getStore, getTermVector, hasNullValue, isInternal, isOmitNorms, isOmitTf
 
Methods inherited from interface org.compass.core.mapping.Mapping
controlsObjectNullability, getConverter, getConverterName, getName, getPath
 
Methods inherited from interface org.compass.core.mapping.Mapping
controlsObjectNullability, getConverter, getConverterName, getName, getPath
 
Methods inherited from interface org.compass.core.mapping.internal.InternalMapping
setConverter, setConverterName, setName, setPath
 
Methods inherited from interface org.compass.core.mapping.Mapping
controlsObjectNullability, getConverter, getConverterName, getName, getPath
 

Constructor Detail

XmlPropertyMapping

public XmlPropertyMapping()
Method Detail

copy

public Mapping copy()
Description copied from interface: Mapping
Copies over the mapping definition into a newly instanciated Mapping object.

Specified by:
copy in interface Mapping

copy

protected void copy(XmlPropertyMapping copy)

isOverrideByName

public boolean isOverrideByName()
Description copied from interface: OverrideByNameMapping
Returns true to control of this mapping overrides by name anotehr mapping within the same multiple mapping container.

Specified by:
isOverrideByName in interface OverrideByNameMapping

setOverrideByName

public void setOverrideByName(boolean overrideByName)
Specified by:
setOverrideByName in interface InternalOverrideByNameMapping

getXPath

public String getXPath()
Specified by:
getXPath in interface XPathEnabledMapping

setXPath

public void setXPath(String xpath)

getValueConverter

public Converter getValueConverter()

setValueConverter

public void setValueConverter(Converter valueConverter)

getValueConverterName

public String getValueConverterName()

setValueConverterName

public void setValueConverterName(String valueConverterName)

getFormat

public String getFormat()

setFormat

public void setFormat(String format)

getXPathExpression

public XmlXPathExpression getXPathExpression()
Specified by:
getXPathExpression in interface XPathEnabledMapping

setXPathExpression

public void setXPathExpression(XmlXPathExpression xpathExpression)
Specified by:
setXPathExpression in interface XPathEnabledMapping

getResourcePropertyConverter

public ResourcePropertyConverter getResourcePropertyConverter()
Specified by:
getResourcePropertyConverter in interface ResourcePropertyMapping
Overrides:
getResourcePropertyConverter in class AbstractResourcePropertyMapping


Copyright (c) 2004-2009 The Compass Project.