- java.lang.Object
-
- net.n2oapp.framework.config.metadata.compile.page.PageCompiler<S,C>
-
- Type Parameters:
S- Тип исходной модели страницы
- All Implemented Interfaces:
SourceClassAware,SourceCompiler<C,S,PageContext>,BaseSourceCompiler<C,S,PageContext>
- Direct Known Subclasses:
BasePageCompiler,SimplePageCompiler
public abstract class PageCompiler<S extends N2oPage,C extends Page> extends java.lang.Object implements BaseSourceCompiler<C,S,PageContext>
Базовая компиляция страницы
-
-
Constructor Summary
Constructors Constructor Description PageCompiler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.lang.StringgetPropertyPageSrc()protected BreadcrumbListinitBreadcrumb(java.lang.String pageName, PageContext context, CompileProcessor p)Получение базового маршрута страницыprotected PagePropertyinitPageName(java.lang.String pageName, boolean showTitle, PageContext context, CompileProcessor p)protected java.lang.StringinitPageRoute(N2oPage source, PageContext context, CompileProcessor p)Получение базового маршрута страницыprotected voidregisterRoutes(PageRoutes routes, PageContext context, CompileProcessor p)Регистрация маршрутов страницы-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.n2oapp.framework.api.metadata.aware.SourceClassAware
getSourceClass
-
Methods inherited from interface net.n2oapp.framework.api.metadata.compile.SourceCompiler
compile
-
-
-
-
Method Detail
-
initPageRoute
protected java.lang.String initPageRoute(N2oPage source, PageContext context, CompileProcessor p)
Получение базового маршрута страницы- Parameters:
source- Исходная страницаcontext- Контекст сборкиp- Процессор сборки- Returns:
- Маршрут
-
registerRoutes
protected void registerRoutes(PageRoutes routes, PageContext context, CompileProcessor p)
Регистрация маршрутов страницы- Parameters:
routes- Маршруты страницыcontext- Контекст сборкиp- Процессор сборки
-
initBreadcrumb
protected BreadcrumbList initBreadcrumb(java.lang.String pageName, PageContext context, CompileProcessor p)
Получение базового маршрута страницы- Parameters:
pageName- Наименование страницыcontext- Контекст сборки- Returns:
- breadcrumb текущей страницы
-
initPageName
protected PageProperty initPageName(java.lang.String pageName, boolean showTitle, PageContext context, CompileProcessor p)
-
getPropertyPageSrc
protected abstract java.lang.String getPropertyPageSrc()
-
-