Enum Class Intent

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

public enum Intent extends Enum<Intent>
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 in its role as provider does never 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 project consumes the resources from the associated provider.
    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 Intent
    Returns the enum constant of this class with the specified name.
    static Intent[]
    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 Intent Consume
      The project consumes the resources from the associated provider, but in its role as provider does never provide them to others.
    • Reveal

      public static final Intent Reveal
      The project consumes the resources from the associated provider. It provides them upon request.
    • Supply

      public static final Intent 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 provided to projects that have this project as a dependency.
    • Expose

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

      public static final Intent 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.
  • Method Details

    • values

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