Save This Page
Home » dom4j-1.6.1 » org.dom4j.jaxb » [javadoc | source]
org.dom4j.jaxb
public class: JAXBModifier [javadoc | source]
java.lang.Object
   org.dom4j.jaxb.JAXBSupport
      org.dom4j.jaxb.JAXBModifier
Reads an XML document using SAX and writes its content to the provided org.dom4j.io.XMLWriter . Modifications must be provided by org.dom4j.jaxb.JAXBObjectModifier objects, which are called prior to writing the XML fragment they are registered for.
Constructor:
 public JAXBModifier(String contextPath) 
    Creates a new JAXBModifier for the given JAXB context path. This is the Java package where JAXB can find the generated XML classes. This package MUST contain jaxb.properties!
 public JAXBModifier(String contextPath,
    ClassLoader classloader) 
    Creates a new JAXBModifier for the given JAXB context path, using the given java.lang.ClassLoader . This is the Java package where JAXB can find the generated XML classes. This package MUST contain jaxb.properties!
 public JAXBModifier(String contextPath,
    OutputFormat outputFormat) 
    Creates a new JAXBModifier for the given JAXB context path. The specified org.dom4j.io.OutputFormat will be used while writing the XML stream.
 public JAXBModifier(String contextPath,
    ClassLoader classloader,
    OutputFormat outputFormat) 
Method from org.dom4j.jaxb.JAXBModifier Summary:
addObjectModifier,   isPruneElements,   modify,   modify,   modify,   modify,   modify,   modify,   modify,   modify,   modify,   removeObjectModifier,   resetObjectModifiers,   setOutput,   setOutput,   setOutput,   setPruneElements
Methods from org.dom4j.jaxb.JAXBSupport:
marshal,   unmarshal
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.dom4j.jaxb.JAXBModifier Detail:
 public  void addObjectModifier(String path,
    JAXBObjectModifier mod) 
    Adds the JAXBObjectModifier to be called when the specified xml path is encounted while parsing the source.
 public boolean isPruneElements() 
 public Document modify(File source) throws IOException, DocumentException 
 public Document modify(InputSource source) throws IOException, DocumentException 
 public Document modify(InputStream source) throws IOException, DocumentException 
 public Document modify(Reader r) throws IOException, DocumentException 
 public Document modify(String url) throws IOException, DocumentException 
    Parses the the given URL or filename.
 public Document modify(URL source) throws IOException, DocumentException 
    Parses the the given URL.
 public Document modify(File source,
    Charset charset) throws IOException, DocumentException 
 public Document modify(InputStream source,
    String systemId) throws IOException, DocumentException 
 public Document modify(Reader source,
    String systemId) throws IOException, DocumentException 
 public  void removeObjectModifier(String path) 
    Removes the JAXBObjectModifier from the event based processor, for the specified element path.
 public  void resetObjectModifiers() 
 public  void setOutput(File file) throws IOException 
    Sets the Output to write the (modified) xml document to.
 public  void setOutput(OutputStream outputStream) throws IOException 
    Sets the Output to write the (modified) xml document to.
 public  void setOutput(Writer writer) throws IOException 
    Sets the Output to write the (modified) xml document to.
 public  void setPruneElements(boolean pruneElements) 
    Define whether the modified org.dom4j.Document must only be written to the output and pruned from the DOM4J tree.