Enum Class Intend

java.lang.Object
java.lang.Enum<Intend>
org.jdrupes.builder.api.Intend
All Implemented Interfaces:
Serializable, Comparable<Intend>, Constable

public enum Intend extends Enum<Intend>
Attributes the relationship between a Project ("this project") and an associated ResourceProvider.
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The project consumes the resources from the associated provider, but it does not expose them, i.e. the project in its role as provider does not provide them to others.
    The project consumes the resources from the associated provider and makes them available to other projects that have this project as a dependency.
    The resources from the provider are forwarded to other projects that have this project as a dependency but are not used (consumed) by this project.
    The resources from the associated provider are genuinely provided by this project, i.e. supplied by this project.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Intend
    Returns the enum constant of this class with the specified name.
    static Intend[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • Consume

      public static final Intend Consume
      The project consumes the resources from the associated provider, but it does not expose them, i.e. the project in its role as provider does not provide them to others.
    • Forward

      public static final Intend Forward
      The resources from the provider are forwarded to other projects that have this project as a dependency but are not used (consumed) by this project.
    • Expose

      public static final Intend Expose
      The project consumes the resources from the associated provider and makes them available to other projects that have this project as a dependency.
    • Supply

      public static final Intend Supply
      The resources from the associated provider are genuinely provided by this project, i.e. supplied by this project. This is the default relationship between a project and its generators. It implies that the resources obtained through this dependency are exposed to projects that have this project as a dependency.
  • Method Details

    • values

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