com.regnosys.rosetta.translate.datamodel.Cardinality Maven / Gradle / Ivy
package com.regnosys.rosetta.translate.datamodel;
public enum Cardinality {
SINGLE(""), MULTIPLE("*");
String shortName;
private Cardinality(String shortName) {
this.shortName = shortName;
}
public String toShortString() {
return shortName;
}
public static Cardinality max(Cardinality cardinality1, Cardinality cardinality2) {
if (cardinality1==MULTIPLE || cardinality2==MULTIPLE) return MULTIPLE;
return SINGLE;
}
}