Enum Class ReferenceBinding
- All Implemented Interfaces:
Serializable,Comparable<ReferenceBinding>,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ReferenceBindingReturns the enum constant of this class with the specified name.static ReferenceBinding[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
-
LOOSE
-
TIGHT
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-