|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.aria.helper.ArgumentConverter
public abstract class ArgumentConverter
An interfaces for helpers that convert a string representation of type to a target type.
Copyright (c) Formaria Ltd.,
License: see license.txt
| Constructor Summary | |
|---|---|
ArgumentConverter()
|
|
| Method Summary | |
|---|---|
abstract java.lang.Object |
convert(java.lang.String value)
Convert a string value to a destination argument type |
boolean |
forType(java.lang.Class type)
Is the conversion allowed for a particular context |
abstract java.lang.Class |
getTarget()
Get the target class follwoing conversion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArgumentConverter()
| Method Detail |
|---|
public abstract java.lang.Class getTarget()
public abstract java.lang.Object convert(java.lang.String value)
value -
public boolean forType(java.lang.Class type)
type - the object type (class) where the argument will be used
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||