org.apache.hivemind.parse
Class ConversionDescriptor
java.lang.Object
org.apache.hivemind.impl.BaseLocatable
org.apache.hivemind.schema.rules.BaseRule
org.apache.hivemind.parse.ConversionDescriptor
- All Implemented Interfaces:
- Locatable, LocationHolder, Rule
public class ConversionDescriptor
- extends BaseRule
Descriptor for the <conversion> module descriptor element. This descriptor implements the
Rule
interface and is added as a standard rule to the containing ElementModel
.
When processed it delegates to a CreateObjectRule
, a bunch of ReadAttributeRule
,
and finally an InvokeParentRule
.
- 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,
ElementModel elementModel)
getAttributeMappings
public java.util.List getAttributeMappings()
- Since:
- 1.1
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).
getClassName
public java.lang.String getClassName()
- Since:
- 1.1
setClassName
public void setClassName(java.lang.String string)
getParentMethodName
public java.lang.String getParentMethodName()
- Since:
- 1.1
setParentMethodName
public void setParentMethodName(java.lang.String string)
begin
public void begin(SchemaProcessor processor,
Element element)
- Description copied from class:
BaseRule
- Does nothing; subclasses may override.
- Specified by:
begin
in interface Rule
- Overrides:
begin
in class BaseRule
- Since:
- 1.1
end
public void end(SchemaProcessor processor,
Element element)
- Description copied from class:
BaseRule
- Does nothing; subclasses may override.
- Specified by:
end
in interface Rule
- Overrides:
end
in class BaseRule
- Since:
- 1.1
addRulesForModel
public void addRulesForModel()