Package jadex.platform.service.cli
Class ArgumentInfo
- java.lang.Object
-
- jadex.platform.service.cli.ArgumentInfo
-
public class ArgumentInfo extends java.lang.Object
The 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 IStringObjectConverter
converter
The converter.protected java.lang.Object
defaultvalue
The default value.protected java.lang.String
description
The description.protected java.lang.String
name
The name.protected java.lang.Class<?>
type
The 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 IStringObjectConverter
getConverter()
Get the converter.java.lang.Object
getDefaultValue()
Get the defaultValue.java.lang.String
getDescription()
Get the description.java.lang.String
getName()
Get the name.java.lang.Class<?>
getType()
Get the type.java.lang.String
getUsageText()
Get the usage text.void
setConverter(IStringObjectConverter converter)
Set the converter.void
setDefaultValue(java.lang.Object defaultValue)
Set the defaultValue.void
setDescription(java.lang.String description)
Set the description.void
setName(java.lang.String name)
Set the name.void
setType(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.
-
-