Package gluebooster.basic.collections

Examples of gluebooster.basic.collections.BoostedNode


    DocumentationContext  documentationContext = JEEDocumentationUtils.getDocumentationContext(config.getServletContext());
    if (documentationContext != null){
      for (Object documentationType: documentationContext.getDocumentationTypeNodes().keySet()){
       
       
        BoostedNode servletChapter = documentationContext.getDocumentationTypeMap(documentationType, false).get( WebXml.SERVLET_TAG + config.getServletName());
        if (servletChapter == null){
          logger.info("Did not write a servletChapter for documentationType " + documentationType+
              ". Did not find "+ WebXml.SERVLET_TAG + config.getServletName()+
              " in keys "+ documentationContext.getDocumentationTypeMap(documentationType, false).keySet()+
              ". Either the documentation type needs no servlet chapter or the initialization has probably not been correct. (Maybe an error in the SoftwareDocumentationListener)"  );
View Full Code Here


    return node;
  }
 
  @SuppressWarnings("unchecked")
  public static BoostedNode createDiv(BoostedNode parent){
    BoostedNode node = BoostedNodeUtils.createZoomInNodeUseParentListener(parent, null, null);
   
    node.getAttributes().setType(HTML.Tag.DIV);
   
    return node;
  }
View Full Code Here

   
    return node;
  }

  public static BoostedNode createDiv(BoostedNode parent, String text){
    BoostedNode node = createDiv(parent);
    createText(node, text);
   
    return node;
  }
View Full Code Here

   
    return node;
  }
 
  public static BoostedNode createDivWithRawContent(BoostedNode parent, String rawText){
    BoostedNode node = createDiv(parent);
    createRaw(node, rawText);
   
    return node;
  }
View Full Code Here

      )){
      return;
    }
    
    ResourceBundle translator = context.getResourceBundle(RESOURCE_BUNDLE_NAME);
    BoostedNode chapter = BookUtils.createChapter(documentationRoot, translator.getString(DocumentationId.YOGA_APP));
    BoostedNode div = BookUtils.createDiv(chapter);
   
    if (DocumentationResourecesId.DOCUMENTATION_USER.equals(type)){
      BookUtils.createText(div,translator.getString(DocumentationId.YOGA_APP_DESCRIPTION));
    }
  }
View Full Code Here

  @Test
  public void fillDocumentationTest() throws Exception{
    NavigationInterceptor interceptor = new NavigationInterceptor();
    DocumentationContext context = new DocumentationContext();
    context.setLocale(Locale.GERMAN);
    BoostedNode root = SoftwareDocumentationUtils.createSoftwareDocumentationSlipcase(new ConfigurationPropertiesReader(), context, false);

    interceptor.fillDocumentation("noType",root , context);
  }
View Full Code Here

      if (docContext == null){
        log.warn("no documentationContext, skipping documentation");
      }
      else{
        for (Object docType: docContext.getDocumentationTypeNodes().keySet()){
            BoostedNode servletContextNode = JEEDocumentationUtils.getServletContextChapterNode(docContext, docType, context);
            if (servletContextNode != null)
              fillDocumentation(docType, servletContextNode, docContext);
        }
      }
   }
View Full Code Here

@Override
public void fillDocumentation(Object type, BoostedNode documentationParent,
    DocumentationContext context) throws Exception {
 
  if (DocumentationResourecesId.DOCUMENTATION_TECHNICAL.equals(type) || DocumentationResourecesId.DOCUMENTATION_USER.equals(type)){
    BoostedNode navigationChapter = BookUtils.createChapter(documentationParent, "Navigation");
    navigation.fillDocumentation(type, navigationChapter, context);
  }
 
}
View Full Code Here

TOP

Related Classes of gluebooster.basic.collections.BoostedNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.