package org.nlamah.QLS.Interfaces; import org.nlamah.QLS.Model.Abstract.QLSNode; import org.nlamah.QLS.Model.Abstract.SectionItem; import org.nlamah.QLS.Model.Declaration.ColorDeclaration; import org.nlamah.QLS.Model.Declaration.FontDeclaration; import org.nlamah.QLS.Model.Declaration.FontSizeDeclaration; import org.nlamah.QLS.Model.Declaration.WidgetDeclaration; import org.nlamah.QLS.Model.Declaration.WidthDeclaration; import org.nlamah.QLS.Model.StylesheetBlock.DefaultBlock; import org.nlamah.QLS.Model.StylesheetBlock.Page; import org.nlamah.QLS.Model.StylesheetBlock.Section; import org.nlamah.QLS.Model.StylesheetBlock.StyleBlock; import org.nlamah.QLS.Model.StylesheetBlock.StyledQuestion; import org.nlamah.QLS.Model.StylesheetBlock.Stylesheet; import org.nlamah.QLS.Model.Value.IdentifierValue; public abstract class QLSVisitorAbstract implements QLSNodeVisitor { @Override public QLSNode visit(Stylesheet stylesheet) { for (Page page : stylesheet.pages()) { page.accept(this); } return null; } @Override public QLSNode visit(Page page) { for (Section section : page.sections()) { section.accept(this); } return null; } @Override public QLSNode visit(Section section) { for (SectionItem sectionItem : section.sectionItems()) { sectionItem.accept(this); } return null; } @Override public QLSNode visit(WidgetDeclaration widgetDeclaration) { assert(false); return null; } @Override public QLSNode visit(StyledQuestion styledQuestion) { assert(false); return null; } @Override public QLSNode visit(DefaultBlock defaultBlock) { assert(false); return null; } @Override public QLSNode visit(StyleBlock styleBlock) { assert(false); return null; } @Override public QLSNode visit(IdentifierValue identifierValue) { assert(false); return null; } @Override public QLSNode visit(ColorDeclaration colorDeclaration) { assert(false); return null; } @Override public QLSNode visit(FontDeclaration fontDeclaration) { assert(false); return null; } @Override public QLSNode visit(FontSizeDeclaration fontSizeDeclaration) { assert(false); return null; } @Override public QLSNode visit(WidthDeclaration widthDeclaration) { assert(false); return null; } }