Package org.apache.maven.doxia.sink

Examples of org.apache.maven.doxia.sink.SinkAdapter


    private String doGetTraversedLink( String text, int begin, int end )
        throws AptParseException
    {
        final StringBuilder buffer = new StringBuilder( end - begin );

        Sink linkSink = new SinkAdapter()
        {
            /** {@inheritDoc} */
            public void lineBreak()
            {
                buffer.append( SPACE );
View Full Code Here


     *
     * @return a SinkAdapter if not overridden
     */
    protected Sink getSink()
    {
        return new SinkAdapter();
    }
View Full Code Here

    }

    @Override
    protected void executeReport(Locale locale) throws MavenReportException {
        final Sink s = getSink();
        final Sink sa = new SinkAdapter() {
            @Override
            public void text(String text) {               
                s.text(text.replace("OK", "passed"));
            }           
        };
        sa.text("Test OK");
    }
View Full Code Here

     * @since 1.1
     */
    private boolean isValidGeneratedReport( MojoDescriptor mojoDescriptor, File generatedReport,
                                            String localReportName )
    {
        SinkAdapter sinkAdapter = new SinkAdapter();
        Reader reader = null;
        try
        {
            reader = ReaderFactory.newXmlReader( generatedReport );

View Full Code Here

     * @since 1.1
     */
    private boolean isValidGeneratedReport( MojoDescriptor mojoDescriptor, File generatedReport,
                                            String localReportName )
    {
        SinkAdapter sinkAdapter = new SinkAdapter();
        Reader reader = null;
        try
        {
            reader = ReaderFactory.newXmlReader( generatedReport );

View Full Code Here

    @Override
    protected void executeReport( Locale locale )
        throws MavenReportException
    {
        final Sink s = getSink();
        final Sink sa = new SinkAdapter()
        {
            @Override
            public void text( String text )
            {
                s.text( text.replace( "OK", "passed" ) );
            }
        };
        sa.text( "Test OK" );
    }
View Full Code Here

     * @since 1.1
     */
    private boolean isValidGeneratedReport( Artifact pluginArtifact, File generatedReport,
                                            String localReportName )
    {
        SinkAdapter sinkAdapter = new SinkAdapter();
        Reader reader = null;
        try
        {
            reader = ReaderFactory.newXmlReader( generatedReport );

View Full Code Here

TOP

Related Classes of org.apache.maven.doxia.sink.SinkAdapter

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.