Class StringSchema

    • Field Detail

      • maxLength

        private java.lang.Integer maxLength
        this defines the maximum length of the string.
      • minLength

        private java.lang.Integer minLength
        this defines the minimum length of the string.
      • pattern

        private java.lang.String pattern
        this provides a regular expression that a string instance MUST match in order to be valid. Regular expressions SHOULD follow the regular expression specification from ECMA 262/Perl 5
    • Constructor Detail

      • StringSchema

        public StringSchema()
    • Method Detail

      • getMaxLength

        public java.lang.Integer getMaxLength()
      • getMinLength

        public java.lang.Integer getMinLength()
      • getPattern

        public java.lang.String getPattern()
      • getType

        public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes getType()
        Specified by:
        getType in class JsonSchema
      • isStringSchema

        public boolean isStringSchema()
        Description copied from class: JsonSchema
        determine if this JsonSchema is an StringSchema.
        Overrides:
        isStringSchema in class JsonSchema
        Returns:
        true if this JsonSchema is an StringSchema, false otherwise
      • setMaxLength

        public void setMaxLength​(java.lang.Integer maxLength)
      • setMinLength

        public void setMinLength​(java.lang.Integer minLength)
      • setPattern

        public void setPattern​(java.lang.String pattern)
      • _equals

        protected boolean _equals​(StringSchema that)