org.mmbase.util.xml
Class ParentBuilderReader
java.lang.Object
org.mmbase.util.xml.DocumentReader
org.mmbase.util.xml.AbstractBuilderReader<Field>
org.mmbase.util.xml.ParentBuilderReader
- Direct Known Subclasses:
- MockBuilderReader
public abstract class ParentBuilderReader
- extends AbstractBuilderReader<Field>
This version of AbstractBuilderReader implements every method besides a getNodeManagerDescription(String). This minimizes the effort to implement a BuilderReader.
- Since:
- MMBase-1.9.2
- Version:
- $Id: ParentBuilderReader.java 44742 2011-01-12 08:55:24Z michiel $
- Author:
- Michiel Meeuwissen
| 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 |
| Methods inherited from class org.mmbase.util.xml.AbstractBuilderReader |
decodeDataType, decodeDataTypeLater, equals, getBuilderLoader, getClassName, getDataTypeForFieldAttribute, getDataTypes, getDescriptions, getEditorPos, getExtends, getFunctions, getLocalizedDescription, getLocalizedPluralName, getLocalizedSingularName, getMaintainer, getName, getPluralNames, getProperties, getSearchAge, getSingularNames, getStatus, getVersion, hashCode, isInheritanceResolved, mergeElementLists, registerPublicIDs, registerSystemIDs, resolveInheritanceByXML, toString |
| Methods inherited from class org.mmbase.util.xml.DocumentReader |
, appendChild, getAttribute, getChildElements, getChildElements, getChildElements, getChildElements, getDocument, getDocumentBuilder, getDocumentBuilder, getDocumentBuilder, getDocumentBuilder, getElementAttributeValue, getElementAttributeValue, getElementByPath, getElementByPath, getElementName, getElementValue, getElementValue, getNodeTextValue, getNodeTextValue, getRootElement, getSystemId, hasAttribute, main, setNodeTextValue, setPrefix, setSystemId, toDocument, validate, validate |
parent
protected AbstractBuilderReader<Field> parent
ParentBuilderReader
public ParentBuilderReader(InputSource is)
ParentBuilderReader
public ParentBuilderReader(Document doc)
getParentSearchAge
protected int getParentSearchAge()
- Specified by:
getParentSearchAge in class AbstractBuilderReader<Field>
getParentClassName
protected String getParentClassName()
- Specified by:
getParentClassName in class AbstractBuilderReader<Field>
getNodeManagerDescription
protected abstract NodeManagerDescription getNodeManagerDescription(String parentBuilder)
resolveInheritance
protected boolean resolveInheritance()
- Description copied from class:
AbstractBuilderReader
- Resolves inheritance.
If a builder 'extends' another builder, the parser attempts to
retrieve a reference to this builder (using getParentBuilder).
Note that if inheritance cannot be resolved, the builder cannot be activated.
This method returns false if the builder to extend from is inactive.
It throws a RuntimeException is the builder to extend from is not allowed as
an parent builder.
- Specified by:
resolveInheritance in class AbstractBuilderReader<Field>
- Returns:
- true if inheritance could be resolved, false if the .
- See Also:
AbstractBuilderReader.isInheritanceResolved()
getFields
public List<Field> getFields()
- Description copied from class:
AbstractBuilderReader
- Get the field definitions of this builder.
If applicable, this includes the fields inherited from a parent builder.
- Specified by:
getFields in class AbstractBuilderReader<Field>
- Returns:
- a List of all Fields as CoreField
getParentProperties
protected Map<String,String> getParentProperties()
- Specified by:
getParentProperties in class AbstractBuilderReader<Field>
hasParent
protected boolean hasParent()
- Specified by:
hasParent in class AbstractBuilderReader<Field>
getParentVersion
protected int getParentVersion()
- Specified by:
getParentVersion in class AbstractBuilderReader<Field>
getParentMaintainer
protected String getParentMaintainer()
- Specified by:
getParentMaintainer in class AbstractBuilderReader<Field>
MMBase2 Bridge 2.0-SNAPSHOT - 2013-03-30T06:34