Class DefaultSchemaValidator

  • All Implemented Interfaces:
    SchemaValidator

    public class DefaultSchemaValidator
    extends java.lang.Object
    implements SchemaValidator
    The default data validator - always returns true
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isValid​(Schema schema, java.lang.String path, byte[] data, java.util.List<org.apache.zookeeper.data.ACL> acl)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultSchemaValidator

        public DefaultSchemaValidator()
    • Method Detail

      • isValid

        public boolean isValid​(Schema schema,
                               java.lang.String path,
                               byte[] data,
                               java.util.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