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

com.lyncode.xliff.xml.Xliff Maven / Gradle / Ivy

The newest version!
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2012.12.21 at 04:27:48 AM WET 
//


package com.lyncode.xliff.xml;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;


/**
 * 

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">
 *       <sequence>
 *         <element name="file" maxOccurs="unbounded">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="body">
 *                     <complexType>
 *                       <complexContent>
 *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                           <sequence>
 *                             <element name="trans-unit" type="{urn:oasis:names:tc:xliff:document:1.2}TransUnit" maxOccurs="unbounded" minOccurs="0"/>
 *                           </sequence>
 *                         </restriction>
 *                       </complexContent>
 *                     </complexType>
 *                   </element>
 *                 </sequence>
 *                 <attribute name="source-language" type="{http://www.w3.org/2001/XMLSchema}string" />
 *                 <attribute name="datatype" type="{http://www.w3.org/2001/XMLSchema}string" default="plaintext" />
 *                 <attribute name="original" type="{http://www.w3.org/2001/XMLSchema}string" />
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *       </sequence>
 *       <attribute name="version" type="{http://www.w3.org/2001/XMLSchema}string" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "file" }) @XmlRootElement(name = "xliff") public class Xliff { @XmlElement(required = true) protected List file; @XmlAttribute protected String version; /** * Gets the value of the file property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the file property. * *

* For example, to add a new item, do as follows: *

     *    getFile().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Xliff.File } * * */ public List getFile() { if (file == null) { file = new ArrayList(); } return this.file; } /** * Gets the value of the version property. * * @return * possible object is * {@link String } * */ public String getVersion() { return version; } /** * Sets the value of the version property. * * @param value * allowed object is * {@link String } * */ public void setVersion(String value) { this.version = value; } /** *

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">
     *       <sequence>
     *         <element name="body">
     *           <complexType>
     *             <complexContent>
     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *                 <sequence>
     *                   <element name="trans-unit" type="{urn:oasis:names:tc:xliff:document:1.2}TransUnit" maxOccurs="unbounded" minOccurs="0"/>
     *                 </sequence>
     *               </restriction>
     *             </complexContent>
     *           </complexType>
     *         </element>
     *       </sequence>
     *       <attribute name="source-language" type="{http://www.w3.org/2001/XMLSchema}string" />
     *       <attribute name="datatype" type="{http://www.w3.org/2001/XMLSchema}string" default="plaintext" />
     *       <attribute name="original" type="{http://www.w3.org/2001/XMLSchema}string" />
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "body" }) public static class File { @XmlElement(required = true) protected Xliff.File.Body body; @XmlAttribute(name = "source-language") protected String sourceLanguage; @XmlAttribute protected String datatype; @XmlAttribute protected String original; /** * Gets the value of the body property. * * @return * possible object is * {@link Xliff.File.Body } * */ public Xliff.File.Body getBody() { return body; } /** * Sets the value of the body property. * * @param value * allowed object is * {@link Xliff.File.Body } * */ public void setBody(Xliff.File.Body value) { this.body = value; } /** * Gets the value of the sourceLanguage property. * * @return * possible object is * {@link String } * */ public String getSourceLanguage() { return sourceLanguage; } /** * Sets the value of the sourceLanguage property. * * @param value * allowed object is * {@link String } * */ public void setSourceLanguage(String value) { this.sourceLanguage = value; } /** * Gets the value of the datatype property. * * @return * possible object is * {@link String } * */ public String getDatatype() { if (datatype == null) { return "plaintext"; } else { return datatype; } } /** * Sets the value of the datatype property. * * @param value * allowed object is * {@link String } * */ public void setDatatype(String value) { this.datatype = value; } /** * Gets the value of the original property. * * @return * possible object is * {@link String } * */ public String getOriginal() { return original; } /** * Sets the value of the original property. * * @param value * allowed object is * {@link String } * */ public void setOriginal(String value) { this.original = value; } /** *

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">
         *       <sequence>
         *         <element name="trans-unit" type="{urn:oasis:names:tc:xliff:document:1.2}TransUnit" maxOccurs="unbounded" minOccurs="0"/>
         *       </sequence>
         *     </restriction>
         *   </complexContent>
         * </complexType>
         * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "transUnit" }) public static class Body { @XmlElement(name = "trans-unit") protected List transUnit; /** * Gets the value of the transUnit property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the transUnit property. * *

* For example, to add a new item, do as follows: *

             *    getTransUnit().add(newItem);
             * 
* * *

* Objects of the following type(s) are allowed in the list * {@link TransUnit } * * */ public List getTransUnit() { if (transUnit == null) { transUnit = new ArrayList(); } return this.transUnit; } } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy