public enum SpecVersion extends java.lang.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(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.
|
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(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 namejava.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 namenull
public static SpecVersion fromNamespaceUrl(java.lang.String n)
null
, null
is
returned.n
- the urlnull
Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.