com.nedap.archie.serializer.adl.rules.UnaryOperatorSerializer Maven / Gradle / Ivy
package com.nedap.archie.serializer.adl.rules;
import com.nedap.archie.rules.UnaryOperator;
import com.nedap.archie.serializer.adl.ADLRulesSerializer;
/**
* Created by pieter.bos on 15/06/16.
*/
public class UnaryOperatorSerializer extends RuleElementSerializer {
public UnaryOperatorSerializer(ADLRulesSerializer serializer) {
super(serializer);
}
@Override
public void serialize(UnaryOperator ruleElement) {
builder.append(ruleElement.getOperator().getDefaultCode());
builder.append(" ");
serializer.serializeRuleElement(ruleElement.getOperand());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy