Enum ReferenceBinding

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ReferenceBinding>

    public enum ReferenceBinding
    extends java.lang.Enum<ReferenceBinding>

    ReferenceBinding describes, how "tight" external references are bound to Comet configuration items. This information is used when processing solution for ID conflicts: solutions affecting IDs with NONE reference binding take precedence over solutions affecting IDs with LOOSE binding and LOOSE bindings take precedence over TIGHT. If both conflicting IDs have TIGHT binding, no automatic solution is possible.

    Examples:

    • Placeholder definitions or layout rules are probably persisted in documents and templates, changing any of these IDs would cause a lot of resources to become invalid. Therefore the reference binding is TIGHT.
      If a placeholder and a layout rule have the same ID, no automatic solution is possible.
    • Panel actions can be referenced in external applications, but it's not recommended to hard link action IDs. At least, changing them would invalidate only one piece of external code, so reference binding is LOOSE.
    • IDs of placeholder groups serve the purpose of filtering placeholders in the UI. They are never referenced in any external resources or application, therefore reference binding is NONE.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      LOOSE  
      NONE  
      TIGHT  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ReferenceBinding valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ReferenceBinding[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • values

        public static ReferenceBinding[] 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 (ReferenceBinding c : ReferenceBinding.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ReferenceBinding valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null