public final class QueryRequestMessageValidator
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.Map<java.lang.String,java.lang.Object> |
validate(ch.iec.tc57._2011.schema.message.RequestMessage message)
Validates the given request message.
|
static void |
validateParameterNames(java.lang.String queryId,
java.util.Set<java.lang.String> receivedParameterNames)
Checks that the operation only received the queryId with no aditional parametes.
|
static void |
validateParameterNames(java.lang.String queryId,
java.util.Set<java.lang.String> validParameterNames,
java.util.Set<java.lang.String> receivedParameterNames)
Checks that the operation only received valid (known) filter names.
|
public static java.util.Map<java.lang.String,java.lang.Object> validate(ch.iec.tc57._2011.schema.message.RequestMessage message)
throws QueryOperationException
message - Request message to be validated.QueryOperationException - if the request is not valid.public static void validateParameterNames(java.lang.String queryId,
java.util.Set<java.lang.String> receivedParameterNames)
throws QueryOperationException
queryId - Query identification (DataType value)receivedParameterNames - Received set of parameter names.QueryOperationException - if the receivedParameterNames set has at least a parameter
name that is not included in the validParameterNames set.public static void validateParameterNames(java.lang.String queryId,
java.util.Set<java.lang.String> validParameterNames,
java.util.Set<java.lang.String> receivedParameterNames)
throws QueryOperationException
queryId - Query identification (DataType value)validParameterNames - Valid (understood) parameter for the query.receivedParameterNames - Received set of parameter names.QueryOperationException - if the receivedParameterNames set has at least a parameter
name that is not included in the validParameterNames set.