public enum UmlsUserApprover extends Enum<UmlsUserApprover>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Field and Description |
---|---|
static String |
PASS_PARAM |
static String |
URL_PARAM |
static String |
USER_PARAM |
static String |
VENDOR_PARAM |
Modifier and Type | Method and Description |
---|---|
static UmlsUserApprover |
getInstance() |
boolean |
isValidUMLSUser(String umlsUrl,
String vendor,
String user,
String pass)
validate the UMLS license / user
|
boolean |
isValidUMLSUser(org.apache.uima.UimaContext uimaContext,
Properties properties)
validate the UMLS license / user
|
static UmlsUserApprover |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UmlsUserApprover[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UmlsUserApprover INSTANCE
public static final String URL_PARAM
public static final String VENDOR_PARAM
public static final String USER_PARAM
public static final String PASS_PARAM
public static UmlsUserApprover[] values()
for (UmlsUserApprover c : UmlsUserApprover.values()) System.out.println(c);
public static UmlsUserApprover valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static UmlsUserApprover getInstance()
public boolean isValidUMLSUser(org.apache.uima.UimaContext uimaContext, Properties properties)
uimaContext
- contains information about the UMLS license / userproperties
- -Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.