|
BeanIO 1.2.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.beanio.config.xml.XmlMapping
public class XmlMapping
Stores parsing information about an XML mapping file.
XmlMappingParser
Constructor Summary | |
---|---|
XmlMapping()
Constructs a new XmlMapping. |
|
XmlMapping(String name,
String location,
XmlMapping parent)
Constructs a new XmlMapping. |
Method Summary | |
---|---|
void |
addImport(XmlMapping child)
Adds an imported mapping file to this mapping file. |
boolean |
addTemplate(String name,
Element element)
Adds a template configuration to this mapping file. |
void |
addTypeHandlers(List<TypeHandlerConfig> list)
Recursively adds type handlers from all imported mapping files, and from this mapping file, to a given list. |
Element |
findTemplate(String name)
Recursively finds the template DOM element for a given template name in this mapping file and its parents. |
BeanIOConfig |
getConfiguration()
Returns the BeanIO configuration for this mapping file. |
String |
getLocation()
Returns the location of this mapping file (in URL format). |
String |
getName()
Returns the name of this mapping file. |
XmlMapping |
getParent()
Returns the parent mapping file that imported this mapping file, or null if this file is the "root" mapping file. |
boolean |
isDeclaredGlobalTypeHandler(String name)
Returns whether a global type handler was configured for the given type handler name. |
boolean |
isLoading(String url)
Returns whether a given mapping file is being actively loaded using its location to identify it. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XmlMapping()
public XmlMapping(String name, String location, XmlMapping parent)
name
- the mapping file name used for error messageslocation
- the location of the mapping (this should be
the absolute URL location of the file so that the same
mapping file will always have the same the location)parent
- the parent mappingMethod Detail |
---|
public String getName()
public String getLocation()
public BeanIOConfig getConfiguration()
public XmlMapping getParent()
public void addImport(XmlMapping child)
child
- the imported mapping filepublic boolean isLoading(String url)
url
- the mapping file location to check
public void addTypeHandlers(List<TypeHandlerConfig> list)
list
- the list to add all type handlers toopublic boolean addTemplate(String name, Element element)
name
- the name of the templateelement
- the 'template' DOM element
public Element findTemplate(String name)
name
- the name of the template to retrieve
public boolean isDeclaredGlobalTypeHandler(String name)
name
- the type handler name
public String toString()
toString
in class Object
|
BeanIO 1.2.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |