Class StringAttribute

    • Constructor Detail

      • StringAttribute

        public StringAttribute()
        Constructor.
    • Method Detail

      • setDefault

        public final void setDefault​(java.lang.String value)
        A default value for this attribute. Example:
        
             attributes:
               title: !string
                 default: The title
        Specified by:
        setDefault in class PrimitiveAttribute<java.lang.String>
        Parameters:
        value - The default value.
      • getMaxLength

        public final int getMaxLength()
      • setMaxLength

        public final void setMaxLength​(int maxLength)
        The maximum number of characters allowed for this field (default: unlimited).
        Parameters:
        maxLength - Maximum number of characters.
      • validateValue

        public final void validateValue​(java.lang.Object value)
        Description copied from class: PrimitiveAttribute
        Validation of the value from a request.
        Overrides:
        validateValue in class PrimitiveAttribute<java.lang.String>
        Parameters:
        value - The value from a request.
      • getValueType

        public java.lang.Class getValueType()
        Description copied from interface: Attribute
        Get the class of the value.
        Returns:
        the value class