Class ArgumentTypeDescription
- java.lang.Object
-
- org.springframework.extensions.webscripts.AbstractBaseDescription
-
- org.springframework.extensions.webscripts.ArgumentTypeDescription
-
- All Implemented Interfaces:
BaseDescription
public class ArgumentTypeDescription extends AbstractBaseDescription
Webscript argument description- Author:
- drq
-
-
Constructor Summary
Constructors Constructor Description ArgumentTypeDescription()Default constructorArgumentTypeDescription(java.lang.String shortName, java.lang.String description, java.lang.String defaultValue)Constructor with shortName, description and defaultValue
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancompare(ArgumentTypeDescription newArgumentTypeDescription)Utility function for comparing this ArgumentTypeDescription with another ArgumentTypeDescription instance.java.lang.StringgetDefaultValue()booleanisRequired()static ArgumentTypeDescriptionnewInstance()Returns a new instance of ArgumentTypeDescriptionvoidparse(org.dom4j.Element elem)Populates fields from given XML element without validationvoidsetDefaultValue(java.lang.String defaultValue)voidsetRequired(boolean required)java.lang.StringtoString()-
Methods inherited from class org.springframework.extensions.webscripts.AbstractBaseDescription
compareField, getDescription, getId, getShortName, setDescription, setId, setShortName, validateRootElement
-
-
-
-
Constructor Detail
-
ArgumentTypeDescription
public ArgumentTypeDescription(java.lang.String shortName, java.lang.String description, java.lang.String defaultValue)Constructor with shortName, description and defaultValue- Parameters:
shortName- Stringdescription- StringdefaultValue- String
-
ArgumentTypeDescription
public ArgumentTypeDescription()
Default constructor
-
-
Method Detail
-
getDefaultValue
public java.lang.String getDefaultValue()
- Returns:
- the defaultValue
-
setDefaultValue
public void setDefaultValue(java.lang.String defaultValue)
- Parameters:
defaultValue- the defaultValue to set
-
parse
public void parse(org.dom4j.Element elem)
Description copied from class:AbstractBaseDescriptionPopulates fields from given XML element without validation- Overrides:
parsein classAbstractBaseDescription- Parameters:
elem- root element for parsing
-
isRequired
public boolean isRequired()
- Returns:
- the required
-
setRequired
public void setRequired(boolean required)
- Parameters:
required- the required to set
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
newInstance
public static ArgumentTypeDescription newInstance()
Returns a new instance of ArgumentTypeDescription- Returns:
- a new instance of ArgumentTypeDescription
-
compare
public boolean compare(ArgumentTypeDescription newArgumentTypeDescription)
Utility function for comparing this ArgumentTypeDescription with another ArgumentTypeDescription instance.- Parameters:
newArgumentTypeDescription- ArgumentTypeDescription instance to be compared to- Returns:
- true if they are different
-
-