public class ConversionDescriptor extends BaseRule
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
.Constructor and Description |
---|
ConversionDescriptor(ErrorHandler errorHandler,
ElementModel elementModel) |
Modifier and Type | Method and Description |
---|---|
void |
addAttributeMapping(AttributeMappingDescriptor descriptor)
Adds a mapping for an attribute; these come from <map> elements nested within the
<conversion> element.
|
void |
addRulesForModel() |
void |
begin(SchemaProcessor processor,
Element element)
Does nothing; subclasses may override.
|
void |
end(SchemaProcessor processor,
Element element)
Does nothing; subclasses may override.
|
java.util.List |
getAttributeMappings() |
java.lang.String |
getClassName() |
java.lang.String |
getParentMethodName() |
void |
setClassName(java.lang.String string) |
void |
setParentMethodName(java.lang.String string) |
getLocation, setLocation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLocation
public ConversionDescriptor(ErrorHandler errorHandler, ElementModel elementModel)
public java.util.List getAttributeMappings()
public void addAttributeMapping(AttributeMappingDescriptor descriptor)
public java.lang.String getClassName()
public void setClassName(java.lang.String string)
public java.lang.String getParentMethodName()
public void setParentMethodName(java.lang.String string)
public void begin(SchemaProcessor processor, Element element)
BaseRule
public void end(SchemaProcessor processor, Element element)
BaseRule
public void addRulesForModel()