org.autopipes
Interface JAXBWrapper

All Known Subinterfaces:
ConfigurationMgr, DrawingMgr
All Known Implementing Classes:
ConfigurationMgrImp, DrawingMgrImp

public interface JAXBWrapper

Common methods for objects instantiated from XML streams using JAXB.


Method Summary
 boolean isLoaded()
          Checks if contents is present.
 void load(org.xml.sax.InputSource in)
          Hydrates from a source.
 void load(org.w3c.dom.Node in)
          Hydrates from a node.
 void unload()
          Discards current contents.
 

Method Detail

load

void load(org.xml.sax.InputSource in)
          throws javax.xml.bind.JAXBException
Hydrates from a source.

Parameters:
in - the source
Throws:
javax.xml.bind.JAXBException

load

void load(org.w3c.dom.Node in)
          throws javax.xml.bind.JAXBException
Hydrates from a node.

Parameters:
in - the node
Throws:
javax.xml.bind.JAXBException

unload

void unload()
Discards current contents.


isLoaded

boolean isLoaded()
Checks if contents is present.

Returns:
true if it is