/**
* Copyright 2013 European Parliament
*
* Licensed under the EUPL, Version 1.1 or - as soon they will be approved by the European Commission - subsequent versions of the EUPL (the "Licence");
* You may not use this work except in compliance with the Licence.
* You may obtain a copy of the Licence at:
*
* http://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and limitations under the Licence.
*/
package org.nsesa.editor.gwt.an.common.client.ui.overlay.document.gen.csd02;
/**
* This is the list of allowed values for the type attribute of the result element* This file is generated. Rather than changing this file, correct the template called <tt>overlayEnum.ftl</tt>.
*/
public enum ResultTypeSimpleType {
// ENUM VALUES ------------------
DENY("deny"),
DISMISS("dismiss"),
UPHOLD("uphold"),
REVERT("revert"),
REPLACEORDER("replaceOrder"),
REMIT("remit"),
DECIDE("decide"),
APPROVE("approve");
private final String value;
/**
* Create an instance of ResultTypeSimpleType class with the given String
*/
ResultTypeSimpleType(String v) {
value = v;
}
/**
* Return the value of the instance
*
* @return value as String
*/
public String value() {
return value;
}
/**
* Return an Enum based on the given input text or null if it does not fit
*
* @param text the String representation of the enum
* @return ResultTypeSimpleType or <code>null</code>
*/
public static ResultTypeSimpleType fromString(String text) {
if (text == null) return null;
for (ResultTypeSimpleType en : ResultTypeSimpleType.values()) {
if (text.equalsIgnoreCase(en.value())) {
return en;
}
}
return null;
}
private static final String namespaceURI = "http://docs.oasis-open.org/legaldocml/ns/akn/3.0/CSD02";
public static String getNamespaceURI() {
return namespaceURI;
}
}