// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2012.07.24 at 11:42:28 PM CEST // package eu.prestoprime.model.ext.qa; import java.io.Serializable; import java.util.ArrayList; import java.util.List; 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.XmlElements; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlSeeAlso; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** * <p> * Java class for TextAnnotationType complex type. * * <p> * The following schema fragment specifies the expected content contained within * this class. * * <pre> * <complexType name="TextAnnotationType"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <choice maxOccurs="unbounded"> * <element name="FreeTextAnnotation" type="{urn:mpeg:mpeg7:schema:2004}TextualType"/> * <element name="StructuredAnnotation" type="{urn:mpeg:mpeg7:schema:2004}StructuredAnnotationType"/> * <element name="KeywordAnnotation" type="{urn:mpeg:mpeg7:schema:2004}KeywordAnnotationType"/> * </choice> * <attribute name="relevance" type="{urn:mpeg:mpeg7:schema:2004}zeroToOneType" /> * <attribute name="confidence" type="{urn:mpeg:mpeg7:schema:2004}zeroToOneType" /> * <attribute ref="{http://www.w3.org/XML/1998/namespace}lang"/> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TextAnnotationType", propOrder = { "freeTextAnnotationOrStructuredAnnotationOrKeywordAnnotation" }) @XmlSeeAlso({ eu.prestoprime.model.ext.qa.SegmentType.TextAnnotation.class }) public class TextAnnotationType implements Serializable { private final static long serialVersionUID = 1L; @XmlElements({ @XmlElement(name = "FreeTextAnnotation", type = TextualType.class), @XmlElement(name = "StructuredAnnotation", type = StructuredAnnotationType.class), @XmlElement(name = "KeywordAnnotation", type = KeywordAnnotationType.class) }) protected List<Serializable> freeTextAnnotationOrStructuredAnnotationOrKeywordAnnotation; @XmlAttribute(name = "relevance") protected Float relevance; @XmlAttribute(name = "confidence") protected Float confidence; @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 * freeTextAnnotationOrStructuredAnnotationOrKeywordAnnotation property. * * <p> * 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 * <CODE>set</CODE> method for the * freeTextAnnotationOrStructuredAnnotationOrKeywordAnnotation property. * * <p> * For example, to add a new item, do as follows: * * <pre> * getFreeTextAnnotationOrStructuredAnnotationOrKeywordAnnotation().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link TextualType } {@link StructuredAnnotationType } * {@link KeywordAnnotationType } * * */ public List<Serializable> getFreeTextAnnotationOrStructuredAnnotationOrKeywordAnnotation() { if (freeTextAnnotationOrStructuredAnnotationOrKeywordAnnotation == null) { freeTextAnnotationOrStructuredAnnotationOrKeywordAnnotation = new ArrayList<Serializable>(); } return this.freeTextAnnotationOrStructuredAnnotationOrKeywordAnnotation; } /** * Gets the value of the relevance property. * * @return possible object is {@link Float } * */ public Float getRelevance() { return relevance; } /** * Sets the value of the relevance property. * * @param value * allowed object is {@link Float } * */ public void setRelevance(Float value) { this.relevance = value; } /** * Gets the value of the confidence property. * * @return possible object is {@link Float } * */ public Float getConfidence() { return confidence; } /** * Sets the value of the confidence property. * * @param value * allowed object is {@link Float } * */ public void setConfidence(Float value) { this.confidence = 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; } }