public class ValidationFunctions extends Object
Constructor and Description |
---|
ValidationFunctions() |
Modifier and Type | Method and Description |
---|---|
RecordHolder |
findTag(ExecutionContext ctx,
String name)
Finds a tag by a given name which can be a simple name or full name.
|
ListHolder |
validate(ExecutionContext ctx,
CollectionHolder collection,
Property property,
CollectionHolder tags,
MapHolder context)
Validates a given collection of records.
|
ListHolder |
validate(ExecutionContext ctx,
RecordHolder record,
Property property,
CollectionHolder tags,
MapHolder context)
Validates a given record.
|
public ListHolder validate(ExecutionContext ctx, RecordHolder record, Property property, CollectionHolder tags, MapHolder context) throws ErrorException
ctx
- record
- property
- tags
- context
- ErrorException
public ListHolder validate(ExecutionContext ctx, CollectionHolder collection, Property property, CollectionHolder tags, MapHolder context) throws ErrorException
ctx
- collection
- property
- tags
- context
- ErrorException
public RecordHolder findTag(ExecutionContext ctx, String name) throws ErrorException
null
if the tag is not found. If the simple name is
given and it is ambiguous, an exception is thrown.ctx
- name
- null
ErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.