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

Constructor Summary
ConversionDescriptor(ErrorHandler errorHandler, ElementModelImpl elementModel, java.lang.String defaultTranslator, Location location)
           
 
Method Summary
 void addAttributeMapping(AttributeMappingDescriptor descriptor)
          Adds a mapping for an attribute; these come from <map> elements nested within the <conversion> element.
 void addRulesForModel()
          Invoked once all <map> elements have been processed; this creates Rules that are added to the ElementModelImpl.
 void setClassName(java.lang.String string)
           
 void setParentMethodName(java.lang.String string)
           
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConversionDescriptor

public ConversionDescriptor(ErrorHandler errorHandler,
                            ElementModelImpl elementModel,
                            java.lang.String defaultTranslator,
                            Location location)
Method Detail

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 Rules that are added to the ElementModelImpl.