Class ArgumentTypeDescription
java.lang.Object
org.springframework.extensions.webscripts.AbstractBaseDescription
org.springframework.extensions.webscripts.ArgumentTypeDescription
- All Implemented Interfaces:
BaseDescription
Webscript argument description
- Author:
- drq
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorArgumentTypeDescription(String shortName, String description, String defaultValue) Constructor with shortName, description and defaultValue -
Method Summary
Modifier and TypeMethodDescriptionbooleancompare(ArgumentTypeDescription newArgumentTypeDescription) Utility function for comparing this ArgumentTypeDescription with another ArgumentTypeDescription instance.booleanstatic ArgumentTypeDescriptionReturns a new instance of ArgumentTypeDescriptionvoidparse(org.dom4j.Element elem) Populates fields from given XML element without validationvoidsetDefaultValue(String defaultValue) voidsetRequired(boolean required) toString()Methods inherited from class org.springframework.extensions.webscripts.AbstractBaseDescription
compareField, getDescription, getId, getShortName, setDescription, setId, setShortName, validateRootElement
-
Constructor Details
-
ArgumentTypeDescription
Constructor with shortName, description and defaultValue- Parameters:
shortName- Stringdescription- StringdefaultValue- String
-
ArgumentTypeDescription
public ArgumentTypeDescription()Default constructor
-
-
Method Details
-
getDefaultValue
- Returns:
- the defaultValue
-
setDefaultValue
- 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
-
newInstance
Returns a new instance of ArgumentTypeDescription- Returns:
- a new instance of ArgumentTypeDescription
-
compare
Utility function for comparing this ArgumentTypeDescription with another ArgumentTypeDescription instance.- Parameters:
newArgumentTypeDescription- ArgumentTypeDescription instance to be compared to- Returns:
- true if they are different
-