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

com.nedap.archie.serializer.adl.rules.AssertionSerializer 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.Assertion;
import com.nedap.archie.serializer.adl.ADLRulesSerializer;

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

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

    @Override
    public void serialize(Assertion ruleElement) {
        if(ruleElement.getTag() != null) {
            builder.append(ruleElement.getTag());
            builder.append(": ");
        }

        serializer.serializeRuleElement(ruleElement.getExpression());
        builder.newline();

    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy