com.nedap.archie.serializer.adl.rules.AssertionSerializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aom Show documentation
Show all versions of aom Show documentation
An OpenEHR archetype object model implementation, plus parser
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