org.purl.dc.elements._1.SimpleLiteral Maven / Gradle / Ivy
//
// This file was generated by the Eclipse Implementation of JAXB, v3.0.0
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2022.09.14 at 04:42:29 PM UTC
//
package org.purl.dc.elements._1;
import java.util.ArrayList;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlMixed;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlSeeAlso;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.purl.dc.terms.Box;
import org.purl.dc.terms.DCMIType;
import org.purl.dc.terms.DDC;
import org.purl.dc.terms.IMT;
import org.purl.dc.terms.ISO3166;
import org.purl.dc.terms.ISO6392;
import org.purl.dc.terms.LCC;
import org.purl.dc.terms.LCSH;
import org.purl.dc.terms.MESH;
import org.purl.dc.terms.Period;
import org.purl.dc.terms.Point;
import org.purl.dc.terms.RFC1766;
import org.purl.dc.terms.RFC3066;
import org.purl.dc.terms.TGN;
import org.purl.dc.terms.UDC;
import org.purl.dc.terms.URI;
import org.purl.dc.terms.W3CDTF;
/**
*
* This is the default type for all of the DC elements.
* It permits text content only with optional
* xml:lang attribute.
* Text is allowed because mixed="true", but sub-elements
* are disallowed because minOccurs="0" and maxOccurs="0"
* are on the xs:any tag.
*
* This complexType allows for restriction or extension permitting
* child elements.
*
*
* Java class for SimpleLiteral complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="SimpleLiteral">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <any processContents='lax' maxOccurs="0" minOccurs="0"/>
* </sequence>
* <attribute ref="{http://www.w3.org/XML/1998/namespace}lang"/>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SimpleLiteral", propOrder = {
"content"
})
@XmlSeeAlso({
LCSH.class,
MESH.class,
DDC.class,
LCC.class,
UDC.class,
Period.class,
W3CDTF.class,
DCMIType.class,
IMT.class,
URI.class,
ISO6392 .class,
RFC1766 .class,
RFC3066 .class,
Point.class,
ISO3166 .class,
Box.class,
TGN.class
})
public class SimpleLiteral {
@XmlMixed
protected List content;
@XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "language")
protected String lang;
/**
*
* This is the default type for all of the DC elements.
* It permits text content only with optional
* xml:lang attribute.
* Text is allowed because mixed="true", but sub-elements
* are disallowed because minOccurs="0" and maxOccurs="0"
* are on the xs:any tag.
*
* This complexType allows for restriction or extension permitting
* child elements.
* 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 Jakarta XML Binding 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 }
*
*
*/
public List getContent() {
if (content == null) {
content = new ArrayList();
}
return this.content;
}
/**
* 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;
}
}