Package net.sf.gluebooster.java.booster.basic.container

Examples of net.sf.gluebooster.java.booster.basic.container.BoostedNode


          if (predecessorOutPoints.size() != 1) {
            throw ThrowableBoostUtils
                .createNotImplementedException("multiple or no predecessor out-points are not yet supported");
          }
          BoostedNode predecessorOutPoint = predecessorOutPoints
              .get(0);
          if (hasCurrentValue(predecessorOutPoint)) {
            Object outPointValue = getCurrentValue(predecessorOutPoint);
            if (hasCurrentValue(inPoint)) {
              Object inPointValue = getCurrentValue(inPoint);
View Full Code Here


            throw new IllegalStateException(
                "No filename in documentation context for key "
                    + DocumentationContext.DOCUMENTATION_TARGET_PARAMETER);
        } else if (attributes instanceof ObjectAttributes) {
          BoostedNode documentationNode = (BoostedNode) event
              .getSource();

          ObjectAttributes objectAttributes = (ObjectAttributes) attributes;
          Object command = objectAttributes.getName();
View Full Code Here

  public static TransformationGraph createChain(
      ObjectFactory... transformations) throws Exception {

    TransformationGraph result = new TransformationGraph();
    boolean isRoot = true;
    BoostedNode oldNode = null;
    BoostedNode newNode = null;
    BoostedNode outPoint = null;
    BoostedNode inPoint = null;
    for (ObjectFactory trafo : transformations) {

      if (oldNode != null) {
        outPoint = oldNode.getOutPoints().get(0);
      }
View Full Code Here

      //write the list of books
      Document doc = DomBoostUtils.createDefaultDocumentBuilder().newDocument();
      Element body = createHtml(doc, documentationNode.getAttributes().getName(), HTML.Tag.BODY);
      Element list = DomBoostUtils.appendElement(doc, body, HTML.Tag.UL);
      for (BoostedNode zoomInFocusPoint: documentationNode.getAllZoomInFocus()){
        BoostedNode zoomInNode = documentationNode.getZoomIn(zoomInFocusPoint, null);
        Object subtype = zoomInNode.getAttributes().getType();
       
        if (BookBoostUtils.BOOK.equals(subtype)) {
          Element li = DomBoostUtils.appendElement(doc, list, HTML.Tag.LI);
          File directory = documentationContext.getFromAttributesMap(File.class);
          DomBoostUtils.appendElement(
              doc,
              li,
              HTML.Tag.A,
              ContainerBoostUtils.createMap("href",
zoomInNode
                  .getAttributes().getName()/*
                               * directory .
                               * getName ( )
                               */
                  + "/index.html", "target", "content"),
              zoomInNode.getAttributes().getName());
        }
      }      
      OutputStream out = getOutputStream(documentationContext, documentationNode, "booklist.html");
      DomBoostUtils.write(doc, out);
      out.close();
View Full Code Here

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

    BoostedNode chapter = BookBoostUtils.createChapter(documentationParent,
        "Languages Basic Demo");
    BoostedNode div = BookBoostUtils.createDiv(chapter);
    BookBoostUtils.createText(div,
        "This will be the documentation of type " + type
            + " and locale " + context.getLocale());
    // TODO write more text, translate the text
View Full Code Here

          DocumentationResourcesId.DOCUMENTATION_MARKETING,
          getClass());

    } else if (DocumentationResourcesId.DOCUMENTATION_TECHNICAL
        .equals(type)) {
      BoostedNode mainChapter = BookBoostUtils.createChapter(
          documentationParent, getClass().getSimpleName());
      SoftwareDocumentationBoostUtils.addDocumentationAnnotations(
          mainChapter, context,
          DocumentationResourcesId.DOCUMENTATION_TECHNICAL,
          getClass());
View Full Code Here

  }

  private TransformationGraph createTransformationGraph1() throws Exception {
    TransformationGraph result = new TransformationGraph();

    BoostedNode node = TransformationGraph.createNode(REPLACE_A_BY_B, true);
    result.setRootOfGraph(node);
    result.setResultNode(node);
    result.setUnmodifiableGraph(true);
    return result;
View Full Code Here

    File docuDir = createTempDirectory("sampleGraph");
    DocumentationContext context = DocumentationContext
        .createDefaultHtmlContext(docuDir.getCanonicalPath(),
            Locale.ENGLISH);
    BoostedNode bookNode = SoftwareDocumentationBoostUtils
        .newZoomInBook(
            DocumentationResourcesId.DOCUMENTATION_USER_INSTANCE_DESCRIPTION,
            trafo, context);
    Assert.assertNotNull(bookNode);
    // at least one file (or subdirectory) should have been created
View Full Code Here

  public void fillDocumentation(Object type, BoostedNode documentationRoot,
      DocumentationContext context) throws Exception {
   
    if (DocumentationResourcesId.DOCUMENTATION_TECHNICAL
        .equals(type)) {
      BoostedNode webserverChapter = BookBoostUtils.createChapter(documentationRoot, "Webserver", null);
      BoostedNode servletContextChapter = BookBoostUtils.createChapter(documentationRoot, "Servlet Contexts", null);
      BookBoostUtils.createChapter(servletContextChapter, "Context 1", null);
     
    }
   
   
View Full Code Here

    // Create the documentation
    DocumentationContext context = DocumentationContext
        .createDefaultHtmlContext(docuDir.getCanonicalPath(),
            Locale.ENGLISH);
    BoostedNode bookNode = SoftwareDocumentationBoostUtils
        .newZoomInBook(
            DocumentationResourcesId.DOCUMENTATION_USER_INSTANCE_DESCRIPTION,
            trafo, context);

    // Test the created documentation
View Full Code Here

TOP

Related Classes of net.sf.gluebooster.java.booster.basic.container.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.