org.apache.hivemind.parse
Class ConversionDescriptor
java.lang.Object
|
+--org.apache.hivemind.impl.BaseLocatable
|
+--org.apache.hivemind.parse.ConversionDescriptor
- All Implemented Interfaces:
- Locatable, LocationHolder
- public class ConversionDescriptor
- extends BaseLocatable
Descriptor for the <conversion> module descriptor element.
- Author:
- Howard Lewis Ship
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConversionDescriptor
public ConversionDescriptor(ErrorHandler errorHandler,
ElementModelImpl elementModel,
java.lang.String defaultTranslator,
Location location)
addAttributeMapping
public void addAttributeMapping(AttributeMappingDescriptor descriptor)
- Adds a mapping for an attribute; these come from <map>
elements nested within the <conversion> element. A check
for duplicate attribute mappings (that is, duplicated attribute name),
and an error is logged (and the duplicate ignored).
setClassName
public void setClassName(java.lang.String string)
setParentMethodName
public void setParentMethodName(java.lang.String string)
addRulesForModel
public void addRulesForModel()
- Invoked once all <map> elements have been processed; this creates
Rule
s that are added
to the ElementModelImpl
.