All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.docx4j.jaxb.JAXBAssociation Maven / Gradle / Ivy

Go to download

docx4j is a library which helps you to work with the Office Open XML file format as used in docx documents, pptx presentations, and xlsx spreadsheets.

There is a newer version: 6.1.2
Show newest version
package org.docx4j.jaxb;

import org.w3c.dom.Node;

/**
 * Represent an association between a DOM node and a JAXB object.
 * 
 * Note, from the javadoc, that this association is partial; not all XML elements have associated JAXB objects,
 * and not all JAXB objects have associated XML elements.
 * 
 * This happens (both Sun/Oracle, and MOXy) for an element implemented as a xsd:simpleType        		
 * eg /s:worksheet[1]/s:sheetData[1]/s:row[1]/s:c[1]/s:v[1]
 * 
 * which becomes a String field in some object 
 *         		
 * Also for attributes, I'd guess.
 * 
 * Hence this design.
 * 
 * @author jharrop
 *
 */
public class JAXBAssociation {

	/**
	 * @return the domNode
	 */
	public Node getDomNode() {
		return domNode;
	}
	Node domNode;

	/**
	 * @return the jaxbObject
	 */
	public Object getJaxbObject() {
		return jaxbObject;
	}
	Object jaxbObject;
	
	public JAXBAssociation(Node n, Object o) {
		this.domNode = n;
		this.jaxbObject = o;
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy