Skip to content
Permalink
Browse files
fix(api-v2): Update subclasses in ontology cache when base class chan…
…ges (DSP-1643) (#1860)
  • Loading branch information
Benjamin Geer committed May 19, 2021
1 parent 061875e commit beb951db46e9d73631667c40168a67dc07a9605c
@@ -1943,7 +1943,14 @@ object Cardinality extends Enumeration {
* @param guiOrder the SALSAH GUI order.
*/
case class KnoraCardinalityInfo(cardinality: Value, guiOrder: Option[Int] = None) {
override def toString: String = cardinality.toString
override def toString: String = guiOrder match {
case Some(definedGuiOrder) => s"$cardinality (guiOrder $definedGuiOrder)"
case None => cardinality.toString
}

def equalsWithoutGuiOrder(that: KnoraCardinalityInfo): Boolean = {
that.cardinality == cardinality
}
}

type Cardinality = Value

0 comments on commit beb951d

Please sign in to comment.