Package org.dom4j

Examples of org.dom4j.DocumentFactory


/*     */
/* 108 */     if (dataType != null) {
/* 109 */       return new DatatypeElement(qname, dataType);
/*     */     }
/*     */
/* 112 */     DocumentFactory factory = qname.getDocumentFactory();
/*     */
/* 114 */     if ((factory instanceof DatatypeElementFactory)) {
/* 115 */       DatatypeElementFactory dtFactory = (DatatypeElementFactory)factory;
/* 116 */       dataType = dtFactory.getChildElementXSDatatype(qname);
/*     */
View Full Code Here


    protected void setAttributeList(List attributeList) {
        this.attributes = attributeList;
    }

    protected DocumentFactory getDocumentFactory() {
        DocumentFactory factory = qname.getDocumentFactory();

        return (factory != null) ? factory : DOCUMENT_FACTORY;
    }
View Full Code Here

     * @param project
     */
    public void write(Writer writer, Model project)
        throws java.io.IOException
    {
        Document document = new DocumentFactory().createDocument();
        writeModel( project, "project", document );
        OutputFormat format = OutputFormat.createPrettyPrint();
        format.setLineSeparator( System.getProperty( "line.separator" ) );
        XMLWriter serializer = new XMLWriter( writer, format );
        serializer.write( document );
View Full Code Here

TOP

Related Classes of org.dom4j.DocumentFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.