| Modifier and Type | Class and Description |
|---|---|
static interface |
XMLBinder.CustomConverter
Sometimes you need to use a CustomConverter rather than a .java2xml
file i.e. when the class is from a third party (e.g. a Swing class) and you
can't add a .java2xml file to the jar.
|
protected static interface |
XMLBinder.SpecVisitor |
static class |
XMLBinder.XMLBinderException |
| Constructor and Description |
|---|
XMLBinder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCustomConverter(Class c,
XMLBinder.CustomConverter converter) |
protected Class |
fieldClass(Method setter) |
protected boolean |
hasCustomConverter(Class fieldClass) |
Method |
setter(Class c,
String field) |
protected List |
specElements(Class c) |
protected boolean |
specifyingTypeExplicitly(Class c) |
Object |
toJava(String text,
Class c) |
protected String |
toXML(Object object) |
protected void |
visit(List specElements,
XMLBinder.SpecVisitor visitor,
Class c) |
protected List specElements(Class c) throws XMLBinder.XMLBinderException, org.jdom.JDOMException, IOException
XMLBinder.XMLBinderExceptionorg.jdom.JDOMExceptionIOExceptionpublic void addCustomConverter(Class c, XMLBinder.CustomConverter converter)
protected void visit(List specElements, XMLBinder.SpecVisitor visitor, Class c) throws Exception
c - for error messagesExceptionprotected boolean specifyingTypeExplicitly(Class c) throws XMLBinder.XMLBinderException
XMLBinder.XMLBinderExceptionpublic Method setter(Class c, String field) throws XMLBinder.XMLBinderException
XMLBinder.XMLBinderExceptionprotected boolean hasCustomConverter(Class fieldClass)
Copyright © 2015. All rights reserved.