org.docx4j.openpackaging.parts.WordprocessingML
Class GlossaryDocumentPart

java.lang.Object
  extended by org.docx4j.openpackaging.Base
      extended by org.docx4j.openpackaging.parts.Part
          extended by org.docx4j.openpackaging.parts.JaxbXmlPart
              extended by org.docx4j.openpackaging.parts.WordprocessingML.DocumentPart
                  extended by org.docx4j.openpackaging.parts.WordprocessingML.GlossaryDocumentPart

public final class GlossaryDocumentPart
extends DocumentPart


Field Summary
 
Fields inherited from class org.docx4j.openpackaging.parts.JaxbXmlPart
jaxbElement
 
Fields inherited from class org.docx4j.openpackaging.Base
partName
 
Constructor Summary
GlossaryDocumentPart(PartName partName)
           
 
Method Summary
 void marshal(org.w3c.dom.Node node)
          Marshal the content tree rooted at jaxbElement into a DOM tree.
 java.lang.Object unmarshal(java.io.InputStream is)
          Unmarshal XML data from the specified InputStream and return the resulting content tree.
 
Methods inherited from class org.docx4j.openpackaging.parts.WordprocessingML.DocumentPart
getCommentsPart, getDocumentSettingsPart, getEndNotesPart, getFontTablePart, getFootnotesPart, getNumberingDefinitionsPart, getStyleDefinitionsPart, getThemePart, getWebSettingsPart, setPartShortcut
 
Methods inherited from class org.docx4j.openpackaging.parts.JaxbXmlPart
getJaxbElement, marshal, setJAXBContext, setJaxbElement
 
Methods inherited from class org.docx4j.openpackaging.parts.Part
getOwningRelationshipPart, getPackage, getRelationshipType, setOwningRelationshipPart, setPackage, setRelationshipType
 
Methods inherited from class org.docx4j.openpackaging.Base
addTargetPart, getContentType, getPartName, getRelationshipsPart, setContentType, setRelationships
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlossaryDocumentPart

public GlossaryDocumentPart(PartName partName)
                     throws InvalidFormatException
Throws:
InvalidFormatException
Method Detail

marshal

public void marshal(org.w3c.dom.Node node)
             throws javax.xml.bind.JAXBException
Description copied from class: JaxbXmlPart
Marshal the content tree rooted at jaxbElement into a DOM tree. Used by SaveToJCR.

Overrides:
marshal in class JaxbXmlPart
Parameters:
node - DOM nodes will be added as children of this node. This parameter must be a Node that accepts children (Document, DocumentFragment, or Element)
Throws:
javax.xml.bind.JAXBException - If any unexpected problem occurs during the marshalling.

unmarshal

public java.lang.Object unmarshal(java.io.InputStream is)
                           throws javax.xml.bind.JAXBException
Description copied from class: JaxbXmlPart
Unmarshal XML data from the specified InputStream and return the resulting content tree. Validation event location information may be incomplete when using this form of the unmarshal API.

Implements Unmarshal Global Root Element.

Specified by:
unmarshal in class JaxbXmlPart
Parameters:
is - the InputStream to unmarshal XML data from
Returns:
the newly created root object of the java content tree
Throws:
javax.xml.bind.JAXBException - If any unexpected errors occur while unmarshalling