Class ReferenceFormat

    • Constructor Detail

      • ReferenceFormat

        public ReferenceFormat()
    • Method Detail

      • setType

        public void setType​(java.lang.String type)
        Accessor for Jackson set the map of the properties allowed for the object.
      • setMax

        public void setMax​(int max)
        Overrides:
        setMax in class Format
      • setMin

        public void setMin​(java.lang.Integer min)
        Overrides:
        setMin in class Format
      • validate

        public void validate​(com.fasterxml.jackson.databind.JsonNode node,
                             java.util.function.Consumer<java.lang.String> fieldReport,
                             ValidatorEngine validator)
        Specified by:
        validate in class Format
      • walk

        public void walk​(java.util.function.Consumer<Format> consumer)
        Description copied from class: Format
        Execute an action on each node of the TypeDef tree. E.g. to resolve type name of KindReference
        Specified by:
        walk in class Format
        Parameters:
        consumer - the action to do on the node
      • debugInfo

        public java.lang.String debugInfo()
        Description copied from class: Format
        Return a short partial description of the type, useful of DSL users
        Specified by:
        debugInfo in class Format
        Returns:
        a description of the type (e.g. {"$foo":..., "$bar":... })
      • resolve

        protected void resolve​(Schema schema)
        Description copied from class: Format
        Second phase of initialization, when the Format is associated to the Schema
        Specified by:
        resolve in class Format
        Parameters:
        schema - the schema it belongs to.