|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<GMLVersion>
org.deegree.gml.GMLVersion
public enum GMLVersion
Enum type for the GML versions that have to be differerentiated in deegree's GML subsystem.
| Enum Constant Summary | |
|---|---|
GML_2
GML 2 versions (any in the range from 2.0.0 to 2.1.2) |
|
GML_30
GML 3.0 versions (either 3.0.0 or 3.0.1) |
|
GML_31
GML 3.1 versions (either 3.1.0 or 3.1.1) |
|
GML_32
GML 3.2 versions (3.2.1) |
|
| Method Summary | |
|---|---|
static GMLVersion |
fromMimeType(java.lang.String mimeType,
GMLVersion defaultVersion)
This method creates a GMLVersion from the given mimetype. |
java.lang.String |
getMimeType()
Returns the mime type for this GML version. |
java.lang.String |
getNamespace()
Returns the namespace for elements from this GML version. |
java.lang.String |
toString()
|
static GMLVersion |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static GMLVersion[] |
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, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final GMLVersion GML_2
public static final GMLVersion GML_30
public static final GMLVersion GML_31
public static final GMLVersion GML_32
| Method Detail |
|---|
public static GMLVersion[] values()
for (GMLVersion c : GMLVersion.values()) System.out.println(c);
public static GMLVersion 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 getNamespace()
nullpublic java.lang.String getMimeType()
nullpublic java.lang.String toString()
toString in class java.lang.Enum<GMLVersion>
public static GMLVersion fromMimeType(java.lang.String mimeType,
GMLVersion defaultVersion)
GMLVersion from the given mimetype. Expected is following format: 'some/type';
subtype=gml/x.y.z. If the mime does not comply the defaultversion is returned. This method uses version
negotiation, e.g. if the given version equals or is larger then a version the next possible gml version will be
used, e.g. gml/3.2.0 will match to GML_32 (gml/3.2.1), gml/3.0.9 (none existing) will match to
GML_31.
mimeType - to be parseddefaultVersion - to be used if the mime type is not compliant with above rules, may be null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||