public enum SpecVersion extends Enum<SpecVersion>
Enum Constant and Description |
---|
VERSION_1_0 |
VERSION_1_1 |
VERSION_1_1_FELIX |
VERSION_1_2 |
Modifier and Type | Method and Description |
---|---|
static SpecVersion |
fromName(String n)
Creates a version for the given name.
|
static SpecVersion |
fromNamespaceUrl(String n)
Creates a version for the given url.
|
String |
getName()
Returns the human readable type name of this type.
|
String |
getNamespaceUrl()
Return the namespace url.
|
static SpecVersion |
valueOf(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.
|
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
public static SpecVersion[] values()
for (SpecVersion c : SpecVersion.values()) System.out.println(c);
public static SpecVersion 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 getName()
public String getNamespaceUrl()
public static SpecVersion fromName(String n)
null
, null
is
returned.n
- the namenull
public static SpecVersion fromNamespaceUrl(String n)
null
, null
is
returned.n
- the urlnull
Copyright © 2006–2024 The Apache Software Foundation. All rights reserved.