/*
 * Copyright (C) 2016 Reece H. Dunn
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package uk.co.reecedunn.intellij.plugin.xquery.lang;

import org.jetbrains.annotations.NotNull;

public enum XQueryConformance {
    FULL_AXIS("full-axis"), // XQuery 1.0
    MINIMAL_CONFORMANCE("minimal-conformance"), // XQuery 1.0
    MODULE("module"), // XQuery 1.0
    SCHEMA_IMPORT("schema-import"), // XQuery 1.0
    SCHEMA_VALIDATION("schema-validation"), // XQuery 1.0
    SERIALIZATION("serialization"), // XQuery 1.0
    STATIC_TYPING("static-typing"), // XQuery 1.0
    UPDATE_FACILITY("update-facility"),
    FULL_TEXT("full-text"),
    SCRIPTING("scripting"),
    MARKLOGIC("marklogic");

    private final String mID;

    XQueryConformance(@NotNull String id) {
        mID = id;
    }

    @Override
    public String toString() {
        return mID;
    }
}

@@ -757,24 +757,96 @@
  XQuery 1.0%0A
+    HIGHER_ORDER_FUNCTION(%22higher-order-function%22), // XQuery 3.0 - 3.1%0A
     MINIMAL_
@@ -890,24 +890,30 @@
 / XQuery 1.0
+ - 3.1
 %0A    MODULE(
@@ -928,32 +928,38 @@
 ), // XQuery 1.0
+ - 3.1
 %0A    SCHEMA_IMPO
@@ -988,24 +988,59 @@
 / XQuery 1.0
+; XQuery 3.0 - 3.1 (%22Schema Aware%22)
 %0A    SCHEMA_
@@ -1081,24 +1081,59 @@
 / XQuery 1.0
+; XQuery 3.0 - 3.1 (%22Schema Aware%22)
 %0A    SERIALI
@@ -1166,24 +1166,30 @@
 / XQuery 1.0
+ - 3.1
 %0A    STATIC_
@@ -1222,24 +1222,80 @@
 / XQuery 1.0
+ - 3.1%0A    TYPED_DATA(%22typed-data%22), // XQuery 3.0 - 3.1
 %0A    UPDATE_
@@ -1322,16 +1322,45 @@
 ility%22),
+ // Update Facility 1.0 - 3.0
 %0A    FUL
@@ -1379,16 +1379,39 @@
 -text%22),
+ // Full Text 1.0 - 3.0
 %0A    SCR
@@ -1430,16 +1430,33 @@
 pting%22),
+ // Scripting 1.0
 %0A    MAR
@@ -1475,16 +1475,39 @@
 logic%22);
+ // MarkLogic 6.0 - 8.0
 %0A%0A    pr

Extend XQueryConformance to cover XQuery 3.0 and 3.1 optional features.