Package moise.os

Class Cardinality

  • All Implemented Interfaces:
    java.io.Serializable, ToXML

    public class Cardinality
    extends java.lang.Object
    implements java.io.Serializable, ToXML
    Represents a cardinality of the Moise+ model (maximum and minumum values).
    Author:
    Jomi Fred Hubner
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Cardinality()  
      Cardinality​(int minimum, int maximum)
      Creates new Cardinality
    • Method Summary

      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      org.w3c.dom.Element getAsDOM​(org.w3c.dom.Document document)  
      int getMax()  
      int getMin()  
      java.lang.String getXMLTag()  
      int hashCode()  
      void setFromDOM​(org.w3c.dom.Element ele)  
      java.lang.String toString()  
      java.lang.String toStringFormat2()
      returns cardinality in format Min..Max
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • defaultValue

        public static final Cardinality defaultValue
      • max

        protected int max
      • min

        protected int min
    • Constructor Detail

      • Cardinality

        public Cardinality()
      • Cardinality

        public Cardinality​(int minimum,
                           int maximum)
        Creates new Cardinality
    • Method Detail

      • getMin

        public int getMin()
      • getMax

        public int getMax()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toStringFormat2

        public java.lang.String toStringFormat2()
        returns cardinality in format Min..Max
      • getXMLTag

        public java.lang.String getXMLTag()
      • getAsDOM

        public org.w3c.dom.Element getAsDOM​(org.w3c.dom.Document document)
        Specified by:
        getAsDOM in interface ToXML