Enum AssociationLabel

java.lang.Object
java.lang.Enum<AssociationLabel>
org.openehealth.ipf.commons.ihe.xds.core.metadata.AssociationLabel
All Implemented Interfaces:
Serializable, Comparable<AssociationLabel>, java.lang.constant.Constable

public enum AssociationLabel extends Enum<AssociationLabel>
Association labeling values used for the associations of submission sets.
Author:
Jens Riemschneider
  • Enum Constant Details

    • ORIGINAL

      public static final AssociationLabel ORIGINAL
      Label for associations to documents that are contained in the request.
    • REFERENCE

      public static final AssociationLabel REFERENCE
      Label for associations to documents that are only referenced in the request.
  • Method Details

    • values

      public static AssociationLabel[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AssociationLabel valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getOpcode

      public String getOpcode()
      Returns:
      the opcode representing the association in ebXML.
    • toOpcode

      public static String toOpcode(AssociationLabel label)
      Null-safe version of getOpcode().
      Parameters:
      label - the label. Cane be null.
      Returns:
      the opcode of the label. null if the input was null.
    • fromOpcode

      public static AssociationLabel fromOpcode(String opcode)
      Returns the association label that is represented by the given opcode.
      Parameters:
      opcode - the opcode to look for. Can be null.
      Returns:
      the label. null if the input was null.