Skip to content

Package io.github.qishr.cascara.schema.rule

Class UniqueItemsRule

java.lang.Object
        io.github.qishr.cascara.schema.rule.AbstractValidationRule
                io.github.qishr.cascara.schema.rule.UniqueItemsRule

All Implemented Interfaces:
    ValidationRule


public class UniqueItemsRule
extends AbstractValidationRule

Constructor Summary

Constructor Description
UniqueItemsRule(boolean active)

Method Summary

Modifier and Type Method Description
public boolean validate(AstNode node, String path, Reporter reporter)
public boolean validateValue(Object value, String path, Reporter reporter)
public boolean isActive()

Methods inherited from AbstractValidationRule

error, error

Method Details

validate

public boolean validate(AstNode node, String path, Reporter reporter)

Specified By:

ValidationRule


validateValue

public boolean validateValue(Object value, String path, Reporter reporter)

Specified By:

ValidationRule


isActive

public boolean isActive()