|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.datatypes.util.xml.DataTypeDefinition
This utility class contains methods to instantiate the right DataType instance. It is used by DataTypeReader. XXX MM: This class does the actual datatype reading, so more correctly this one would be called DatatypeReader?
| Field Summary | |
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 Summary | |
DataTypeDefinition(DataTypeCollector collector)
Constructor. |
|
| Method Summary | |
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 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)
|
protected void |
configureConditions(Element dataTypeElement,
String id)
Configures the conditions of a datatype definition, using data from a DOM element |
protected boolean |
setProperty(Element element)
|
protected void |
setRestrictionData(DataType.Restriction restriction,
Element element)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public BasicDataType dataType
protected final DataTypeCollector collector
| Constructor Detail |
public DataTypeDefinition(DataTypeCollector collector)
| Method Detail |
protected void configureConditions(Element dataTypeElement,
String id)
protected boolean addCondition(Element childElement)
protected void addProcessor(int action,
Element processorElement)
protected void addCommitProcessor(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 addPasswordProperty(Element propertyElement)
protected boolean addPatternCondition(Element conditionElement)
true if element was usedprotected boolean addComparableCondition(Element conditionElement)
true if element was usedpublic String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||