org.riotfamily.riot.editor.xml
Class XmlEditorRepositoryDigester

java.lang.Object
  extended by org.riotfamily.riot.editor.xml.XmlEditorRepositoryDigester
All Implemented Interfaces:
DocumentDigester

public class XmlEditorRepositoryDigester
extends Object
implements DocumentDigester


Field Summary
static String NAMESPACE
           
 
Constructor Summary
XmlEditorRepositoryDigester(XmlEditorRepository editorRepository, BeanFactory beanFactory)
           
 
Method Summary
protected  void addEditorDefinition(AbstractEditorDefinition editor)
           
 void digest(Document doc, Resource resource)
          Initializes the repository by digesting the given document.
protected  EditorDefinition digestChildEditorDefinition(Element ele, EditorDefinition parentDef)
           
protected  void digestChildEditors(Element ele, ObjectEditorDefinition editorDef)
           
protected  EditorDefinition digestCustomDefinition(Element ele, EditorDefinition parentDef)
           
protected  EditorDefinition digestEditorDefinition(Element ele)
          Creates an EditorDefinition.
protected  FormChooserDefinition digestFormChooserDefinition(Element chooserElement, EditorDefinition parentDef)
           
protected  FormDefinition digestFormDefinition(Element formElement, EditorDefinition parentDef)
          Creates a new DefaultFormDefinition by digesting the given element.
protected  GroupDefinition digestGroupDefinition(Element groupElement, EditorDefinition parentDef)
          Creates a GroupDefinition by digesting the given element.
protected  void digestGroupEntries(Element groupElement, GroupDefinition group)
           
protected  ListDefinition digestListOrTreeDefinition(Element listElement)
           
protected  ObjectEditorDefinition digestObjectEditorDefinition(Element ele, EditorDefinition parentDef)
           
protected  ViewDefinition digestViewDefinition(Element formElement, EditorDefinition parentDef)
           
protected  EditorDefinition getRef(Element ele)
           
protected  String getUniqueId(String name)
           
protected  void initListDefinition(ListDefinition listDefinition, Element listElement)
          Initialized a ListDefinition by digesting the given element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMESPACE

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

XmlEditorRepositoryDigester

public XmlEditorRepositoryDigester(XmlEditorRepository editorRepository,
                                   BeanFactory beanFactory)
Method Detail

digest

public void digest(Document doc,
                   Resource resource)
Initializes the repository by digesting the given document.

Specified by:
digest in interface DocumentDigester

addEditorDefinition

protected void addEditorDefinition(AbstractEditorDefinition editor)

digestGroupEntries

protected void digestGroupEntries(Element groupElement,
                                  GroupDefinition group)

digestGroupDefinition

protected GroupDefinition digestGroupDefinition(Element groupElement,
                                                EditorDefinition parentDef)
Creates a GroupDefinition by digesting the given element. Nested EditorDefinitions will be digested by calling digestEditorDefinition().


digestListOrTreeDefinition

protected ListDefinition digestListOrTreeDefinition(Element listElement)

initListDefinition

protected void initListDefinition(ListDefinition listDefinition,
                                  Element listElement)
Initialized a ListDefinition by digesting the given element.


digestObjectEditorDefinition

protected ObjectEditorDefinition digestObjectEditorDefinition(Element ele,
                                                              EditorDefinition parentDef)

digestEditorDefinition

protected EditorDefinition digestEditorDefinition(Element ele)
Creates an EditorDefinition.


getRef

protected EditorDefinition getRef(Element ele)

digestFormDefinition

protected FormDefinition digestFormDefinition(Element formElement,
                                              EditorDefinition parentDef)
Creates a new DefaultFormDefinition by digesting the given element.


digestChildEditors

protected void digestChildEditors(Element ele,
                                  ObjectEditorDefinition editorDef)

digestChildEditorDefinition

protected EditorDefinition digestChildEditorDefinition(Element ele,
                                                       EditorDefinition parentDef)

digestViewDefinition

protected ViewDefinition digestViewDefinition(Element formElement,
                                              EditorDefinition parentDef)

getUniqueId

protected String getUniqueId(String name)

digestFormChooserDefinition

protected FormChooserDefinition digestFormChooserDefinition(Element chooserElement,
                                                            EditorDefinition parentDef)

digestCustomDefinition

protected EditorDefinition digestCustomDefinition(Element ele,
                                                  EditorDefinition parentDef)