Search in sources :

Example 1 with IPrettyPrintWriter

use of org.whole.lang.operations.IPrettyPrintWriter in project whole by wholeplatform.

the class XsdPrettyPrinterVisitor method visit.

@Override
public void visit(IEntity entity) {
    if (Matcher.match(XsdEntityDescriptorEnum.NamespaceDecl, entity)) {
        NamespaceDecl nsDecl = (NamespaceDecl) entity;
        IPrettyPrintWriter prettyPrintWriter = getOperation().getPrettyPrintWriter();
        prettyPrintWriter.printRaw(nsDecl.getPrefix().getValue());
        prettyPrintWriter.printRaw("=");
        prettyPrintWriter.printRaw(nsDecl.getUri().getValue());
    } else
        super.visit(entity);
}
Also used : NamespaceDecl(org.whole.lang.xsd.model.NamespaceDecl) IPrettyPrintWriter(org.whole.lang.operations.IPrettyPrintWriter)

Aggregations

IPrettyPrintWriter (org.whole.lang.operations.IPrettyPrintWriter)1 NamespaceDecl (org.whole.lang.xsd.model.NamespaceDecl)1