public class MatchFunction extends FunctionBase
Modifier and Type | Field and Description |
---|---|
static String |
NAME_ANYURI_REGEXP_MATCH
Standard identifier for the anyURI-regexp-match function.
|
static String |
NAME_DNSNAME_REGEXP_MATCH
Standard identifier for the dnsName-regexp-match function.
|
static String |
NAME_IPADDRESS_REGEXP_MATCH
Standard identifier for the ipAddress-regexp-match function.
|
static String |
NAME_REGEXP_STRING_MATCH
Standard identifier for the regexp-string-match function.
|
static String |
NAME_RFC822NAME_MATCH
Standard identifier for the rfc822Name-match function.
|
static String |
NAME_RFC822NAME_REGEXP_MATCH
Standard identifier for the rfc822Name-regexp-match function.
|
static String |
NAME_STRING_REGEXP_MATCH
Standard identifier for the string-regexp-match function.
|
static String |
NAME_X500NAME_MATCH
Standard identifier for the x500Name-match function.
|
static String |
NAME_X500NAME_REGEXP_MATCH
Standard identifier for the x500Name-regexp-match function.
|
FUNCTION_NS, FUNCTION_NS_2
Constructor and Description |
---|
MatchFunction(String functionName)
Creates a new
MatchFunction based on the given name. |
Modifier and Type | Method and Description |
---|---|
EvaluationResult |
evaluate(List inputs,
EvaluationCtx context)
Evaluate the function, using the specified parameters.
|
static Set |
getSupportedIdentifiers()
Returns a
Set containing all the function identifiers
supported by this class. |
checkInputs, checkInputsNoBag, encode, encode, evalArgs, getFunctionId, getFunctionName, getIdentifier, getReturnType, getReturnTypeAsString, getType, makeProcessingError, returnsBag
public static final String NAME_REGEXP_STRING_MATCH
public static final String NAME_X500NAME_MATCH
public static final String NAME_RFC822NAME_MATCH
public static final String NAME_STRING_REGEXP_MATCH
public static final String NAME_ANYURI_REGEXP_MATCH
public static final String NAME_IPADDRESS_REGEXP_MATCH
public static final String NAME_DNSNAME_REGEXP_MATCH
public static final String NAME_RFC822NAME_REGEXP_MATCH
public static final String NAME_X500NAME_REGEXP_MATCH
public MatchFunction(String functionName)
MatchFunction
based on the given name.functionName
- the name of the standard match function, including
the complete namespaceIllegalArgumentException
- if the function is unknownpublic static Set getSupportedIdentifiers()
Set
containing all the function identifiers
supported by this class.Set
of String
spublic EvaluationResult evaluate(List inputs, EvaluationCtx context)
inputs
- a List
of Evaluatable
objects representing the arguments passed to the functioncontext
- an EvaluationCtx
so that the
Evaluatable
objects can be evaluatedEvaluationResult
representing the
function's resultCopyright © 2023 JBoss by Red Hat. All rights reserved.