public class DataTypeDefinition extends Object
| Modifier and Type | Field and Description |
|---|---|
protected DataTypeCollector |
collector
The data type collector that contains the data datatype with this definition.
|
BasicDataType<?> |
dataType
The data type which will be produced
|
| Constructor and Description |
|---|
DataTypeDefinition(DataTypeCollector collector)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCommitProcessor(Element processorElement) |
protected boolean |
addComparableCondition(Element conditionElement)
Considers the condition elements associated with 'Comparables' (minInclusive, maxInclusive,
minExclusive, maxExclusive).
|
protected boolean |
addCondition(Element childElement)
Uses one subelement of a datatype xml configuration element and interpret it.
|
protected boolean |
addDecimalCondition(Element conditionElement) |
protected void |
addDefaultProcessor(Element processorElement) |
protected void |
addDeleteProcessor(Element processorElement) |
protected void |
addEnumeration(Element enumerationElement)
Used the enumeration element.
|
protected boolean |
addLengthDataCondition(Element conditionElement)
Considers length related condition elements ('minLength', 'maxLength' , 'length')
|
protected boolean |
addPasswordProperty(Element propertyElement) |
protected boolean |
addPatternCondition(Element conditionElement)
Considers the 'pattern' condition element.
|
protected void |
addProcessor(int action,
Element processorElement,
Collection<Integer> unsetTypes) |
(package private) DataTypeDefinition |
configure(Element dataTypeElement,
BasicDataType<?> requestBaseDataType)
Configures the data type definition, using data from a DOM element
|
protected void |
configureConditions(Element dataTypeElement)
Configures the conditions of a datatype definition, using data from a DOM element
|
protected void |
configureHandlers(Element dataTypeElement) |
protected void |
configureProcessors(Element dataTypeElement) |
protected void |
configureStyleClasses(Element dataTypeElement) |
protected boolean |
setProperty(Element element) |
protected void |
setRestrictionData(DataType.Restriction restriction,
Element element) |
String |
toString() |
public BasicDataType<?> dataType
protected final DataTypeCollector collector
public DataTypeDefinition(DataTypeCollector collector)
DataTypeDefinition configure(Element dataTypeElement, BasicDataType<?> requestBaseDataType) throws DependencyException
DependencyExceptionprotected void configureConditions(Element dataTypeElement)
protected void configureHandlers(Element dataTypeElement)
protected void configureStyleClasses(Element dataTypeElement)
protected void configureProcessors(Element dataTypeElement)
protected boolean addCondition(Element childElement)
protected void addProcessor(int action,
Element processorElement,
Collection<Integer> unsetTypes)
protected void addCommitProcessor(Element processorElement)
protected void addDeleteProcessor(Element processorElement)
protected void addDefaultProcessor(Element processorElement)
protected void setRestrictionData(DataType.Restriction restriction, Element element)
protected void addEnumeration(Element enumerationElement)
protected boolean setProperty(Element element)
protected boolean addLengthDataCondition(Element conditionElement)
true if element was usedprotected boolean addDecimalCondition(Element conditionElement)
protected boolean addPasswordProperty(Element propertyElement)
protected boolean addPatternCondition(Element conditionElement)
true if element was usedprotected boolean addComparableCondition(Element conditionElement)
true if element was usedMMBase 1.9-SNAPSHOT - ${javadoctimestamp}