public enum RepositoryType extends Enum<RepositoryType> implements Enumerator
P2Package.getRepositoryType()
Enum Constant and Description |
---|
ARTIFACT
The 'Artifact' literal object.
|
COMBINED
The 'Combined' literal object.
|
METADATA
The 'Metadata' literal object.
|
Modifier and Type | Field and Description |
---|---|
static int |
ARTIFACT_VALUE
The 'Artifact' literal value.
|
static int |
COMBINED_VALUE
The 'Combined' literal value.
|
static int |
METADATA_VALUE
The 'Metadata' literal value.
|
static List<RepositoryType> |
VALUES
A public read-only list of all the 'Repository Type' enumerators.
|
Modifier and Type | Method and Description |
---|---|
static RepositoryType |
get(int value)
Returns the 'Repository Type' literal with the specified integer value.
|
static RepositoryType |
get(String literal)
Returns the 'Repository Type' literal with the specified literal value.
|
static RepositoryType |
getByName(String name)
Returns the 'Repository Type' literal with the specified name.
|
String |
getLiteral() |
String |
getName() |
int |
getValue() |
String |
toString()
Returns the literal value of the enumerator, which is its string representation.
|
static RepositoryType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RepositoryType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RepositoryType METADATA
METADATA_VALUE
public static final RepositoryType ARTIFACT
ARTIFACT_VALUE
public static final RepositoryType COMBINED
COMBINED_VALUE
public static final int METADATA_VALUE
If the meaning of 'Metadata' literal object isn't clear, there really should be more of a description here...
METADATA
,
Constant Field Valuespublic static final int ARTIFACT_VALUE
If the meaning of 'Artifact' literal object isn't clear, there really should be more of a description here...
ARTIFACT
,
Constant Field Valuespublic static final int COMBINED_VALUE
If the meaning of 'Combined' literal object isn't clear, there really should be more of a description here...
COMBINED
,
Constant Field Valuespublic static final List<RepositoryType> VALUES
public static RepositoryType[] values()
for (RepositoryType c : RepositoryType.values()) System.out.println(c);
public static RepositoryType 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 RepositoryType get(String literal)
public static RepositoryType getByName(String name)
public static RepositoryType get(int value)
public int getValue()
getValue
in interface Enumerator
public String getName()
getName
in interface Enumerator
public String getLiteral()
getLiteral
in interface Enumerator
public String toString()
toString
in class Enum<RepositoryType>
Copyright (c) 2014 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v2.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v20.html