public enum SlotStrategy extends Enum<SlotStrategy>
| Enum Constant and Description |
|---|
MAIN
The module is set to the main slot (default).
|
VERSION_FULL
The module is set to the full artifact version slot
|
VERSION_MAJOR
The module is set to the major artifact version slot.
|
| Modifier and Type | Method and Description |
|---|---|
String |
calcSlot(org.eclipse.aether.artifact.Artifact artifact,
String defaultSlot)
Calculates the name for the slot.
|
String |
calcSlot(String defaultSlot,
String moduleSlot,
org.eclipse.aether.artifact.Artifact artifact)
Calculates the name for the slot.
|
static SlotStrategy |
fromString(String id)
Returns the slot strategy identified by the given
id. |
String |
toString() |
static SlotStrategy |
valueOf(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 SlotStrategy VERSION_FULL
public static final String MAIN_SLOT
public static SlotStrategy[] values()
for (SlotStrategy c : SlotStrategy.values()) System.out.println(c);
public static SlotStrategy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static SlotStrategy fromString(String id) throws IllegalArgumentException
id.id - the identifier of the requested slot strategy.IllegalArgumentException - if id is not a valid slot
strategy.public String toString()
toString in class Enum<SlotStrategy>public String calcSlot(org.eclipse.aether.artifact.Artifact artifact, 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 String calcSlot(String defaultSlot, String moduleSlot, org.eclipse.aether.artifact.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.Copyright © 2013–2019 FuseSource. All rights reserved.