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

com.nedap.archie.rmobjectvalidator.RMObjectValidatingProcessor Maven / Gradle / Ivy

Go to download

tools that operate on the archie reference models and archetype object model

The newest version!
package com.nedap.archie.rmobjectvalidator;

import com.nedap.archie.aom.CObject;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

/**
 * Created by pieter.bos on 22/02/16.
 */
public class RMObjectValidatingProcessor {

    private List messages = new ArrayList<>();

    public List getMessages() {
        return messages;
    }

    protected void clearMessages() {
        messages.clear();
    }

    protected void addMessage(RMObjectValidationMessage message) {
        messages.add(message);
    }

    protected void addMessage(CObject cobject, String actualPath, String message) {
        messages.add(new RMObjectValidationMessage(cobject, actualPath, message));
    }

    protected void addMessage(CObject cobject, String actualPath, String message, RMObjectValidationMessageType type) {
        messages.add(new RMObjectValidationMessage(cobject, actualPath, message, type));
    }

    protected void addAllMessages(Collection messages) {
        this.messages.addAll(messages);
    }

    protected void addAllMessagesFrom(RMObjectValidatingProcessor other) {
        addAllMessages(other.getMessages());

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy