com.reverseXSL.types
Class Cardinality

java.lang.Object
  extended by com.reverseXSL.types.Cardinality
All Implemented Interfaces:
java.io.Serializable

public final class Cardinality
extends java.lang.Object
implements java.io.Serializable

Marks the Cardinality of a group, segment or data element: Mandatory, Optional or Conditional. It is a strong typed enumeration class backward compatible with JDK1.4.

Valid enumeration values are all like Cardinality.CODE where CODE must be a valid code; for the list of codes see table.

See Also:
Serialized Form

Field Summary
static Cardinality CONDITIONAL
          Marks a Conditional group, segment or data element; its presence in the message depends from the existence (or values) of other groups, segments or data elements.
static Cardinality MANDATORY
          Marks a Mandatory group, segment or data element.
static Cardinality OPTIONAL
          Marks an Optional group, segment or data element.
static Cardinality[] table
          May be used to iterate over all possible enumeration values.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String toString()
          Provides a default string rendering with code only.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONDITIONAL

public static final Cardinality CONDITIONAL
Marks a Conditional group, segment or data element; its presence in the message depends from the existence (or values) of other groups, segments or data elements. The dependency is expressed in a condition. (see CONDDefinition)


MANDATORY

public static final Cardinality MANDATORY
Marks a Mandatory group, segment or data element. Must always be present in a message instance.


OPTIONAL

public static final Cardinality OPTIONAL
Marks an Optional group, segment or data element. May or may not exist in a message instance independently from all other groups, segments or data elements.


table

public static final Cardinality[] table
May be used to iterate over all possible enumeration values.

Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Provides a default string rendering with code only.

Overrides:
toString in class java.lang.Object