public enum SlotStrategy extends java.lang.Enum<SlotStrategy>
| Enum Constant and Description |
|---|
MAIN
The module is set to the main slot (default).
|
VERSION_MAJOR
The module is set to the major artifact version slot.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MAIN_SLOT
The main slot.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
calcSlot(Artifact artifact,
java.lang.String defaultSlot)
Calculates the name for the slot.
|
java.lang.String |
calcSlot(java.lang.String defaultSlot,
java.lang.String moduleSlot,
Artifact artifact)
Calculates the name for the slot.
|
static SlotStrategy |
fromString(java.lang.String id)
Returns the slot strategy identified by the given
id. |
java.lang.String |
toString() |
static SlotStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SlotStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SlotStrategy MAIN
public static final SlotStrategy VERSION_MAJOR
public static final java.lang.String MAIN_SLOT
public static SlotStrategy[] values()
for (SlotStrategy c : SlotStrategy.values()) System.out.println(c);
public static SlotStrategy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static SlotStrategy fromString(java.lang.String id) throws java.lang.IllegalArgumentException
id.id - the identifier of the requested slot strategy.java.lang.IllegalArgumentException - if id is not a valid slot
strategy.public java.lang.String toString()
toString in class java.lang.Enum<SlotStrategy>public java.lang.String calcSlot(Artifact artifact, java.lang.String defaultSlot)
artifact - the artifact with additional information. If
null: a static prefix will be assumed.defaultSlot - the name of the default slot to use.public java.lang.String calcSlot(java.lang.String defaultSlot,
java.lang.String moduleSlot,
Artifact artifact)
defaultSlot - the name of the default slot. May be blank.moduleSlot - the name of the module slot. May be blank.artifact - the artifact with additional information. If
null: a static prefix will be assumed.