|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SpecVersion>
org.apache.felix.scrplugin.SpecVersion
public enum SpecVersion
An enumeration for all available spec versions. The versions in the enumeration have to be ordered, higher versions must have a higher ordinal.
Enum Constant Summary | |
---|---|
VERSION_1_0
|
|
VERSION_1_1
|
|
VERSION_1_1_FELIX
|
|
VERSION_1_2
|
Method Summary | |
---|---|
static SpecVersion |
fromName(java.lang.String n)
Creates a version for the given name. |
static SpecVersion |
fromNamespaceUrl(java.lang.String n)
Creates a version for the given url. |
java.lang.String |
getName()
Returns the human readable type name of this type. |
java.lang.String |
getNamespaceUrl()
Return the namespace url. |
static SpecVersion |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static SpecVersion[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final SpecVersion VERSION_1_0
public static final SpecVersion VERSION_1_1
public static final SpecVersion VERSION_1_1_FELIX
public static final SpecVersion VERSION_1_2
Method Detail |
---|
public static SpecVersion[] values()
for (SpecVersion c : SpecVersion.values()) System.out.println(c);
public static SpecVersion 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 name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String getName()
public java.lang.String getNamespaceUrl()
public static SpecVersion fromName(java.lang.String n)
null
, null
is
returned.
n
- the name
null
public static SpecVersion fromNamespaceUrl(java.lang.String n)
null
, null
is
returned.
n
- the url
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |