Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   *  Copyright 2007-2008, 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.vml.officedrawing;
 
This object contains factory methods for each Java content interface and Java element interface generated in the org.docx4j.vml.officedrawing 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 _Lock_QNAME = new QName("urn:schemas-microsoft-com:office:office""lock");
     private final static QName _Signatureline_QNAME = new QName("urn:schemas-microsoft-com:office:office""signatureline");
     private final static QName _Callout_QNAME = new QName("urn:schemas-microsoft-com:office:office""callout");
     private final static QName _Fill_QNAME = new QName("urn:schemas-microsoft-com:office:office""fill");
     private final static QName _OLEObject_QNAME = new QName("urn:schemas-microsoft-com:office:office""OLEObject");
     private final static QName _Skew_QNAME = new QName("urn:schemas-microsoft-com:office:office""skew");
     private final static QName _Clippath_QNAME = new QName("urn:schemas-microsoft-com:office:office""clippath");
     private final static QName _Complex_QNAME = new QName("urn:schemas-microsoft-com:office:office""complex");
     private final static QName _Left_QNAME = new QName("urn:schemas-microsoft-com:office:office""left");
     private final static QName _Shapedefaults_QNAME = new QName("urn:schemas-microsoft-com:office:office""shapedefaults");
     private final static QName _Top_QNAME = new QName("urn:schemas-microsoft-com:office:office""top");
     private final static QName _Ink_QNAME = new QName("urn:schemas-microsoft-com:office:office""ink");
     private final static QName _Bottom_QNAME = new QName("urn:schemas-microsoft-com:office:office""bottom");
     private final static QName _Column_QNAME = new QName("urn:schemas-microsoft-com:office:office""column");
     private final static QName _Extrusion_QNAME = new QName("urn:schemas-microsoft-com:office:office""extrusion");
     private final static QName _Diagram_QNAME = new QName("urn:schemas-microsoft-com:office:office""diagram");
     private final static QName _Shapelayout_QNAME = new QName("urn:schemas-microsoft-com:office:office""shapelayout");
     private final static QName _Right_QNAME = new QName("urn:schemas-microsoft-com:office:office""right");

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

    
Create an instance of
 
     public CTProxy createCTProxy() {
         return new CTProxy();
     }

    
Create an instance of
 
     public CTOLEObject createCTOLEObject() {
         return new CTOLEObject();
     }

    
Create an instance of
 
     public CTRelation createCTRelation() {
         return new CTRelation();
     }

    
Create an instance of
    public CTInk createCTInk() {
        return new CTInk();
    }

    
Create an instance of
        return new CTRegroupTable();
    }

    
Create an instance of
        return new CTRelationTable();
    }

    
Create an instance of
    public CTR createCTR() {
        return new CTR();
    }

    
Create an instance of
    public CTIdMap createCTIdMap() {
        return new CTIdMap();
    }

    
Create an instance of
    public CTColorMenu createCTColorMenu() {
        return new CTColorMenu();
    }

    
Create an instance of
    public CTColorMru createCTColorMru() {
        return new CTColorMru();
    }

    
Create an instance of
    public CTComplex createCTComplex() {
        return new CTComplex();
    }

    
Create an instance of
        return new CTSignatureLine();
    }

    
Create an instance of
    public CTLock createCTLock() {
        return new CTLock();
    }

    
Create an instance of
        return new CTShapeDefaults();
    }

    
Create an instance of
    public CTClipPath createCTClipPath() {
        return new CTClipPath();
    }

    
Create an instance of
    public CTRules createCTRules() {
        return new CTRules();
    }

    
Create an instance of
    public CTEntry createCTEntry() {
        return new CTEntry();
    }

    
Create an instance of
    public CTCallout createCTCallout() {
        return new CTCallout();
    }

    
Create an instance of
    public CTFill createCTFill() {
        return new CTFill();
    }

    
Create an instance of
    public CTExtrusion createCTExtrusion() {
        return new CTExtrusion();
    }

    
Create an instance of
        return new CTStrokeChild();
    }

    
Create an instance of
        return new CTShapeLayout();
    }

    
Create an instance of
    public CTSkew createCTSkew() {
        return new CTSkew();
    }

    
Create an instance of
    public CTDiagram createCTDiagram() {
        return new CTDiagram();
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:office:office", name = "lock")
    public JAXBElement<CTLockcreateLock(CTLock value) {
        return new JAXBElement<CTLock>(CTLock.classnullvalue);
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:office:office", name = "signatureline")
        return new JAXBElement<CTSignatureLine>(CTSignatureLine.classnullvalue);
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:office:office", name = "callout")
    public JAXBElement<CTCalloutcreateCallout(CTCallout value) {
        return new JAXBElement<CTCallout>(CTCallout.classnullvalue);
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:office:office", name = "fill")
    public JAXBElement<CTFillcreateFill(CTFill value) {
        return new JAXBElement<CTFill>(CTFill.classnullvalue);
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:office:office", name = "OLEObject")
        return new JAXBElement<CTOLEObject>(CTOLEObject.classnullvalue);
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:office:office", name = "skew")
    public JAXBElement<CTSkewcreateSkew(CTSkew value) {
        return new JAXBElement<CTSkew>(CTSkew.classnullvalue);
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:office:office", name = "clippath")
    public JAXBElement<CTClipPathcreateClippath(CTClipPath value) {
        return new JAXBElement<CTClipPath>(CTClipPath.classnullvalue);
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:office:office", name = "complex")
    public JAXBElement<CTComplexcreateComplex(CTComplex value) {
        return new JAXBElement<CTComplex>(CTComplex.classnullvalue);
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:office:office", name = "left")
        return new JAXBElement<CTStrokeChild>(CTStrokeChild.classnullvalue);
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:office:office", name = "shapedefaults")
        return new JAXBElement<CTShapeDefaults>(CTShapeDefaults.classnullvalue);
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:office:office", name = "top")
        return new JAXBElement<CTStrokeChild>(CTStrokeChild.classnullvalue);
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:office:office", name = "ink")
    public JAXBElement<CTInkcreateInk(CTInk value) {
        return new JAXBElement<CTInk>(CTInk.classnullvalue);
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:office:office", name = "bottom")
        return new JAXBElement<CTStrokeChild>(CTStrokeChild.classnullvalue);
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:office:office", name = "column")
        return new JAXBElement<CTStrokeChild>(CTStrokeChild.classnullvalue);
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:office:office", name = "extrusion")
        return new JAXBElement<CTExtrusion>(CTExtrusion.classnullvalue);
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:office:office", name = "diagram")
    public JAXBElement<CTDiagramcreateDiagram(CTDiagram value) {
        return new JAXBElement<CTDiagram>(CTDiagram.classnullvalue);
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:office:office", name = "shapelayout")
        return new JAXBElement<CTShapeLayout>(CTShapeLayout.classnullvalue);
    }

    
Create an instance of <>}
    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:office:office", name = "right")
        return new JAXBElement<CTStrokeChild>(CTStrokeChild.classnullvalue);
    }
New to GrepCode? Check out our FAQ X