org.raml.model.parameter
Class AbstractParam

java.lang.Object
  extended by org.raml.model.parameter.AbstractParam
Direct Known Subclasses:
FormParameter, Header, QueryParameter, UriParameter

public class AbstractParam
extends Object


Field Summary
protected  org.slf4j.Logger logger
           
 
Constructor Summary
AbstractParam()
           
AbstractParam(String displayName, ParamType type, boolean required)
           
 
Method Summary
 String getDefaultValue()
           
 String getDescription()
           
 String getDisplayName()
           
 List<String> getEnumeration()
           
 String getExample()
           
 Double getMaximum()
           
 Integer getMaxLength()
           
 Double getMinimum()
           
 Integer getMinLength()
           
 String getPattern()
           
 ParamType getType()
           
 boolean isRepeat()
           
 boolean isRequired()
           
 void setDefaultValue(String defaultValue)
           
 void setDescription(String description)
           
 void setDisplayName(String displayName)
           
 void setEnumeration(List<String> enumeration)
           
 void setExample(String example)
           
 void setMaximum(Double maximum)
           
 void setMaxLength(Integer maxLength)
           
 void setMinimum(Double minimum)
           
 void setMinLength(Integer minLength)
           
 void setPattern(String pattern)
           
 void setRepeat(boolean repeat)
           
 void setRequired(boolean required)
           
 void setType(ParamType type)
           
 boolean validate(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.slf4j.Logger logger
Constructor Detail

AbstractParam

public AbstractParam()

AbstractParam

public AbstractParam(String displayName,
                     ParamType type,
                     boolean required)
Method Detail

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.