org.mmbase.datatypes.util.xml
Class DataTypeReader

java.lang.Object
  extended by org.mmbase.datatypes.util.xml.DataTypeReader

public class DataTypeReader
extends Object

This class contains static methods used for reading a 'datatypes' XML into a DataTypeCollector.

Since:
MMBase-1.8
Version:
$Id: DataTypeReader.java 37976 2009-08-18 12:10:57Z michiel $
Author:
Pierre van Rooden

Field Summary
static String NAMESPACE_DATATYPES
          most recent version
static String NAMESPACE_DATATYPES_1_0
           
static String NAMESPACE_ENUMERATIONQUERY
           
static String NAMESPACE_ENUMERATIONQUERY_1_0
           
static String XSD_DATATYPES_1_0
           
static String XSD_ENUMERATIONQUERY_1_0
          enumeration query (expansion of standard searchquery)
 
Constructor Summary
DataTypeReader()
           
 
Method Summary
static DataTypeDefinition readDataType(Element typeElement, BasicDataType baseDataType, DataTypeCollector collector)
          Reads a datatype.
static List<DependencyException> readDataTypes(Element dataTypesElement, DataTypeCollector collector)
          Initialize the data types default supported by the system.
static List<DependencyException> readDataTypes(Element dataTypesElement, DataTypeCollector collector, BasicDataType baseDataType)
          Initialize the data types default supported by the system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XSD_DATATYPES_1_0

public static final String XSD_DATATYPES_1_0
See Also:
Constant Field Values

NAMESPACE_DATATYPES_1_0

public static final String NAMESPACE_DATATYPES_1_0
See Also:
Constant Field Values

XSD_ENUMERATIONQUERY_1_0

public static final String XSD_ENUMERATIONQUERY_1_0
enumeration query (expansion of standard searchquery)

See Also:
Constant Field Values

NAMESPACE_ENUMERATIONQUERY_1_0

public static final String NAMESPACE_ENUMERATIONQUERY_1_0
See Also:
Constant Field Values

NAMESPACE_DATATYPES

public static final String NAMESPACE_DATATYPES
most recent version

See Also:
Constant Field Values

NAMESPACE_ENUMERATIONQUERY

public static final String NAMESPACE_ENUMERATIONQUERY
See Also:
Constant Field Values
Constructor Detail

DataTypeReader

public DataTypeReader()
Method Detail

readDataTypes

public static List<DependencyException> readDataTypes(Element dataTypesElement,
                                                      DataTypeCollector collector)
Initialize the data types default supported by the system.


readDataTypes

public static List<DependencyException> readDataTypes(Element dataTypesElement,
                                                      DataTypeCollector collector,
                                                      BasicDataType baseDataType)
Initialize the data types default supported by the system.

Returns:
a list of failures.

readDataType

public static DataTypeDefinition readDataType(Element typeElement,
                                              BasicDataType baseDataType,
                                              DataTypeCollector collector)
                                       throws DependencyException
Reads a datatype.

Parameters:
typeElement - The xml Element defining the datatype.
baseDataType - Datatype on which this must be based
collector -
Throws:
DependencyException


MMBase 2.0-SNAPSHOT - null