Ignore:
Timestamp:
10/10/10 04:47:16 (20 months ago)
Author:
jharrop
Message:

SchemaRefs? can contain multiple SchemaRef?. Correct XSD to reflect this and re-generate.

Location:
trunk/docx4j/src/main/java/org/docx4j/customXmlProperties
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/docx4j/src/main/java/org/docx4j/customXmlProperties/DatastoreItem.java

    r818 r1255  
    4040 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 
    4141 *       <sequence> 
    42  *         <element ref="{http://schemas.openxmlformats.org/officedocument/2006/2/customXml}schemaRefs" minOccurs="0"/> 
     42 *         <element ref="{http://schemas.openxmlformats.org/officeDocument/2006/customXml}schemaRefs" minOccurs="0"/> 
    4343 *       </sequence> 
    4444 *       <attribute name="itemID" use="required"> 
  • trunk/docx4j/src/main/java/org/docx4j/customXmlProperties/ObjectFactory.java

    r817 r1255  
    5858 
    5959    /** 
     60     * Create an instance of {@link SchemaRefs } 
     61     *  
     62     */ 
     63    public SchemaRefs createSchemaRefs() { 
     64        return new SchemaRefs(); 
     65    } 
     66 
     67    /** 
    6068     * Create an instance of {@link DatastoreItem } 
    6169     *  
     
    6573    } 
    6674 
    67     /** 
    68      * Create an instance of {@link SchemaRefs } 
    69      *  
    70      */ 
    71     public SchemaRefs createSchemaRefs() { 
    72         return new SchemaRefs(); 
    73     } 
    74  
    7575} 
  • trunk/docx4j/src/main/java/org/docx4j/customXmlProperties/SchemaRefs.java

    r818 r1255  
    2121package org.docx4j.customXmlProperties; 
    2222 
     23import java.util.ArrayList; 
     24import java.util.List; 
    2325import javax.xml.bind.annotation.XmlAccessType; 
    2426import javax.xml.bind.annotation.XmlAccessorType; 
     
    3840 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 
    3941 *       <sequence> 
    40  *         <element name="schemaRef" minOccurs="0"> 
     42 *         <element name="schemaRef" maxOccurs="unbounded" minOccurs="0"> 
    4143 *           <complexType> 
    4244 *             <complexContent> 
     
    6264public class SchemaRefs { 
    6365 
    64     protected SchemaRefs.SchemaRef schemaRef; 
     66    protected List<SchemaRefs.SchemaRef> schemaRef; 
    6567 
    6668    /** 
    6769     * Gets the value of the schemaRef property. 
    6870     *  
    69      * @return 
    70      *     possible object is 
    71      *     {@link SchemaRefs.SchemaRef } 
    72      *      
     71     * <p> 
     72     * This accessor method returns a reference to the live list, 
     73     * not a snapshot. Therefore any modification you make to the 
     74     * returned list will be present inside the JAXB object. 
     75     * This is why there is not a <CODE>set</CODE> method for the schemaRef property. 
     76     *  
     77     * <p> 
     78     * For example, to add a new item, do as follows: 
     79     * <pre> 
     80     *    getSchemaRef().add(newItem); 
     81     * </pre> 
     82     *  
     83     *  
     84     * <p> 
     85     * Objects of the following type(s) are allowed in the list 
     86     * {@link SchemaRefs.SchemaRef } 
     87     *  
     88     *  
    7389     */ 
    74     public SchemaRefs.SchemaRef getSchemaRef() { 
    75         return schemaRef; 
    76     } 
    77  
    78     /** 
    79      * Sets the value of the schemaRef property. 
    80      *  
    81      * @param value 
    82      *     allowed object is 
    83      *     {@link SchemaRefs.SchemaRef } 
    84      *      
    85      */ 
    86     public void setSchemaRef(SchemaRefs.SchemaRef value) { 
    87         this.schemaRef = value; 
     90    public List<SchemaRefs.SchemaRef> getSchemaRef() { 
     91        if (schemaRef == null) { 
     92            schemaRef = new ArrayList<SchemaRefs.SchemaRef>(); 
     93        } 
     94        return this.schemaRef; 
    8895    } 
    8996 
Note: See TracChangeset for help on using the changeset viewer.