- Timestamp:
- 10/10/10 04:47:16 (20 months ago)
- Location:
- trunk/docx4j/src/main/java/org/docx4j/customXmlProperties
- Files:
-
- 3 edited
-
DatastoreItem.java (modified) (1 diff)
-
ObjectFactory.java (modified) (2 diffs)
-
SchemaRefs.java (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/docx4j/src/main/java/org/docx4j/customXmlProperties/DatastoreItem.java
r818 r1255 40 40 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 41 41 * <sequence> 42 * <element ref="{http://schemas.openxmlformats.org/office document/2006/2/customXml}schemaRefs" minOccurs="0"/>42 * <element ref="{http://schemas.openxmlformats.org/officeDocument/2006/customXml}schemaRefs" minOccurs="0"/> 43 43 * </sequence> 44 44 * <attribute name="itemID" use="required"> -
trunk/docx4j/src/main/java/org/docx4j/customXmlProperties/ObjectFactory.java
r817 r1255 58 58 59 59 /** 60 * Create an instance of {@link SchemaRefs } 61 * 62 */ 63 public SchemaRefs createSchemaRefs() { 64 return new SchemaRefs(); 65 } 66 67 /** 60 68 * Create an instance of {@link DatastoreItem } 61 69 * … … 65 73 } 66 74 67 /**68 * Create an instance of {@link SchemaRefs }69 *70 */71 public SchemaRefs createSchemaRefs() {72 return new SchemaRefs();73 }74 75 75 } -
trunk/docx4j/src/main/java/org/docx4j/customXmlProperties/SchemaRefs.java
r818 r1255 21 21 package org.docx4j.customXmlProperties; 22 22 23 import java.util.ArrayList; 24 import java.util.List; 23 25 import javax.xml.bind.annotation.XmlAccessType; 24 26 import javax.xml.bind.annotation.XmlAccessorType; … … 38 40 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 39 41 * <sequence> 40 * <element name="schemaRef" m inOccurs="0">42 * <element name="schemaRef" maxOccurs="unbounded" minOccurs="0"> 41 43 * <complexType> 42 44 * <complexContent> … … 62 64 public class SchemaRefs { 63 65 64 protected SchemaRefs.SchemaRefschemaRef;66 protected List<SchemaRefs.SchemaRef> schemaRef; 65 67 66 68 /** 67 69 * Gets the value of the schemaRef property. 68 70 * 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 * 73 89 */ 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; 88 95 } 89 96
Note: See TracChangeset
for help on using the changeset viewer.
