All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.event.ruler.Field Maven / Gradle / Ivy

package software.amazon.event.ruler;

/**
 * Represents the name and value of a data field in an event that Ruler will match.
 *
 * Both name and value are represented as strings.  Also provided for each field is information about its position
 *  in any arrays the event may contain. This is used to guard against a rule matching a set of fields which are in
 *  peer elements of an array, a situation which it turns out is perceived by users as a bug.
 */
class Field {
    final String name;
    final String val;
    final ArrayMembership arrayMembership;

    Field(final String name, final String val, final ArrayMembership arrayMembership) {
        this.name = name;
        this.val = val;
        this.arrayMembership = arrayMembership;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy