Package moise.os
Class Cardinality
- java.lang.Object
-
- moise.os.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
-
-
Field Summary
Fields Modifier and Type Field Description static Cardinality
defaultValue
protected int
max
protected int
min
private static long
serialVersionUID
-
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
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
defaultValue
public static final Cardinality defaultValue
-
max
protected int max
-
min
protected int min
-
-
Method Detail
-
getMin
public int getMin()
-
getMax
public int getMax()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.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)
-
setFromDOM
public void setFromDOM(org.w3c.dom.Element ele) throws MoiseException
- Throws:
MoiseException
-
-