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

org.w3._2005.atom.Content Maven / Gradle / Ivy

The newest version!
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2015.08.07 at 06:17:52 PM CEST 
//


package org.w3._2005.atom;

import org.w3c.dom.Element;

import javax.xml.bind.annotation.*;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.util.ArrayList;
import java.util.List;


/**
 * 

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">
 *       <choice>
 *         <group ref="{http://www.w3.org/2005/Atom}anyElement" maxOccurs="unbounded" minOccurs="0"/>
 *       </choice>
 *       <attGroup ref="{http://www.w3.org/2005/Atom}atomCommonAttributes"/>
 *       <attribute name="type" default="text">
 *         <simpleType>
 *           <union memberTypes=" {http://www.w3.org/2005/Atom}atomMediaType">
 *             <simpleType>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}token">
 *                 <enumeration value="text"/>
 *                 <enumeration value="html"/>
 *                 <enumeration value="xhtml"/>
 *               </restriction>
 *             </simpleType>
 *           </union>
 *         </simpleType>
 *       </attribute>
 *       <attribute name="src" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "content" }) @XmlRootElement(name = "content") public class Content { @XmlMixed @XmlAnyElement(lax = true) protected List content; @XmlAttribute(name = "type") protected String type; @XmlAttribute(name = "src") @XmlSchemaType(name = "anyURI") protected String src; @XmlAttribute(name = "base", namespace = "http://www.w3.org/XML/1998/namespace") @XmlSchemaType(name = "anyURI") protected String base; @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "language") protected String lang; /** * Gets the value of the content 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 content property. * *

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

     *    getContent().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link String } * {@link Element } * {@link Object } * * */ public List getContent() { if (content == null) { content = new ArrayList<>(); } return this.content; } /** * Gets the value of the type property. * * @return * possible object is * {@link String } * */ public String getType() { if (type == null) { return "text"; } else { return type; } } /** * Sets the value of the type property. * * @param value * allowed object is * {@link String } * */ public void setType(String value) { this.type = value; } /** * Gets the value of the src property. * * @return * possible object is * {@link String } * */ public String getSrc() { return src; } /** * Sets the value of the src property. * * @param value * allowed object is * {@link String } * */ public void setSrc(String value) { this.src = value; } /** * Gets the value of the base property. * * @return * possible object is * {@link String } * */ public String getBase() { return base; } /** * Sets the value of the base property. * * @param value * allowed object is * {@link String } * */ public void setBase(String value) { this.base = value; } /** * Gets the value of the lang property. * * @return * possible object is * {@link String } * */ public String getLang() { return lang; } /** * Sets the value of the lang property. * * @param value * allowed object is * {@link String } * */ public void setLang(String value) { this.lang = value; } }