Changeset 1504


Ignore:
Timestamp:
05/20/11 04:50:02 (12 months ago)
Author:
jharrop
Message:

Implement ContentAccessor?

Location:
trunk/docx4j/src/main/java/org/docx4j/wml
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/docx4j/src/main/java/org/docx4j/wml/Ftr.java

    r925 r1504  
    6363@XmlRootElement(name = "ftr") 
    6464public class Ftr 
    65     implements Child 
     65    implements Child, ContentAccessor 
    6666{ 
    6767 
     
    153153     *  
    154154     */ 
     155    @Deprecated         
    155156    public List<Object> getEGBlockLevelElts() { 
    156157        if (egBlockLevelElts == null) { 
     
    160161    } 
    161162 
     163    public List<Object> getContent() { 
     164        if (egBlockLevelElts == null) { 
     165            egBlockLevelElts = new ArrayList<Object>(); 
     166        } 
     167        return this.egBlockLevelElts; 
     168    } 
     169     
    162170    /** 
    163171     * Gets the parent object in the object tree representing the unmarshalled xml document. 
  • trunk/docx4j/src/main/java/org/docx4j/wml/Hdr.java

    r925 r1504  
    6363@XmlRootElement(name = "hdr") 
    6464public class Hdr 
    65     implements Child 
     65    implements Child, ContentAccessor 
    6666{ 
    6767 
     
    9999    }) 
    100100    protected List<Object> egBlockLevelElts; 
     101     
     102         
    101103    @XmlTransient 
    102104    private Object parent; 
     
    153155     *  
    154156     */ 
     157    @Deprecated     
    155158    public List<Object> getEGBlockLevelElts() { 
    156159        if (egBlockLevelElts == null) { 
     
    161164 
    162165    /** 
     166     * Get the content of this element. 
     167     * @since 2.7 
     168     */ 
     169    public List<Object> getContent() { 
     170        if (egBlockLevelElts == null) { 
     171            egBlockLevelElts = new ArrayList<Object>(); 
     172        } 
     173        return this.egBlockLevelElts; 
     174    } 
     175     
     176    /** 
    163177     * Gets the parent object in the object tree representing the unmarshalled xml document. 
    164178     *  
Note: See TracChangeset for help on using the changeset viewer.