Class StringMetaData

    • Constructor Detail

      • StringMetaData

        public StringMetaData()
      • StringMetaData

        public StringMetaData​(String name)
        Default constructor with no restrictions on allowable strings
      • StringMetaData

        public StringMetaData​(String name,
                              String mustMatchRegex,
                              Integer minLength,
                              Integer maxLength)
        Parameters:
        mustMatchRegex - Nullable. If not null: this is a regex that each string must match in order for the entry to be considered valid.
        minLength - Min allowable String length. If null: no restriction on min String length
        maxLength - Max allowable String length. If null: no restriction on max String length
    • Method Detail

      • getColumnType

        public ColumnType getColumnType()
        Description copied from interface: ColumnMetaData
        Get the type of column
      • isValid

        public boolean isValid​(Writable writable)
        Description copied from interface: ColumnMetaData
        Is the given Writable valid for this column, given the column type and any restrictions given by the ColumnMetaData object?
        Parameters:
        writable - Writable to check
        Returns:
        true if value, false if invalid
      • isValid

        public boolean isValid​(Object input)
        Is the given object valid for this column, given the column type and any restrictions given by the ColumnMetaData object?
        Parameters:
        input - object to check
        Returns:
        true if value, false if invalid