public enum PolicyLexicon extends Enum<PolicyLexicon>
PolicyExpression represented by a defined set of tokens and a grammar. Expressions written in a given lexicon
are parsed by a PolicyLexiconParser and translated into PolicyExpression. The PolicyExpression can be thought of an intermediate state
of the policy in the overall policy engine process.
| Enum Constant and Description |
|---|
JAVA_SER
Java serialized object format of a
PolicyExpression. |
SIMPLE_TEXT_V1
Simple text version 1 lexicon
|
XML
XML Serialized format of a
PolicyExpression. |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends PolicyLexiconParser> |
getParserClass()
Gets the
PolicyLexiconParser class that will be used to parse the specific lexicon. |
static PolicyLexicon |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PolicyLexicon[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PolicyLexicon XML
PolicyExpression.public static final PolicyLexicon JAVA_SER
PolicyExpression.public static final PolicyLexicon SIMPLE_TEXT_V1
public static PolicyLexicon[] values()
for (PolicyLexicon c : PolicyLexicon.values()) System.out.println(c);
public static PolicyLexicon 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 Class<? extends PolicyLexiconParser> getParserClass()
PolicyLexiconParser class that will be used to parse the specific lexicon.PolicyLexiconParser class that will be used to parse the specific lexicon.Copyright © 2010–2020 The Direct Project. All rights reserved.