Class DefaultSchemaValidator

java.lang.Object
org.apache.curator.framework.schema.DefaultSchemaValidator
All Implemented Interfaces:
SchemaValidator

public class DefaultSchemaValidator extends Object implements SchemaValidator
The default data validator - always returns true
  • Constructor Details

    • DefaultSchemaValidator

      public DefaultSchemaValidator()
  • Method Details

    • isValid

      public boolean isValid(Schema schema, String path, byte[] data, List<org.apache.zookeeper.data.ACL> acl)
      Specified by:
      isValid in interface SchemaValidator
      Parameters:
      schema - the schema being validated
      path - the path being operated on
      data - data or null
      acl - acls or null
      Returns:
      true if valid