Class JAXBAssociation

java.lang.Object
org.docx4j.jaxb.JAXBAssociation

public class JAXBAssociation
extends java.lang.Object
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
  • Constructor Summary

    Constructors
    Constructor Description
    JAXBAssociation​(org.w3c.dom.Node n, java.lang.Object o)  
  • Method Summary

    Modifier and Type Method Description
    org.w3c.dom.Node getDomNode()  
    java.lang.Object getJaxbObject()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JAXBAssociation

      public JAXBAssociation​(org.w3c.dom.Node n, java.lang.Object o)
  • Method Details

    • getDomNode

      public org.w3c.dom.Node getDomNode()
      Returns:
      the domNode
    • getJaxbObject

      public java.lang.Object getJaxbObject()
      Returns:
      the jaxbObject