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

com.nedap.archie.serializer.adl.rules.ForAllStatementSerializer Maven / Gradle / Ivy

There is a newer version: 3.12.0
Show newest version
package com.nedap.archie.serializer.adl.rules;

import com.nedap.archie.rules.ForAllStatement;
import com.nedap.archie.serializer.adl.ADLRulesSerializer;

/**
 * Created by pieter.bos on 15/06/16.
 */
public class ForAllStatementSerializer extends RuleElementSerializer {

    public ForAllStatementSerializer(ADLRulesSerializer serializer) {
        super(serializer);
    }

    @Override
    public void serialize(ForAllStatement ruleElement) {
        builder.append("for_all");
        builder.append(" ");
        builder.append("$");
        builder.append(ruleElement.getVariableName());
        builder.append(" ");
        builder.append("in");
        builder.append(" ");
        serializer.serializeRuleElement(ruleElement.getPathExpression());
        builder.newIndentedLine();
        builder.append(" ");
        serializer.serializeRuleElement(ruleElement.getAssertion());
        builder.unindent();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy