public class ArgumentTypeDescription extends AbstractBaseDescription
| Constructor and Description |
|---|
ArgumentTypeDescription()
Default constructor
|
ArgumentTypeDescription(String shortName,
String description,
String defaultValue)
Constructor with shortName, description and defaultValue
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
compare(ArgumentTypeDescription newArgumentTypeDescription)
Utility function for comparing this ArgumentTypeDescription with another ArgumentTypeDescription instance.
|
String |
getDefaultValue() |
boolean |
isRequired() |
static ArgumentTypeDescription |
newInstance()
Returns a new instance of ArgumentTypeDescription
|
void |
parse(org.dom4j.Element elem)
Populates fields from given XML element without validation
|
void |
setDefaultValue(String defaultValue) |
void |
setRequired(boolean required) |
String |
toString() |
compareField, getDescription, getId, getShortName, setDescription, setId, setShortName, validateRootElementpublic ArgumentTypeDescription(String shortName, String description, String defaultValue)
shortName - Stringdescription - StringdefaultValue - Stringpublic ArgumentTypeDescription()
public String getDefaultValue()
public void setDefaultValue(String defaultValue)
defaultValue - the defaultValue to setpublic void parse(org.dom4j.Element elem)
AbstractBaseDescriptionparse in class AbstractBaseDescriptionelem - root element for parsingpublic boolean isRequired()
public void setRequired(boolean required)
required - the required to setpublic static ArgumentTypeDescription newInstance()
public boolean compare(ArgumentTypeDescription newArgumentTypeDescription)
newArgumentTypeDescription - ArgumentTypeDescription instance to be compared toCopyright © 2005–2019 Alfresco Software. All rights reserved.