Class XmlMenuBuilder
java.lang.Object
ch.tocco.nice2.model.base.spi.base.AbstractXMLUnmarshallerModelBuilder
ch.tocco.nice2.model.menu.impl.xml.AbstractXmlMenuBuilder
ch.tocco.nice2.model.menu.impl.xml.XmlMenuBuilder
- All Implemented Interfaces:
NiceModelBuilder
Reads menu structures
-
Field Summary
Fields inherited from class ch.tocco.nice2.model.menu.impl.xml.AbstractXmlMenuBuilder
itemFactory, labelFactoryFields inherited from class ch.tocco.nice2.model.base.spi.base.AbstractXMLUnmarshallerModelBuilder
displayValueFactory, factory, log -
Constructor Summary
ConstructorsConstructorDescriptionXmlMenuBuilder(org.slf4j.Logger log, DisplayValueFactory displayFactory, ItemFactory itemFactory, MenuItemLabelFactory labelFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectbuildHandlerInstance(Object receiver, SourceContribution src) Return a new instance of a class, which can handle the event of the xml-unmarshallerprotected StringSpecifies the root tag of the config files we are responsibnlegetType()Return type of the receiverMethods inherited from class ch.tocco.nice2.model.base.spi.base.AbstractXMLUnmarshallerModelBuilder
afterParse, beforeParse, buildModel, shouldIgnoreUnhandledAttributes
-
Constructor Details
-
Method Details
-
buildHandlerInstance
Description copied from class:AbstractXMLUnmarshallerModelBuilderReturn a new instance of a class, which can handle the event of the xml-unmarshaller State: It's guaranteed that all protected methods are set and valid- Specified by:
buildHandlerInstancein classAbstractXMLUnmarshallerModelBuilder- Parameters:
receiver- the receiver.src- the contribution that defines the source currently being handled- Returns:
- the instance, non-null.
-
getFirstTag
Specifies the root tag of the config files we are responsibnle- Specified by:
getFirstTagin classAbstractXMLUnmarshallerModelBuilder- Returns:
- "menu"
-
getType
Return type of the receiver- Returns:
- type of the receiver
-