com.nedap.archie.flattener.FlattenerUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tools Show documentation
Show all versions of tools Show documentation
tools that operate on the archie reference models and archetype object model
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;
}
}