Class JsonSchemaFilterListener

  • All Implemented Interfaces:
    NodeChangeListener

    public class JsonSchemaFilterListener
    extends java.lang.Object
    implements NodeChangeListener
    Listens to document models in order to drive the visibility of DocumentNodes based upon their schema and the "visibleWhen" meta-validator.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isNodeVisible​(DocumentNode node)
      Determine if a node should be visible based upon any VisibleWhen filters in its schema.
      void onNodeChanged​(DocumentNode node, java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)  
      • Methods inherited from class java.lang.Object

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

      • JsonSchemaFilterListener

        public JsonSchemaFilterListener()
    • Method Detail

      • onNodeChanged

        public void onNodeChanged​(DocumentNode node,
                                  java.lang.String propertyName,
                                  java.lang.Object oldValue,
                                  java.lang.Object newValue)
        Specified by:
        onNodeChanged in interface NodeChangeListener
      • isNodeVisible

        public static boolean isNodeVisible​(DocumentNode node)
        Determine if a node should be visible based upon any VisibleWhen filters in its schema.