org.raml.model.parameter
Class AbstractParam
java.lang.Object
org.raml.model.parameter.AbstractParam
- Direct Known Subclasses:
- FormParameter, Header, QueryParameter, UriParameter
public class AbstractParam
- extends Object
|
Field Summary |
protected org.slf4j.Logger |
logger
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final org.slf4j.Logger logger
AbstractParam
public AbstractParam()
AbstractParam
public AbstractParam(String displayName,
ParamType type,
boolean required)
setDisplayName
public void setDisplayName(String displayName)
setDescription
public void setDescription(String description)
setType
public void setType(ParamType type)
setRequired
public void setRequired(boolean required)
getDisplayName
public String getDisplayName()
getDescription
public String getDescription()
getType
public ParamType getType()
isRequired
public boolean isRequired()
isRepeat
public boolean isRepeat()
setRepeat
public void setRepeat(boolean repeat)
getDefaultValue
public String getDefaultValue()
getExample
public String getExample()
getEnumeration
public List<String> getEnumeration()
setEnumeration
public void setEnumeration(List<String> enumeration)
getPattern
public String getPattern()
setPattern
public void setPattern(String pattern)
getMinLength
public Integer getMinLength()
setMinLength
public void setMinLength(Integer minLength)
getMaxLength
public Integer getMaxLength()
setMaxLength
public void setMaxLength(Integer maxLength)
getMinimum
public Double getMinimum()
setMinimum
public void setMinimum(Double minimum)
getMaximum
public Double getMaximum()
setMaximum
public void setMaximum(Double maximum)
setDefaultValue
public void setDefaultValue(String defaultValue)
setExample
public void setExample(String example)
validate
public boolean validate(String value)
Copyright © 2013. All rights reserved.