Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   *  Copyright 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.w15; 
 
This object contains factory methods for each Java content interface and Java element interface generated in the org.docx4j.w15 package.

An ObjectFactory allows you to programatically construct new instances of the Java representation for XML content. The Java representation of XML content can consist of schema derived interfaces and classes representing the binding of schema type definitions, element declarations and model groups. Factory methods for each of these are provided in this class.

 
 public class ObjectFactory {
 
     private final static QName _RepeatingSectionItem_QNAME = new QName("http://schemas.microsoft.com/office/word/2012/wordml""repeatingSectionItem");
     private final static QName _Color_QNAME = new QName("http://schemas.microsoft.com/office/word/2012/wordml""color");
     private final static QName _CommentsEx_QNAME = new QName("http://schemas.microsoft.com/office/word/2012/wordml""commentsEx");
     private final static QName _RepeatingSection_QNAME = new QName("http://schemas.microsoft.com/office/word/2012/wordml""repeatingSection");
     private final static QName _People_QNAME = new QName("http://schemas.microsoft.com/office/word/2012/wordml""people");
     private final static QName _Appearance_QNAME = new QName("http://schemas.microsoft.com/office/word/2012/wordml""appearance");
     private final static QName _DocId_QNAME = new QName("http://schemas.microsoft.com/office/word/2012/wordml""docId");
     private final static QName _WebExtensionCreated_QNAME = new QName("http://schemas.microsoft.com/office/word/2012/wordml""webExtensionCreated");
     private final static QName _ChartTrackingRefBased_QNAME = new QName("http://schemas.microsoft.com/office/word/2012/wordml""chartTrackingRefBased");
     private final static QName _FootnoteColumns_QNAME = new QName("http://schemas.microsoft.com/office/word/2012/wordml""footnoteColumns");
     private final static QName _DataBinding_QNAME = new QName("http://schemas.microsoft.com/office/word/2012/wordml""dataBinding");
     private final static QName _Collapsed_QNAME = new QName("http://schemas.microsoft.com/office/word/2012/wordml""collapsed");
     private final static QName _WebExtensionLinked_QNAME = new QName("http://schemas.microsoft.com/office/word/2012/wordml""webExtensionLinked");

    
Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.docx4j.w15
 
     public ObjectFactory() {
     }

    
Create an instance of
 
         return new CTSdtAppearance();
     }

    
Create an instance of
 
     public CTCommentsEx createCTCommentsEx() {
         return new CTCommentsEx();
     }

    
Create an instance of
 
     public CTPeople createCTPeople() {
         return new CTPeople();
     }

    
Create an instance of
        return new CTSdtRepeatedSection();
    }

    
Create an instance of
    public CTGuid createCTGuid() {
        return new CTGuid();
    }

    
Create an instance of
        return new CTPresenceInfo();
    }

    
Create an instance of
    public CTPerson createCTPerson() {
        return new CTPerson();
    }

    
Create an instance of
    public CTCommentEx createCTCommentEx() {
        return new CTCommentEx();
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "http://schemas.microsoft.com/office/word/2012/wordml", name = "repeatingSectionItem")
        return new JAXBElement<CTEmpty>(CTEmpty.classnullvalue);
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "http://schemas.microsoft.com/office/word/2012/wordml", name = "color")
    public JAXBElement<CTColorcreateColor(CTColor value) {
        return new JAXBElement<CTColor>(CTColor.classnullvalue);
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "http://schemas.microsoft.com/office/word/2012/wordml", name = "commentsEx")
        return new JAXBElement<CTCommentsEx>(CTCommentsEx.classnullvalue);
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "http://schemas.microsoft.com/office/word/2012/wordml", name = "repeatingSection")
        return new JAXBElement<CTSdtRepeatedSection>(CTSdtRepeatedSection.classnullvalue);
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "http://schemas.microsoft.com/office/word/2012/wordml", name = "people")
    public JAXBElement<CTPeoplecreatePeople(CTPeople value) {
        return new JAXBElement<CTPeople>(CTPeople.classnullvalue);
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "http://schemas.microsoft.com/office/word/2012/wordml", name = "appearance")
        return new JAXBElement<CTSdtAppearance>(CTSdtAppearance.classnullvalue);
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "http://schemas.microsoft.com/office/word/2012/wordml", name = "docId")
    public JAXBElement<CTGuidcreateDocId(CTGuid value) {
        return new JAXBElement<CTGuid>(CTGuid.classnullvalue);
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "http://schemas.microsoft.com/office/word/2012/wordml", name = "webExtensionCreated")
        return new JAXBElement<BooleanDefaultTrue>(BooleanDefaultTrue.classnullvalue);
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "http://schemas.microsoft.com/office/word/2012/wordml", name = "chartTrackingRefBased")
        return new JAXBElement<BooleanDefaultTrue>(BooleanDefaultTrue.classnullvalue);
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "http://schemas.microsoft.com/office/word/2012/wordml", name = "footnoteColumns")
        return new JAXBElement<CTDecimalNumber>(CTDecimalNumber.classnullvalue);
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "http://schemas.microsoft.com/office/word/2012/wordml", name = "dataBinding")
        return new JAXBElement<CTDataBinding>(CTDataBinding.classnullvalue);
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "http://schemas.microsoft.com/office/word/2012/wordml", name = "collapsed")
        return new JAXBElement<BooleanDefaultTrue>(BooleanDefaultTrue.classnullvalue);
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "http://schemas.microsoft.com/office/word/2012/wordml", name = "webExtensionLinked")
        return new JAXBElement<BooleanDefaultTrue>(BooleanDefaultTrue.classnullvalue);
    }
New to GrepCode? Check out our FAQ X