Examples of comment()


Examples of org.apache.tapestry5.MarkupWriter.comment()

    public void comment()
    {
        MarkupWriter w = new MarkupWriterImpl();

        w.element("root");
        w.comment(" A comment ");
        w.end();

        assertEquals(w.toString(), "<root><!-- A comment --></root>");
    }
View Full Code Here

Examples of org.apache.tapestry5.MarkupWriter.comment()

    public void entities_inside_comment_not_converted()
    {
        MarkupWriter w = new MarkupWriterImpl();

        w.element("root");
        w.comment(" <&> ");
        w.end();

        assertEquals(w.toString(), "<root><!-- <&> --></root>");
    }
View Full Code Here

Examples of org.apache.tapestry5.MarkupWriter.comment()

    {
        MarkupWriter w = new MarkupWriterImpl();

        w.element("root");
        w.write("before");
        w.comment(" A comment ");
        w.write("after");
        w.end();

        assertEquals(w.toString(), "<root>before<!-- A comment -->after</root>");
    }
View Full Code Here

Examples of org.apache.ws.jaxme.xs.util.LoggingContentHandler.comment()

        fos = new FileOutputStream(tmpFile);
        LoggingContentHandler lch = new LoggingContentHandler(fos);
        lch.setParent(pReader);
        pReader = lch;
        String msg = "Read from " + pSource.getPublicId() + ", " + pSource.getSystemId() + " at " + new Date();
        lch.comment(msg.toCharArray(), 0, msg.length());
      }
      pReader.setContentHandler(pHandler);
      LocatorImpl loc = new LocatorImpl();
      loc.setSystemId(pSource.getSystemId());
      loc.setPublicId(pSource.getPublicId());
View Full Code Here

Examples of org.apache.xalan.transformer.TransformerIdentityImpl.comment()

                                                                   // way to do
                                                                   // this.
             {
                try {
                    TransformerIdentityImpl ch = (TransformerIdentityImpl) contentHandler;
                    ch.comment(comment.toCharArray(), 0, comment.length());
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        }
View Full Code Here

Examples of org.apache.xml.serialize.XMLSerializer.comment()

        String basePath = fileName.getParentFile().getAbsolutePath();
        content.startDocument();
       
        for(Iterator<CommentDef> iter = projectDef.getComments().iterator(); iter.hasNext(); ) {
      String comment = iter.next().getText();
      serializer.comment(comment);
        }
       
        AttributesImpl emptyAttrs = new AttributesImpl();

        AttributesImpl attributes = new AttributesImpl();
View Full Code Here

Examples of org.exist.memtree.MemTreeBuilder.comment()

    throws XPathException {
        if (newDocumentContext)
            {context.pushDocumentContext();}
        try {
            final MemTreeBuilder builder = context.getDocumentBuilder();
            final int nodeNr = builder.comment(data);
            final NodeImpl node = builder.getDocument().getNode(nodeNr);
            return node;
        } finally {
            if (newDocumentContext)
                {context.popDocumentContext();}
View Full Code Here

Examples of org.hibernate.junit.RequiresDialect.comment()

            return buildSkip( dialect, null, null );
          }
        }
        else {
          if ( !dialectClass.isInstance( dialect ) ) {
            return buildSkip( dialect, requiresDialectAnn.comment(), requiresDialectAnn.jiraKey() );
          }
        }
      }
    }
View Full Code Here

Examples of org.hibernate.junit.RequiresDialectFeature.comment()

    if ( requiresDialectFeatureAnn != null ) {
      Class<? extends DialectChecks> checkClass = requiresDialectFeatureAnn.value();
      DialectChecks check = checkClass.newInstance();
      boolean skip = check.include( dialect );
      if ( skip ) {
        return buildSkip( dialect, requiresDialectFeatureAnn.comment(), requiresDialectFeatureAnn.jiraKey() );
      }
    }
    return null;
  }
View Full Code Here

Examples of org.hibernate.junit.SkipForDialect.comment()

    SkipForDialect skipForDialectAnn = locateAnnotation( SkipForDialect.class, runMethod );
    if ( skipForDialectAnn != null ) {
      for ( Class<? extends Dialect> dialectClass : skipForDialectAnn.value() ) {
        if ( skipForDialectAnn.strictMatching() ) {
          if ( dialectClass.equals( dialect.getClass() ) ) {
            return buildSkip( dialect, skipForDialectAnn.comment(), skipForDialectAnn.jiraKey() );
          }
        }
        else {
          if ( dialectClass.isInstance( dialect ) ) {
            return buildSkip( dialect, skipForDialectAnn.comment(), skipForDialectAnn.jiraKey() );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.