Constructor and Description |
---|
Argument()
Create a new argument.
|
Argument(String name,
String description,
String classname)
Create a new argument.
|
Argument(String name,
String description,
String classname,
Object defaultvalue)
Create a new argument.
|
Modifier and Type | Method and Description |
---|---|
String |
getClassname()
Get the typename.
|
Class<?> |
getClazz(ClassLoader classloader,
String[] imports)
Get the clazz.
|
Object |
getDefaultValue()
Get the default value.
|
String |
getDescription()
Get the description.
|
String |
getName()
Get the name.
|
void |
setClassname(String classname)
Set the class name.
|
void |
setDefaultValue(Object defaultvalue)
Set the defaultvalue.
|
void |
setDescription(String description)
Set the description.
|
void |
setName(String name)
Set the name.
|
String |
toString()
Get the string representation.
|
boolean |
validate(String input)
Check the validity of an input.
|
public String getName()
public void setName(String name)
name
- The name to set.public String getDescription()
getDescription
in interface IArgument
public void setDescription(String description)
description
- The description to set.public String getClassname()
getClassname
in interface IArgument
public void setClassname(String classname)
classname
- The class name to set.public Class<?> getClazz(ClassLoader classloader, String[] imports)
public Object getDefaultValue()
getDefaultValue
in interface IArgument
public void setDefaultValue(Object defaultvalue)
defaultvalue
- The defaultvalue to set.public boolean validate(String input)
Copyright © 2012. All Rights Reserved.