Class XMLBinder
- java.lang.Object
-
- org.locationtech.jts.jump.util.java2xml.XMLBinder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
XMLBinder.CustomConverter
Sometimes you need to use a CustomConverter rather than a .java2xml file i.e.protected static interface
XMLBinder.SpecVisitor
static class
XMLBinder.XMLBinderException
-
Constructor Summary
Constructors Constructor Description XMLBinder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
specElements
protected List specElements(Class c) throws XMLBinder.XMLBinderException, org.jdom2.JDOMException, IOException
- Throws:
XMLBinder.XMLBinderException
org.jdom2.JDOMException
IOException
-
addCustomConverter
public void addCustomConverter(Class c, XMLBinder.CustomConverter converter)
-
visit
protected void visit(List specElements, XMLBinder.SpecVisitor visitor, Class c) throws Exception
- Parameters:
c
- for error messages- Throws:
Exception
-
specifyingTypeExplicitly
protected boolean specifyingTypeExplicitly(Class c) throws XMLBinder.XMLBinderException
- Throws:
XMLBinder.XMLBinderException
-
setter
public Method setter(Class c, String field) throws XMLBinder.XMLBinderException
- Throws:
XMLBinder.XMLBinderException
-
hasCustomConverter
protected boolean hasCustomConverter(Class fieldClass)
-
-