|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface ITypeConverter
An interface for converting strings in an XML file into java objects.
| Method Summary | |
|---|---|
XObject |
convertToType(Assembler assembler,
String s,
Class<?> c,
Class<?> context,
ConfigElement currentTag)
Convert the string to the given type. |
void |
init(Namespace ns)
Intialize this type converter. |
| Method Detail |
|---|
void init(Namespace ns)
ns - the Namespace that owns this type converter.
XObject convertToType(Assembler assembler,
String s,
Class<?> c,
Class<?> context,
ConfigElement currentTag)
throws Exception
s - the string to convertc - the type to convert tocontext - the class that the resultant object will be set on. (may be null)currentTag - the current element being parsed, this is useful for reporting errors, getting the current line number, etc.
Exception - if the string cannot be converted
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||