public enum ArtifactType extends Enum<ArtifactType>
| Enum Constant and Description |
|---|
BUNDLE
OSGi bundle artifact.
|
CONFIG
OSGi configuration file.
|
PAR
OSGi par application package.
|
PLAN
OSGi application definition plan.
|
ZIP
Compressed Zip archive.
|
| Modifier and Type | Method and Description |
|---|---|
static ArtifactType |
getByFileName(String fileName)
Find the ArtifactType enumeration represented by the supplied file
name.
|
static ArtifactType |
getByTypeId(String typeId)
Find the ArtifactType enumeration represented by the supplied
parameter.
|
String |
toString() |
static ArtifactType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ArtifactType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArtifactType BUNDLE
public static final ArtifactType PAR
public static final ArtifactType PLAN
public static final ArtifactType CONFIG
public static final ArtifactType ZIP
public static ArtifactType[] values()
for (ArtifactType c : ArtifactType.values()) System.out.println(c);
public static ArtifactType 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 String toString()
toString in class Enum<ArtifactType>public static ArtifactType getByTypeId(String typeId)
typeId - the string representing the desired ArtifactTypepublic static ArtifactType getByFileName(String fileName)
fileName - the name of the file representing an OSGi artifactCopyright © 2014. All Rights Reserved.