All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.legaldocml.util.ToStringVisitor Maven / Gradle / Ivy

The newest version!
package io.legaldocml.util;

import io.legaldocml.akn.element.StringInlineCM;
import io.legaldocml.akn.visitor.AknVisitor;

/**
 * @author Jacques Militello
 */
public class ToStringVisitor implements AknVisitor {

    //    private VisitorStatus status = VisitorStatus.CONTINUE;
//
    private StringBuilder builder = new StringBuilder();

    //
//    @Override
//    public VisitorStatus status() {
//        return this.status;
//    }
//
    public void visit(StringInlineCM stringInlineCM) {
        builder.append(stringInlineCM.toString());
    }

    //
//
//
    @Override
    public String toString() {
        return builder.toString();
    }
//
//    public void reset() {
//        this.builder.setLength(0);
//    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy