Package gluebooster.basic.collections

Examples of gluebooster.basic.collections.BoostedNode


   @Override
   public void fillDocumentation(Object type, BoostedNode documentationParent,
       DocumentationContext context) throws Exception {
    
       if (DocumentationResourecesId.DOCUMENTATION_TECHNICAL.equals(type)){
         BoostedNode div = BookUtils.createDiv(documentationParent);
         BookUtils.createText(div, "The source of the navigation is fetched by a ClassResourceIterator. ");
         getGraphResourceGetter().fillDocumentation(type, div, context);
         BookUtils.createText(div, "The resource path is the connection between the configurationDirectory of a ConfigurationPropertiesReader '" + getPropertiesReader().getConfigurationDirectory() + "' and the static path '" + GRAPH_RELATIVE_PATH +"'");
         getPropertiesReader().fillDocumentation(type, div, context);
       } else if (DocumentationResourecesId.DOCUMENTATION_DEVELOPER.equals(type)){
         propertiesReader.fillDocumentation(type, documentationParent, context);
         try {
           ClassResourceIterator getter = getGraphResourceGetter();
        BoostedNode chapter = BookUtils.createDiv(documentationParent, "The navigation is defined in " + getter.getResourcePath() + ". ");
           if (! getter.hasNext()){
             BookUtils.createText(chapter, "The file is (probably) not implemented yet.");
           }
         } catch (Exception ex){
           BookUtils.createText(documentationParent, "The navigation documentation could not be created. Cause is " + ex.getMessage());
View Full Code Here


@Override
public void fillDocumentation(Object type, BoostedNode documentationParent,
    DocumentationContext context) throws Exception {
  //BookUtils.createDiv(documentationParent, "type " + type);
  if (DocumentationResourecesId.DOCUMENTATION_TECHNICAL.equals(type)){
    BoostedNode div = BookUtils.createDiv(documentationParent);
    BookUtils.createText(div, "The navigation is created by the NavigationConfiguration.");
    BookUtils.createText(div, "The main navigation is defined by the entry '" + MAIN_NAVIGATION + "', the minor navigation by the entry '" + MINOR_NAVIGATION + "'");
    new NavigationConfiguration().fillDocumentation(type, div, context);
  } else if (DocumentationResourecesId.DOCUMENTATION_USER.equals(type)){
    BoostedNode div = BookUtils.createDiv(documentationParent, "The navigation has the following structure");
    HashSet<NavigationEntry> alreadyCovered = new HashSet<NavigationEntry>();
    fillDocumentation(type, div, context, null, alreadyCovered);
  }   else if (DocumentationResourecesId.DOCUMENTATION_DEVELOPER.equals(type)){
    naviConfiguration.fillDocumentation(type, documentationParent, context);
  }
View Full Code Here

private void fillDocumentation(Object type, BoostedNode documentationParent,
    DocumentationContext context, NavigationEntry navigationEntry, HashSet<NavigationEntry> alreadyCovered) throws Exception {
 
  if (DocumentationResourecesId.DOCUMENTATION_USER.equals(type)){
   
    BoostedNode newParent = documentationParent;
    boolean cycle = false;
    if (navigationEntry != null){
     
      String useCase = navigationEntry.getUseCase();
      String title = useCase != null ? useCase : navigationEntry.getID();
View Full Code Here

@Override
public void fillDocumentation(Object type, BoostedNode documentationRoot,
    DocumentationContext context) {
 
  if (DocumentationResourecesId.DOCUMENTATION_TECHNICAL.equals(type)){
    BoostedNode div = BookUtils.createDiv(documentationRoot);
    BookUtils.createText(div, "The class that fetches the resource is " + resourceGettingClass.getSimpleName() + ". The resource is '" + resourceName + "'");
  }
 
 
}
View Full Code Here

          documentationStatus.getDocumentationContext());

      if (documentationStatus.isEvaluateServletContext()) {
        // add server info to the webserver chapter

        BoostedNode webserverChapter = documentationStatus
            .getTechnicalDocumentationMap().get(WEBSERVER_CHAPTER);

        BookUtils.createDiv(webserverChapter, "server info: "
            + servletContext.getServerInfo());
        BookUtils.createDiv(webserverChapter, "servlet api:  "
            + servletContext.getMajorVersion() + "."
            + servletContext.getMinorVersion());

        documentationStatus.setEvaluateServletContext(false);
      }

      // always add info about the web app to the servlet context
      for (Object documentationType : SoftwareDocumentationUtils.SOFTWARE_DOCUMENTATION_TYPES) {
        BoostedNode servletContextChapter = documentationStatus
            .getDocumentationMap(documentationType).get(
                JEEDocumentationUtils.SERVLET_CONTEXT_CHAPTER);

        BoostedNode thisContextChapter = null;
        if (DocumentationResourecesId.DOCUMENTATION_TECHNICAL
            .equals(documentationType)
            || DocumentationResourecesId.DOCUMENTATION_USER
                .equals(documentationType)) {
          thisContextChapter = BookUtils.createChapter(
              servletContextChapter,
              servletContext.getServletContextName());
        }

        if (thisContextChapter != null)
          JEEDocumentationUtils.setServletContextChapterNode(
              documentationStatus.getDocumentationContext(),
              documentationType, servletContext,
              thisContextChapter);

        if (DocumentationResourecesId.DOCUMENTATION_TECHNICAL
            .equals(documentationType)) {
          BookUtils.createDiv(thisContextChapter,
              "This documentation was created on a server with the following context path: "
                  + servletContext.getContextPath());
          BoostedNode webxmlChapter = BookUtils.createChapter(
              thisContextChapter, "Web.xml");
          WebXml webXml = new WebXml(servletContext);
          webXml.fillDocumentation(
              DocumentationResourecesId.DOCUMENTATION_TECHNICAL,
              webxmlChapter,
View Full Code Here

  @Override
  public void fillDocumentation(Object type, BoostedNode documentationParent,
      DocumentationContext context) throws Exception {

    // May be a new node or the documentationParent
    BoostedNode servletContextChapter;

    if (DocumentationResourecesId.DOCUMENTATION_TECHNICAL.equals(type)) {
      BoostedNode webserverChapter = BookUtils.createChapter(
          documentationParent, "Webserver");
      documentationStatus.getDocumentationMap(type).put(
          WEBSERVER_CHAPTER, webserverChapter);
      BookUtils
          .createDiv(webserverChapter,
View Full Code Here

    try {
      HttpServletRequest request = (HttpServletRequest) sre
          .getServletRequest();

      if (documentationStatus.isEvaluateServletRequest()) {
        BoostedNode webserverChapter = documentationStatus
            .getTechnicalDocumentationMap().get(WEBSERVER_CHAPTER);

        BookUtils.createDiv(webserverChapter, "scheme://host:port  "
            + request.getScheme() + "://" + request.getServerName()
            + ":" + request.getServerPort());
View Full Code Here

public void fillDocumentation(Object type, BoostedNode documentationRoot,
    DocumentationContext context) throws Exception {
 
  if (DocumentationResourecesId.DOCUMENTATION_TECHNICAL.equals(type)){
   
    BoostedNode servletsChapter = BookUtils.createChapter(documentationRoot, "Servlets");
   
   
    for (Node servletNode: DomUtils.getNodes(getWebAppNode(), SERVLET_TAG)){
      String servletName = DomUtils.getTextNodeValue(servletNode, SERVLET_NAME_TAG);
      BoostedNode servletChapter = BookUtils.createChapter(servletsChapter, servletName);
      BookUtils.createDiv(servletChapter, "Servlet Class: " + DomUtils.getTextNodeValue(servletNode, SERVLET_CLASS_TAG));
      BookUtils.createDiv(servletChapter, "Servlet Mappings:");
      for (Node mapping: getServletMappings(servletName)){
        BookUtils.createDiv(servletChapter, DomUtils.getTextNodeValue(mapping, URL_PATTERN_TAG));
      }
View Full Code Here

      context.getAttributes().getMap().put(DocumentationContext.DOCUMENTATION_TARGET_PARAMETER, targetDirectory)
    }
   
    documentationWriter.stateChanged(new BoostedChangeEvent<DocumentationContext>(context, context));
   
    BoostedNode root = createSoftwareDocumentationSlipcase(content, context, closeRoot);
    if (closeRoot)
      root.close();
   
    log.debug("beginn creating documentation ended");
    return root;
   
    
View Full Code Here

  public static BoostedNode createSoftwareDocumentationSlipcase(HasDocumentation content, DocumentationContext context, boolean close) throws Exception{

    log.debug("createSoftwareDocumentationSlipcase");
    ChangeListener listener = (ChangeListener) context.getAttributes().getMap().get(ChangeListener.class);
   
    BoostedNode slipcase = BookUtils.createSlipcase(null,  listener, getDocumentationResourcesTranslation(context).getString(DocumentationResourecesId.SOFTWARE_DOCUMENTATION));
    
    for (Object documentationType: SOFTWARE_DOCUMENTATION_TYPES){
      log.debug("creating book " , documentationType);
      BoostedNode bookNode = newZoomInBook(slipcase, documentationType, content, context, listener, close);
      context.getDocumentationTypeMap(documentationType, true).put(GeneralConstants.BOOK, bookNode);
     
     
      if (context.getAttributes().getFromMap(DocumentationContext.DOCUMENTATION_CONTENT_GENERATORS) != null){
        for (HasDocumentation contentGenerator :  (HasDocumentation[]) context.getAttributes().getFromMap(DocumentationContext.DOCUMENTATION_CONTENT_GENERATORS)) {
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.