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

com.nedap.archie.flattener.FlattenerUtil Maven / Gradle / Ivy

Go to download

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

There is a newer version: 3.12.0
Show newest version
package com.nedap.archie.flattener;

import com.nedap.archie.aom.CObject;
import com.nedap.archie.rules.Assertion;

import java.util.List;

public class FlattenerUtil {



    public static List getPossiblyOverridenListValue(List parent, List child) {
        if(child != null && !child.isEmpty()) {
            return child;
        }
        return parent;
    }

    public static  T getPossiblyOverridenValue(T parent, T specialized) {
        if(specialized != null) {
            return specialized;
        }
        return parent;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy