Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    *  Copyright 2007-2013, Plutext Pty Ltd.
    *   
    *  This file is part of docx4j.
   
       docx4j is licensed under the Apache License, Version 2.0 (the "License"); 
       you may not use this file except in compliance with the License. 
   
       You may obtain a copy of the License at 
  
          http://www.apache.org/licenses/LICENSE-2.0 
  
      Unless required by applicable law or agreed to in writing, software 
      distributed under the License is distributed on an "AS IS" BASIS, 
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
      See the License for the specific language governing permissions and 
      limitations under the License.
  
   */
  
  
  package org.docx4j.wml; 
  
  

Java class for CT_MailMerge complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="CT_MailMerge">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="mainDocumentType" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_MailMergeDocType"/>
         <element name="linkToQuery" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
         <element name="dataType" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_MailMergeDataType"/>
         <element name="connectString" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="query" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="dataSource" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Rel" minOccurs="0"/>
         <element name="headerSource" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Rel" minOccurs="0"/>
         <element name="doNotSuppressBlankLines" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
         <element name="destination" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_MailMergeDest" minOccurs="0"/>
         <element name="addressFieldName" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="mailSubject" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="mailAsAttachment" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
         <element name="viewMergedData" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
         <element name="activeRecord" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <attribute name="val" use="required">
                   <simpleType>
                     <restriction base="{http://www.w3.org/2001/XMLSchema}integer">
                     </restriction>
                   </simpleType>
                 </attribute>
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="checkErrors" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <attribute name="val" use="required">
                   <simpleType>
                     <restriction base="{http://www.w3.org/2001/XMLSchema}integer">
                     </restriction>
                   </simpleType>
                 </attribute>
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="odso" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Odso" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "CT_MailMerge", propOrder = {
     "mainDocumentType",
     "linkToQuery",
     "dataType",
     "connectString",
     "query",
     "dataSource",
     "headerSource",
     "doNotSuppressBlankLines",
     "destination",
     "addressFieldName",
     "mailSubject",
     "mailAsAttachment",
     "viewMergedData",
     "activeRecord",
     "checkErrors",
     "odso"
 })
 public class CTMailMerge implements Child
 {
 
     @XmlElement(required = true)
     protected BooleanDefaultTrue linkToQuery;
     @XmlElement(required = true)
     protected CTMailMergeDataType dataType;
     protected CTMailMerge.Query query;
     protected CTRel dataSource;
     protected CTRel headerSource;
     protected CTMailMergeDest destination;
     protected CTMailMerge.MailSubject mailSubject;
     protected BooleanDefaultTrue viewMergedData;
     protected CTMailMerge.CheckErrors checkErrors;
     protected CTOdso odso;
     @XmlTransient
     private Object parent;

    
Gets the value of the mainDocumentType property.

Returns:
possible object is
 
         return ;
     }

    
Sets the value of the mainDocumentType property.

Parameters:
value allowed object is
 
     public void setMainDocumentType(CTMailMergeDocType value) {
         this. = value;
     }

    
Gets the value of the linkToQuery property.

Returns:
possible object is
 
     public BooleanDefaultTrue getLinkToQuery() {
         return ;
     }

    
Sets the value of the linkToQuery property.

Parameters:
value allowed object is
 
     public void setLinkToQuery(BooleanDefaultTrue value) {
         this. = value;
     }

    
Gets the value of the dataType property.

Returns:
possible object is
 
     public CTMailMergeDataType getDataType() {
         return ;
     }

    
Sets the value of the dataType property.

Parameters:
value allowed object is
 
     public void setDataType(CTMailMergeDataType value) {
         this. = value;
     }

    
Gets the value of the connectString property.

Returns:
possible object is
 
         return ;
     }

    
Sets the value of the connectString property.

Parameters:
value allowed object is
 
     public void setConnectString(CTMailMerge.ConnectString value) {
         this. = value;
     }

    
Gets the value of the query property.

Returns:
possible object is
 
     public CTMailMerge.Query getQuery() {
         return ;
     }

    
Sets the value of the query property.

Parameters:
value allowed object is
 
     public void setQuery(CTMailMerge.Query value) {
         this. = value;
     }

    
Gets the value of the dataSource property.

Returns:
possible object is
 
     public CTRel getDataSource() {
         return ;
     }

    
Sets the value of the dataSource property.

Parameters:
value allowed object is
 
     public void setDataSource(CTRel value) {
         this. = value;
     }

    
Gets the value of the headerSource property.

Returns:
possible object is
 
     public CTRel getHeaderSource() {
         return ;
     }

    
Sets the value of the headerSource property.

Parameters:
value allowed object is
 
     public void setHeaderSource(CTRel value) {
         this. = value;
     }

    
Gets the value of the doNotSuppressBlankLines property.

Returns:
possible object is
 
         return ;
     }

    
Sets the value of the doNotSuppressBlankLines property.

Parameters:
value allowed object is
 
     public void setDoNotSuppressBlankLines(BooleanDefaultTrue value) {
         this. = value;
     }

    
Gets the value of the destination property.

Returns:
possible object is
 
     public CTMailMergeDest getDestination() {
         return ;
     }

    
Sets the value of the destination property.

Parameters:
value allowed object is
 
     public void setDestination(CTMailMergeDest value) {
         this. = value;
     }

    
Gets the value of the addressFieldName property.

Returns:
possible object is
 
         return ;
     }

    
Sets the value of the addressFieldName property.

Parameters:
value allowed object is
 
     public void setAddressFieldName(CTMailMerge.AddressFieldName value) {
         this. = value;
     }

    
Gets the value of the mailSubject property.

Returns:
possible object is
 
     public CTMailMerge.MailSubject getMailSubject() {
         return ;
     }

    
Sets the value of the mailSubject property.

Parameters:
value allowed object is
 
     public void setMailSubject(CTMailMerge.MailSubject value) {
         this. = value;
     }

    
Gets the value of the mailAsAttachment property.

Returns:
possible object is
 
         return ;
     }

    
Sets the value of the mailAsAttachment property.

Parameters:
value allowed object is
 
     public void setMailAsAttachment(BooleanDefaultTrue value) {
         this. = value;
     }

    
Gets the value of the viewMergedData property.

Returns:
possible object is
 
         return ;
     }

    
Sets the value of the viewMergedData property.

Parameters:
value allowed object is
 
     public void setViewMergedData(BooleanDefaultTrue value) {
         this. = value;
     }

    
Gets the value of the activeRecord property.

Returns:
possible object is
 
         return ;
     }

    
Sets the value of the activeRecord property.

Parameters:
value allowed object is
 
     public void setActiveRecord(CTMailMerge.ActiveRecord value) {
         this. = value;
     }

    
Gets the value of the checkErrors property.

Returns:
possible object is
 
     public CTMailMerge.CheckErrors getCheckErrors() {
         return ;
     }

    
Sets the value of the checkErrors property.

Parameters:
value allowed object is
 
     public void setCheckErrors(CTMailMerge.CheckErrors value) {
         this. = value;
     }

    
Gets the value of the odso property.

Returns:
possible object is
 
     public CTOdso getOdso() {
         return ;
     }

    
Sets the value of the odso property.

Parameters:
value allowed object is
 
     public void setOdso(CTOdso value) {
         this. = value;
     }

    
Gets the parent object in the object tree representing the unmarshalled xml document.

Returns:
The parent object.
 
     public Object getParent() {
         return this.;
     }
 
     public void setParent(Object parent) {
         this. = parent;
     }

    
This method is invoked by the JAXB implementation on each instance when unmarshalling completes.

Parameters:
parent The parent object in the object tree.
unmarshaller The unmarshaller that generated the instance.
 
     public void afterUnmarshal(Unmarshaller unmarshallerObject parent) {
         setParent(parent);
     }


    

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <attribute name="val" use="required">
         <simpleType>
           <restriction base="{http://www.w3.org/2001/XMLSchema}integer">
           </restriction>
         </simpleType>
       </attribute>
     </restriction>
   </complexContent>
 </complexType>
 
 
     @XmlType(name = "")
     public static class ActiveRecord implements Child
     {
 
         @XmlAttribute(name = "val", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true)
         protected BigInteger val;
         @XmlTransient
         private Object parent;

        
Gets the value of the val property.

Returns:
possible object is
 
         public BigInteger getVal() {
             return ;
         }

        
Sets the value of the val property.

Parameters:
value allowed object is
 
         public void setVal(BigInteger value) {
             this. = value;
         }

        
Gets the parent object in the object tree representing the unmarshalled xml document.

Returns:
The parent object.
 
         public Object getParent() {
             return this.;
         }
 
         public void setParent(Object parent) {
             this. = parent;
         }

        
This method is invoked by the JAXB implementation on each instance when unmarshalling completes.

Parameters:
parent The parent object in the object tree.
unmarshaller The unmarshaller that generated the instance.
 
         public void afterUnmarshal(Unmarshaller unmarshallerObject parent) {
             setParent(parent);
         }
 
     }


    

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
     </restriction>
   </complexContent>
 </complexType>
 
 
     @XmlType(name = "")
     public static class AddressFieldName implements Child
     {
 
         @XmlAttribute(name = "val", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
         protected String val;
         @XmlTransient
         private Object parent;

        
Gets the value of the val property.

Returns:
possible object is
 
         public String getVal() {
             return ;
         }

        
Sets the value of the val property.

Parameters:
value allowed object is
 
         public void setVal(String value) {
             this. = value;
         }

        
Gets the parent object in the object tree representing the unmarshalled xml document.

Returns:
The parent object.
 
         public Object getParent() {
             return this.;
         }
 
         public void setParent(Object parent) {
             this. = parent;
         }

        
This method is invoked by the JAXB implementation on each instance when unmarshalling completes.

Parameters:
parent The parent object in the object tree.
unmarshaller The unmarshaller that generated the instance.
 
         public void afterUnmarshal(Unmarshaller unmarshallerObject parent) {
             setParent(parent);
         }
 
     }


    

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <attribute name="val" use="required">
         <simpleType>
           <restriction base="{http://www.w3.org/2001/XMLSchema}integer">
           </restriction>
         </simpleType>
       </attribute>
     </restriction>
   </complexContent>
 </complexType>
 
 
     @XmlType(name = "")
     public static class CheckErrors implements Child
     {
 
         @XmlAttribute(name = "val", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true)
         protected BigInteger val;
         @XmlTransient
         private Object parent;

        
Gets the value of the val property.

Returns:
possible object is
 
         public BigInteger getVal() {
             return ;
         }

        
Sets the value of the val property.

Parameters:
value allowed object is
 
         public void setVal(BigInteger value) {
             this. = value;
         }

        
Gets the parent object in the object tree representing the unmarshalled xml document.

Returns:
The parent object.
 
         public Object getParent() {
             return this.;
         }
 
         public void setParent(Object parent) {
             this. = parent;
         }

        
This method is invoked by the JAXB implementation on each instance when unmarshalling completes.

Parameters:
parent The parent object in the object tree.
unmarshaller The unmarshaller that generated the instance.
 
         public void afterUnmarshal(Unmarshaller unmarshallerObject parent) {
             setParent(parent);
         }
 
     }


    

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
     </restriction>
   </complexContent>
 </complexType>
 
 
     @XmlType(name = "")
     public static class ConnectString implements Child
     {
 
         @XmlAttribute(name = "val", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
         protected String val;
         @XmlTransient
         private Object parent;

        
Gets the value of the val property.

Returns:
possible object is
 
         public String getVal() {
             return ;
         }

        
Sets the value of the val property.

Parameters:
value allowed object is
 
         public void setVal(String value) {
             this. = value;
         }

        
Gets the parent object in the object tree representing the unmarshalled xml document.

Returns:
The parent object.
 
         public Object getParent() {
             return this.;
         }
 
         public void setParent(Object parent) {
             this. = parent;
         }

        
This method is invoked by the JAXB implementation on each instance when unmarshalling completes.

Parameters:
parent The parent object in the object tree.
unmarshaller The unmarshaller that generated the instance.
 
         public void afterUnmarshal(Unmarshaller unmarshallerObject parent) {
             setParent(parent);
         }
 
     }


    

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
     </restriction>
   </complexContent>
 </complexType>
 
 
     @XmlType(name = "")
     public static class MailSubject implements Child
     {
 
         @XmlAttribute(name = "val", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
         protected String val;
         @XmlTransient
         private Object parent;

        
Gets the value of the val property.

Returns:
possible object is
 
         public String getVal() {
             return ;
         }

        
Sets the value of the val property.

Parameters:
value allowed object is
 
         public void setVal(String value) {
             this. = value;
         }

        
Gets the parent object in the object tree representing the unmarshalled xml document.

Returns:
The parent object.
 
         public Object getParent() {
             return this.;
         }
 
         public void setParent(Object parent) {
             this. = parent;
         }

        
This method is invoked by the JAXB implementation on each instance when unmarshalling completes.

Parameters:
parent The parent object in the object tree.
unmarshaller The unmarshaller that generated the instance.
 
         public void afterUnmarshal(Unmarshaller unmarshallerObject parent) {
             setParent(parent);
         }
 
     }


    

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
     </restriction>
   </complexContent>
 </complexType>
 
    @XmlType(name = "")
    public static class Query implements Child
    {
        @XmlAttribute(name = "val", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
        protected String val;
        @XmlTransient
        private Object parent;

        
Gets the value of the val property.

Returns:
possible object is
        public String getVal() {
            return ;
        }

        
Sets the value of the val property.

Parameters:
value allowed object is
        public void setVal(String value) {
            this. = value;
        }

        
Gets the parent object in the object tree representing the unmarshalled xml document.

Returns:
The parent object.
        public Object getParent() {
            return this.;
        }
        public void setParent(Object parent) {
            this. = parent;
        }

        
This method is invoked by the JAXB implementation on each instance when unmarshalling completes.

Parameters:
parent The parent object in the object tree.
unmarshaller The unmarshaller that generated the instance.
        public void afterUnmarshal(Unmarshaller unmarshallerObject parent) {
            setParent(parent);
        }
    }
New to GrepCode? Check out our FAQ X