Enum Class AutoWireDirection

java.lang.Object
java.lang.Enum<AutoWireDirection>
net.officefloor.compile.internal.structure.AutoWireDirection
All Implemented Interfaces:
Serializable, Comparable<AutoWireDirection>, Constable

public enum AutoWireDirection extends Enum<AutoWireDirection>
Direction of AutoWire.
Author:
Daniel Sagenschneider
  • Enum Constant Details

    • SOURCE_REQUIRES_TARGET

      public static final AutoWireDirection SOURCE_REQUIRES_TARGET

      Flags that the source requires to use the target. Hence, target must be child of source.

      This is typically used in ManagedObject auto-wirings to provide dependent ManagedObject.

    • TARGET_CATEGORISES_SOURCE

      public static final AutoWireDirection TARGET_CATEGORISES_SOURCE

      Flags that the target categories the source. Hence, source must be child of target.

      This is typically used in Team auto-wirings to assign ManagedFunction to Team.

  • Method Details

    • values

      public static AutoWireDirection[] 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 AutoWireDirection 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