blob: 76ed035c12fdfb0e2f437fd3bd4b84cccd0c2979 [file] [log] [blame]
/**
* Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation
*
*
* This copyright notice shows up in the generated Java code
*/
package org.eclipse.osbp.xtext.authorizationdsl.common;
import org.eclipse.osbp.xtext.authorizationdsl.RoleBlipProcessEnum;
import org.eclipse.osbp.xtext.authorizationdsl.RoleBlipUserTaskEnum;
import org.eclipse.osbp.xtext.authorizationdsl.RolePropertyEnum;
/**
* see http://www.eclipse.org/Xtext/documentation.html#contentAssist on how to customize content assistant
*/
@SuppressWarnings("all")
public class AuthorizationDSLLiterals {
public static boolean isPropertyEnum(final String proposal) {
RolePropertyEnum[] _values = RolePropertyEnum.values();
for (final RolePropertyEnum item : _values) {
boolean _equals = item.getLiteral().equals(proposal);
if (_equals) {
return true;
}
}
return false;
}
public static boolean isProcessEnum(final String proposal) {
RoleBlipProcessEnum[] _values = RoleBlipProcessEnum.values();
for (final RoleBlipProcessEnum item : _values) {
boolean _equals = item.getLiteral().equals(proposal);
if (_equals) {
return true;
}
}
return false;
}
public static boolean isUserTaskEnum(final String proposal) {
RoleBlipUserTaskEnum[] _values = RoleBlipUserTaskEnum.values();
for (final RoleBlipUserTaskEnum item : _values) {
boolean _equals = item.getLiteral().equals(proposal);
if (_equals) {
return true;
}
}
return false;
}
}