All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.docx4j.xmlPackage.XmlData Maven / Gradle / Ivy

Go to download

docx4j is a library which helps you to work with the Office Open XML file format as used in docx documents, pptx presentations, and xlsx spreadsheets.

There is a newer version: 6.1.2
Show newest version
/*
 *  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.xmlPackage;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.w3c.dom.Element;


/**
 * 
 * 				Specifies the details of an xml part.
 * 			
 * 
 * 

Java class for CT_XmlData complex type. * *

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

 * <complexType name="CT_XmlData">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <any/>
 *       </sequence>
 *       <attribute name="originalXmlEncoding" type="{http://www.w3.org/2001/XMLSchema}string" default="UTF-8" />
 *       <attribute name="originalXmlVersion" type="{http://www.w3.org/2001/XMLSchema}string" default="1.0" />
 *       <attribute name="originalXmlStandalone" type="{http://www.w3.org/2001/XMLSchema}string" default="yes" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CT_XmlData", propOrder = { "any" }) @XmlRootElement(name = "xmlData") public class XmlData { @XmlAnyElement protected Element any; @XmlAttribute(namespace = "http://schemas.microsoft.com/office/2006/xmlPackage") protected String originalXmlEncoding; @XmlAttribute(namespace = "http://schemas.microsoft.com/office/2006/xmlPackage") protected String originalXmlVersion; @XmlAttribute(namespace = "http://schemas.microsoft.com/office/2006/xmlPackage") protected String originalXmlStandalone; /** * Gets the value of the any property. * * @return * possible object is * {@link Element } * */ public Element getAny() { return any; } /** * Sets the value of the any property. * * @param value * allowed object is * {@link Element } * */ public void setAny(Element value) { this.any = value; } /** * Gets the value of the originalXmlEncoding property. * * @return * possible object is * {@link String } * */ public String getOriginalXmlEncoding() { if (originalXmlEncoding == null) { return "UTF-8"; } else { return originalXmlEncoding; } } /** * Sets the value of the originalXmlEncoding property. * * @param value * allowed object is * {@link String } * */ public void setOriginalXmlEncoding(String value) { this.originalXmlEncoding = value; } /** * Gets the value of the originalXmlVersion property. * * @return * possible object is * {@link String } * */ public String getOriginalXmlVersion() { if (originalXmlVersion == null) { return "1.0"; } else { return originalXmlVersion; } } /** * Sets the value of the originalXmlVersion property. * * @param value * allowed object is * {@link String } * */ public void setOriginalXmlVersion(String value) { this.originalXmlVersion = value; } /** * Gets the value of the originalXmlStandalone property. * * @return * possible object is * {@link String } * */ public String getOriginalXmlStandalone() { if (originalXmlStandalone == null) { return "yes"; } else { return originalXmlStandalone; } } /** * Sets the value of the originalXmlStandalone property. * * @param value * allowed object is * {@link String } * */ public void setOriginalXmlStandalone(String value) { this.originalXmlStandalone = value; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy