org.docx4j.openpackaging.parts
Class DocPropsCorePart

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.DocPropsCorePart

public class DocPropsCorePart
extends JaxbXmlPart


Field Summary
 
Fields inherited from class org.docx4j.openpackaging.parts.JaxbXmlPart
jaxbElement
 
Fields inherited from class org.docx4j.openpackaging.Base
partName
 
Constructor Summary
DocPropsCorePart()
           
DocPropsCorePart(PartName partName)
           
 
Method Summary
 void init()
           
 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.JaxbXmlPart
getJaxbElement, marshal, marshal, setJAXBContext, setJaxbElement
 
Methods inherited from class org.docx4j.openpackaging.parts.Part
getOwningRelationshipPart, getPackage, getRelationshipType, setOwningRelationshipPart, setPackage, setPartShortcut, 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

DocPropsCorePart

public DocPropsCorePart()
                 throws InvalidFormatException
Throws:
InvalidFormatException

DocPropsCorePart

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

init

public void init()

unmarshal

public java.lang.Object unmarshal(java.io.InputStream is)
                           throws javax.xml.bind.JAXBException
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