public class StringProperty extends AbstractProperty implements Property
Modifier and Type | Class and Description |
---|---|
static class |
StringProperty.Format |
Modifier and Type | Field and Description |
---|---|
protected String |
_default |
protected List<String> |
_enum |
protected Integer |
maxLength |
protected Integer |
minLength |
protected String |
pattern |
static String |
TYPE |
access, allowEmptyValue, description, example, format, name, position, readOnly, required, title, type, vendorExtensions, xml
Constructor and Description |
---|
StringProperty() |
StringProperty(String format) |
StringProperty(StringProperty.Format format) |
Modifier and Type | Method and Description |
---|---|
StringProperty |
_default(String _default) |
StringProperty |
_enum(List<String> value) |
StringProperty |
_enum(String value) |
boolean |
equals(Object obj) |
StringProperty |
example(String example) |
String |
getDefault() |
List<String> |
getEnum() |
Integer |
getMaxLength() |
Integer |
getMinLength() |
String |
getPattern() |
int |
hashCode() |
static boolean |
isType(String type,
String format) |
StringProperty |
maxLength(Integer maxLength) |
StringProperty |
minLength(Integer minLength) |
StringProperty |
pattern(String pattern) |
StringProperty |
readOnly() |
StringProperty |
required(boolean required) |
void |
setDefault(String _default) |
void |
setEnum(List<String> _enum) |
void |
setMaxLength(Integer maxLength) |
void |
setMinLength(Integer minLength) |
void |
setPattern(String pattern) |
StringProperty |
vendorExtension(String key,
Object obj) |
StringProperty |
xml(Xml xml) |
allowEmptyValue, description, getAccess, getAllowEmptyValue, getDescription, getExample, getFormat, getName, getPosition, getReadOnly, getRequired, getTitle, getType, getVendorExtensions, getXml, rename, setAccess, setAllowEmptyValue, setDescription, setExample, setExample, setFormat, setName, setPosition, setReadOnly, setRequired, setTitle, setType, setVendorExtension, setVendorExtensionMap, setVendorExtensions, setXml, title
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
description, getAccess, getAllowEmptyValue, getDescription, getExample, getFormat, getName, getPosition, getReadOnly, getRequired, getTitle, getType, getVendorExtensions, getXml, rename, setAccess, setAllowEmptyValue, setDescription, setExample, setExample, setName, setPosition, setReadOnly, setRequired, setTitle, setXml, title
public static final String TYPE
protected Integer minLength
protected Integer maxLength
protected String pattern
protected String _default
public StringProperty()
public StringProperty(StringProperty.Format format)
public StringProperty(String format)
public StringProperty pattern(String pattern)
public StringProperty xml(Xml xml)
public StringProperty example(String example)
public StringProperty minLength(Integer minLength)
public StringProperty maxLength(Integer maxLength)
public StringProperty _enum(String value)
public StringProperty _enum(List<String> value)
public StringProperty _default(String _default)
public StringProperty vendorExtension(String key, Object obj)
public StringProperty required(boolean required)
public StringProperty readOnly()
readOnly
in class AbstractProperty
public Integer getMinLength()
public void setMinLength(Integer minLength)
public Integer getMaxLength()
public void setMaxLength(Integer maxLength)
public String getPattern()
public void setPattern(String pattern)
public String getDefault()
public void setDefault(String _default)
setDefault
in interface Property
setDefault
in class AbstractProperty
public int hashCode()
hashCode
in class AbstractProperty
public boolean equals(Object obj)
equals
in class AbstractProperty
Copyright © 2019. All Rights Reserved.