Package jadex.platform.service.cli
Class ArgumentInfo
- java.lang.Object
-
- jadex.platform.service.cli.ArgumentInfo
-
public class ArgumentInfo extends java.lang.ObjectThe argument info provides info about an arguments including its name, type, defaultvalue, description and a converter.
-
-
Field Summary
Fields Modifier and Type Field Description protected IStringObjectConverterconverterThe converter.protected java.lang.ObjectdefaultvalueThe default value.protected java.lang.StringdescriptionThe description.protected java.lang.StringnameThe name.protected java.lang.Class<?>typeThe type.
-
Constructor Summary
Constructors Constructor Description ArgumentInfo()Create a new argument info.ArgumentInfo(java.lang.String name, java.lang.Class<?> type, java.lang.Object defval, java.lang.String description, IStringObjectConverter converter)Create a new argument info.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IStringObjectConvertergetConverter()Get the converter.java.lang.ObjectgetDefaultValue()Get the defaultValue.java.lang.StringgetDescription()Get the description.java.lang.StringgetName()Get the name.java.lang.Class<?>getType()Get the type.java.lang.StringgetUsageText()Get the usage text.voidsetConverter(IStringObjectConverter converter)Set the converter.voidsetDefaultValue(java.lang.Object defaultValue)Set the defaultValue.voidsetDescription(java.lang.String description)Set the description.voidsetName(java.lang.String name)Set the name.voidsetType(java.lang.Class<?> type)Set the type.
-
-
-
Field Detail
-
name
protected java.lang.String name
The name.
-
type
protected java.lang.Class<?> type
The type.
-
defaultvalue
protected java.lang.Object defaultvalue
The default value.
-
description
protected java.lang.String description
The description.
-
converter
protected IStringObjectConverter converter
The converter.
-
-
Constructor Detail
-
ArgumentInfo
public ArgumentInfo()
Create a new argument info.
-
ArgumentInfo
public ArgumentInfo(java.lang.String name, java.lang.Class<?> type, java.lang.Object defval, java.lang.String description, IStringObjectConverter converter)Create a new argument info.
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name.- Returns:
- The name.
-
setName
public void setName(java.lang.String name)
Set the name.- Parameters:
name- The name to set.
-
getType
public java.lang.Class<?> getType()
Get the type.- Returns:
- The type.
-
setType
public void setType(java.lang.Class<?> type)
Set the type.- Parameters:
type- The type to set.
-
getDescription
public java.lang.String getDescription()
Get the description.- Returns:
- The description.
-
setDescription
public void setDescription(java.lang.String description)
Set the description.- Parameters:
description- The description to set.
-
getConverter
public IStringObjectConverter getConverter()
Get the converter.- Returns:
- The converter.
-
setConverter
public void setConverter(IStringObjectConverter converter)
Set the converter.- Parameters:
converter- The converter to set.
-
getDefaultValue
public java.lang.Object getDefaultValue()
Get the defaultValue.- Returns:
- The defaultValue.
-
setDefaultValue
public void setDefaultValue(java.lang.Object defaultValue)
Set the defaultValue.- Parameters:
defaultValue- The defaultValue to set.
-
getUsageText
public java.lang.String getUsageText()
Get the usage text.- Returns:
- The usage text.
-
-