Enum AssociationLabel

    • Enum Constant Detail

      • 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 Detail

      • values

        public static AssociationLabel[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (AssociationLabel c : AssociationLabel.values())
            System.out.println(c);
        
        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.