public class StringMetaData extends BaseColumnMetaData
name| Constructor and Description |
|---|
StringMetaData() |
StringMetaData(java.lang.String name)
Default constructor with no restrictions on allowable strings
|
StringMetaData(java.lang.String name,
java.lang.String mustMatchRegex,
java.lang.Integer minLength,
java.lang.Integer maxLength) |
| Modifier and Type | Method and Description |
|---|---|
StringMetaData |
clone() |
ColumnType |
getColumnType()
Get the type of column
|
boolean |
isValid(java.lang.Object input)
Is the given object valid for this column,
given the column type and any
restrictions given by the
ColumnMetaData object?
|
boolean |
isValid(Writable writable)
Is the given Writable valid for this column, given the column type and any restrictions given by the
ColumnMetaData object?
|
java.lang.String |
toString() |
getName, setNamepublic StringMetaData()
public StringMetaData(java.lang.String name)
public StringMetaData(java.lang.String name,
java.lang.String mustMatchRegex,
java.lang.Integer minLength,
java.lang.Integer maxLength)
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 lengthmaxLength - Max allowable String length. If null: no restriction on max String lengthpublic ColumnType getColumnType()
ColumnMetaDatapublic boolean isValid(Writable writable)
ColumnMetaDatawritable - Writable to checkpublic boolean isValid(java.lang.Object input)
input - object to checkpublic StringMetaData clone()
clone in interface ColumnMetaDataclone in class BaseColumnMetaDatapublic java.lang.String toString()
toString in class java.lang.Object