Ignore:
Timestamp:
09/06/10 11:40:42 (21 months ago)
Author:
jharrop
Message:

Avoid things of the form:

extends JaxbXmlPart?<JAXBElement<xyz>>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docx4j/src/main/java/org/docx4j/openpackaging/parts/WordprocessingML/StyleDefinitionsPart.java

    r1096 r1203  
    7373         
    7474         
    75     /** 
    76      * Unmarshal XML data from the specified InputStream and return the  
    77      * resulting content tree.  Validation event location information may 
    78      * be incomplete when using this form of the unmarshal API. 
    79      * 
    80      * <p> 
    81      * Implements <a href="#unmarshalGlobal">Unmarshal Global Root Element</a>. 
    82      *  
    83      * @param is the InputStream to unmarshal XML data from 
    84      * @return the newly created root object of the java content tree  
    85      * 
    86      * @throws JAXBException  
    87      *     If any unexpected errors occur while unmarshalling 
    88      */ 
    89         @Override 
    90     public Styles unmarshal( java.io.InputStream is ) throws JAXBException { 
    91          
    92                 try { 
    93                          
    94 //                      if (jc==null) { 
    95 //                              setJAXBContext(Context.jc);                              
    96 //                      } 
    97                                      
    98                         Unmarshaller u = jc.createUnmarshaller(); 
    99                          
    100                         //u.setSchema(org.docx4j.jaxb.WmlSchema.schema); 
    101                         u.setEventHandler(new org.docx4j.jaxb.JaxbValidationEventHandler()); 
    102  
    103                         log.info("unmarshalling " + this.getClass().getName() + " \n\n" );                                                                       
    104                                                  
    105                         jaxbElement = (Styles) u.unmarshal( is ); 
    106                          
    107                         log.info("\n\n" + this.getClass().getName() + " unmarshalled \n\n" );                                                                    
    108  
    109                 } catch (Exception e ) { 
    110                         e.printStackTrace(); 
    111                 } 
    112          
    113                 return jaxbElement; 
    114          
    115     } 
    11675     
    11776        @Override 
Note: See TracChangeset for help on using the changeset viewer.