Interface EDIReference

All Known Subinterfaces:
CompositeImplementation, EDITypeImplementation, ElementImplementation, LoopImplementation, PolymorphicImplementation, SegmentImplementation

public interface EDIReference
  • Method Summary

    Modifier and Type Method Description
    int getMaxOccurs()  
    default int getMaxOccurs​(java.lang.String version)
    Retrieve the maxOccurs attribute for a particular version of the element.
    int getMinOccurs()  
    default int getMinOccurs​(java.lang.String version)
    Retrieve the minOccurs attribute for a particular version of the element.
    EDIType getReferencedType()  
    default boolean hasVersions()
    Returns true if this element has additional version(s) defined beyond the default.
  • Method Details

    • getReferencedType

      EDIType getReferencedType()
    • getMinOccurs

      int getMinOccurs()
    • getMaxOccurs

      int getMaxOccurs()
    • hasVersions

      default boolean hasVersions()
      Returns true if this element has additional version(s) defined beyond the default. Versions may be used to specify different minimum/maximum occurrence restrictions that only apply to specific versions of a transaction.
      Returns:
      true if this element has version(s), otherwise false
      Since:
      1.8
    • getMinOccurs

      default int getMinOccurs​(java.lang.String version)
      Retrieve the minOccurs attribute for a particular version of the element. The default implementation returns the default (un-versioned) value for the element.
      Parameters:
      version - the version to select
      Returns:
      the minOccurs attribute for version
      Since:
      1.8
    • getMaxOccurs

      default int getMaxOccurs​(java.lang.String version)
      Retrieve the maxOccurs attribute for a particular version of the element. The default implementation returns the default (un-versioned) value for the element.
      Parameters:
      version - the version to select
      Returns:
      the maxOccurs attribute for version
      Since:
      1.8