Changeset 1741 for trunk/docx4j/src/main/java/org
- Timestamp:
- 01/05/12 03:06:51 (5 months ago)
- Location:
- trunk/docx4j/src/main/java/org/docx4j/wml
- Files:
-
- 1 added
- 2 edited
-
CTCompat.java (modified) (6 diffs)
-
CTCompatSetting.java (added)
-
ObjectFactory.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/docx4j/src/main/java/org/docx4j/wml/CTCompat.java
r1129 r1741 1 1 /* 2 * Copyright 2007-20 08, Plutext Pty Ltd.2 * Copyright 2007-2012, Plutext Pty Ltd. 3 3 * 4 4 * This file is part of docx4j. … … 22 22 package org.docx4j.wml; 23 23 24 import java.util.ArrayList; 25 import java.util.List; 24 26 import javax.xml.bind.Unmarshaller; 25 27 import javax.xml.bind.annotation.XmlAccessType; … … 105 107 * <element name="useAnsiKerningPairs" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/> 106 108 * <element name="cachedColBalance" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/> 109 * <element name="compatSetting" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_CompatSetting" maxOccurs="unbounded" minOccurs="0"/> 107 110 * </sequence> 108 111 * </restriction> … … 179 182 "doNotVertAlignInTxbx", 180 183 "useAnsiKerningPairs", 181 "cachedColBalance" 184 "cachedColBalance", 185 "compatSetting" 182 186 }) 183 187 public class CTCompat … … 250 254 protected BooleanDefaultTrue useAnsiKerningPairs; 251 255 protected BooleanDefaultTrue cachedColBalance; 256 protected List<CTCompatSetting> compatSetting; 252 257 @XmlTransient 253 258 private Object parent; … … 1811 1816 public void setCachedColBalance(BooleanDefaultTrue value) { 1812 1817 this.cachedColBalance = value; 1818 } 1819 1820 /** 1821 * Gets the value of the compatSetting property. 1822 * 1823 * <p> 1824 * This accessor method returns a reference to the live list, 1825 * not a snapshot. Therefore any modification you make to the 1826 * returned list will be present inside the JAXB object. 1827 * This is why there is not a <CODE>set</CODE> method for the compatSetting property. 1828 * 1829 * <p> 1830 * For example, to add a new item, do as follows: 1831 * <pre> 1832 * getCompatSetting().add(newItem); 1833 * </pre> 1834 * 1835 * 1836 * <p> 1837 * Objects of the following type(s) are allowed in the list 1838 * {@link CTCompatSetting } 1839 * 1840 * 1841 */ 1842 public List<CTCompatSetting> getCompatSetting() { 1843 if (compatSetting == null) { 1844 compatSetting = new ArrayList<CTCompatSetting>(); 1845 } 1846 return this.compatSetting; 1813 1847 } 1814 1848 -
trunk/docx4j/src/main/java/org/docx4j/wml/ObjectFactory.java
r1471 r1741 343 343 return new CTCompat(); 344 344 } 345 346 /** 347 * Create an instance of {@link CTCompatSetting } 348 * 349 */ 350 public CTCompatSetting createCTCompatSetting() { 351 return new CTCompatSetting(); 352 } 345 353 346 354 /**
Note: See TracChangeset
for help on using the changeset viewer.
