|
||||||||||
| 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.AbstractBuilderReader<CoreField>
org.mmbase.util.xml.BuilderReader
public class BuilderReader
Used to parse and retrieve data from a builder configuration file. The parser support builders for builder dtd 1.1.
| Field Summary |
|---|
| Fields inherited from class org.mmbase.util.xml.AbstractBuilderReader |
|---|
DTD_BUILDER, DTD_BUILDER_1_0, DTD_BUILDER_1_1, inheritanceResolved, inputPositions, NAMESPACE_BUILDER, NAMESPACE_BUILDER_2_0, PUBLIC_ID_BUILDER, PUBLIC_ID_BUILDER_1_0, PUBLIC_ID_BUILDER_1_1, searchPositions, 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, utilProperties |
| Constructor Summary | |
|---|---|
BuilderReader(Document doc,
MMBase mmb)
|
|
BuilderReader(InputSource source,
MMBase mmb)
|
|
| Method Summary | |
|---|---|
protected void |
decodeFieldAttributes(Element field,
CoreField def)
|
protected void |
decodeFieldDef(Element field,
CoreField def,
DataTypeCollector collector)
Alter a specified, named FieldDef object using information obtained from the buidler configuration. |
protected BasicDataType |
getDataTypeForFieldAttribute(String fieldAttribute)
|
List<CoreField> |
getFields()
|
List<CoreField> |
getFields(MMObjectBuilder builder,
DataTypeCollector collector)
Get the field definitions of this builder. |
Set<Function<?>> |
getFunctions(MMObjectBuilder builder)
|
List<Index> |
getIndices(MMObjectBuilder builder)
Get the named indices of this builder. |
MMObjectBuilder |
getParentBuilder()
Get the builder that this builder extends |
protected String |
getParentClassName()
|
protected String |
getParentMaintainer()
|
protected Map<String,String> |
getParentProperties()
|
protected int |
getParentSearchAge()
|
protected int |
getParentVersion()
|
protected boolean |
hasParent()
|
static void |
main(String[] argv)
For testing only |
protected boolean |
resolveInheritance()
|
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 org.mmbase.util.xml.AbstractBuilderReader |
|---|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BuilderReader(InputSource source,
MMBase mmb)
public BuilderReader(Document doc,
MMBase mmb)
| Method Detail |
|---|
protected void decodeFieldDef(Element field,
CoreField def,
DataTypeCollector collector)
field - The element containing the field information according to the buidler xml formatdef - The field definition to alter
protected void decodeFieldAttributes(Element field,
CoreField def)
protected final boolean resolveInheritance()
resolveInheritance in class AbstractBuilderReader<CoreField>protected int getParentSearchAge()
getParentSearchAge in class AbstractBuilderReader<CoreField>protected String getParentClassName()
getParentClassName in class AbstractBuilderReader<CoreField>public List<CoreField> getFields()
getFields in class AbstractBuilderReader<CoreField>
public List<CoreField> 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<Index> getIndices(MMObjectBuilder builder)
Index.MAIN).
builder - the MMObjectBuilder to which the fields will be added
public Set<Function<?>> getFunctions(MMObjectBuilder builder)
public MMObjectBuilder getParentBuilder()
protected boolean hasParent()
hasParent in class AbstractBuilderReader<CoreField>protected Map<String,String> getParentProperties()
getParentProperties in class AbstractBuilderReader<CoreField>protected int getParentVersion()
getParentVersion in class AbstractBuilderReader<CoreField>protected String getParentMaintainer()
getParentMaintainer in class AbstractBuilderReader<CoreField>public boolean storageEquals(BuilderReader f)
protected BasicDataType getDataTypeForFieldAttribute(String fieldAttribute)
throws DataTypes.FieldNotFoundException
getDataTypeForFieldAttribute in class AbstractBuilderReader<CoreField>fieldAttribute -
DataTypes.FieldNotFoundException
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 | |||||||||