|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.util.xml.DocumentReader
org.mmbase.util.xml.BuilderReader
Used to parse and retrieve data from a builder configuration file. The parser support builders for builder dtd 1.1.
| Field Summary | |
static String |
DTD_BUILDER
DTD respource filename of the most recent Builder DTD |
static String |
DTD_BUILDER_1_0
DTD resource filename of the Builder DTD version 1.0 |
static String |
DTD_BUILDER_1_1
DTD resource filename of the Builder DTD version 1.1 |
static String |
NAMESPACE_BUILDER
|
static String |
NAMESPACE_BUILDER_2_0
|
static String |
PUBLIC_ID_BUILDER
Public ID of the most recent Builder DTD |
static String |
PUBLIC_ID_BUILDER_1_0
Public ID of the Builder DTD version 1.0 |
static String |
PUBLIC_ID_BUILDER_1_1
Public ID of the Builder DTD version 1.1 |
static String |
XSD_BUILDER_2_0
|
| Fields inherited from class org.mmbase.util.xml.DocumentReader |
document, DTD_ERROR, DTD_ERROR_1_0, FILENOTFOUND, PUBLIC_ID_ERROR, PUBLIC_ID_ERROR_1_0 |
| Constructor Summary | |
BuilderReader(Document doc,
MMBase mmb)
|
|
BuilderReader(InputSource source,
MMBase mmb)
|
|
| Method Summary | |
protected DataType |
decodeDataType(MMObjectBuilder builder,
DataTypeCollector collector,
String fieldName,
Element field,
int type,
int listItemType,
boolean forceInstance)
Determine a data type instance based on the given gui element |
boolean |
equals(Object o)
|
String |
getClassName()
Get the class name to use for instantiating this builder. |
Map |
getDataTypes(DataTypeCollector collector)
Get the datatypes defined for this builder. |
Hashtable |
getDescriptions()
Get the descriptions of this builder |
String |
getExtends()
Get the name of the builder that this builder extends |
List |
getFields()
Get the field definitions of this builder. |
List |
getFields(MMObjectBuilder builder,
DataTypeCollector collector)
Get the field definitions of this builder. |
Set |
getFunctions()
|
List |
getIndices(MMObjectBuilder builder)
Get the named indices of this builder. |
String |
getMaintainer()
Retrieve the name of the maintainer of this builder |
MMObjectBuilder |
getParentBuilder()
Get the builder that this builder extends |
Hashtable |
getPluralNames()
Get the plural names of this builder |
Hashtable |
getProperties()
Get the properties of this builder |
int |
getSearchAge()
Retrieves the Search Age. |
Hashtable |
getSingularNames()
Get the singular (GUI) names of this builder |
String |
getStatus()
Get the status of this builder. |
int |
getVersion()
Retrieve the (major) version number of this builder |
boolean |
isInheritanceResolved()
Detremines if inheritance is resolved. |
static void |
main(String[] argv)
For testing only |
static void |
registerPublicIDs()
Register the Public Ids for DTDs used by BuilderReader This method is called by XMLEntityResolver. |
static void |
registerSystemIDs()
Register the namespace and XSD used by DataTypeConfigurer This method is called by XMLEntityResolver. |
protected boolean |
resolveInheritance()
Resolves inheritance. |
boolean |
storageEquals(BuilderReader f)
Whether this builderreader object is equal to another for storage purposes (so, ignoring gui and documentation fields) |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String PUBLIC_ID_BUILDER_1_0
public static final String PUBLIC_ID_BUILDER_1_1
public static final String DTD_BUILDER_1_0
public static final String DTD_BUILDER_1_1
public static final String PUBLIC_ID_BUILDER
public static final String DTD_BUILDER
public static final String XSD_BUILDER_2_0
public static final String NAMESPACE_BUILDER_2_0
public static final String NAMESPACE_BUILDER
| Constructor Detail |
public BuilderReader(InputSource source,
MMBase mmb)
public BuilderReader(Document doc,
MMBase mmb)
| Method Detail |
public static void registerSystemIDs()
public static void registerPublicIDs()
protected boolean resolveInheritance()
RuntimeException - when the builder to extend from is not allowed as parentisInheritanceResolved()public boolean isInheritanceResolved()
resolveInheritance()public String getStatus()
public int getSearchAge()
public String getClassName()
org.mmbase.module.builders package.
public Map getDataTypes(DataTypeCollector collector)
collector - A DataTypeCollector to which the newly found DataTypes will be added.
public List getFields()
public List getFields(MMObjectBuilder builder,
DataTypeCollector collector)
builder - the MMObjectBuilder to which the fields will be addedcollector - the datatype collector used to access the datatypes available for the fields to read.
public List getIndices(MMObjectBuilder builder)
Index.MAIN).
builder - the MMObjectBuilder to which the fields will be added
public Set getFunctions()
protected DataType decodeDataType(MMObjectBuilder builder,
DataTypeCollector collector,
String fieldName,
Element field,
int type,
int listItemType,
boolean forceInstance)
builder - the MMObjectBuilder to which the field belongscollector - The DataTypeCollector of the bulider.fieldName - the name of the field (used in log messages)field - The 'field' element of the builder xmltype - The database type of the fieldlistItemType - If the database type is a List, there is also a type of its elementforceInstance - If true, it will never return null, but will return (a clone) of the DataType associated with the database type.public Hashtable getProperties()
public Hashtable getDescriptions()
public Hashtable getPluralNames()
public Hashtable getSingularNames()
public MMObjectBuilder getParentBuilder()
public String getExtends()
public int getVersion()
public String getMaintainer()
public boolean equals(Object o)
public boolean storageEquals(BuilderReader f)
public static void main(String[] argv)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||