Enum Class ReferenceBinding

java.lang.Object
java.lang.Enum<ReferenceBinding>
com.priint.pubserver.comet.config.ReferenceBinding
All Implemented Interfaces:
Serializable, Comparable<ReferenceBinding>, Constable

public enum ReferenceBinding extends 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 Details

  • Method Details

    • values

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

      public static ReferenceBinding valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null