//
// 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 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.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 RatingType complex type.
*
* <p>
* The following schema fragment specifies the expected content contained within
* this class.
*
* <pre>
* <complexType name="RatingType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="RatingValue" type="{http://www.w3.org/2001/XMLSchema}float"/>
* <element name="RatingScheme">
* <complexType>
* <complexContent>
* <extension base="{urn:mpeg:mpeg7:schema:2004}TermUseType">
* <attribute name="best" type="{http://www.w3.org/2001/XMLSchema}float" />
* <attribute name="worst" type="{http://www.w3.org/2001/XMLSchema}float" />
* <attribute name="style" use="required">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
* <enumeration value="higherBetter"/>
* <enumeration value="lowerBetter"/>
* </restriction>
* </simpleType>
* </attribute>
* </extension>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "RatingType", propOrder = { "ratingValue", "ratingScheme" })
@XmlSeeAlso({ eu.prestoprime.model.ext.qa.MediaQualityType.QualityRating.class })
public class RatingType implements Serializable {
private final static long serialVersionUID = 1L;
@XmlElement(name = "RatingValue")
protected float ratingValue;
@XmlElement(name = "RatingScheme", required = true)
protected RatingType.RatingScheme ratingScheme;
/**
* Gets the value of the ratingValue property.
*
*/
public float getRatingValue() {
return ratingValue;
}
/**
* Sets the value of the ratingValue property.
*
*/
public void setRatingValue(float value) {
this.ratingValue = value;
}
/**
* Gets the value of the ratingScheme property.
*
* @return possible object is {@link RatingType.RatingScheme }
*
*/
public RatingType.RatingScheme getRatingScheme() {
return ratingScheme;
}
/**
* Sets the value of the ratingScheme property.
*
* @param value
* allowed object is {@link RatingType.RatingScheme }
*
*/
public void setRatingScheme(RatingType.RatingScheme value) {
this.ratingScheme = value;
}
/**
* <p>
* Java class for anonymous complex type.
*
* <p>
* The following schema fragment specifies the expected content contained
* within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <extension base="{urn:mpeg:mpeg7:schema:2004}TermUseType">
* <attribute name="best" type="{http://www.w3.org/2001/XMLSchema}float" />
* <attribute name="worst" type="{http://www.w3.org/2001/XMLSchema}float" />
* <attribute name="style" use="required">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
* <enumeration value="higherBetter"/>
* <enumeration value="lowerBetter"/>
* </restriction>
* </simpleType>
* </attribute>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public static class RatingScheme extends TermUseType implements Serializable {
private final static long serialVersionUID = 1L;
@XmlAttribute(name = "best")
protected Float best;
@XmlAttribute(name = "worst")
protected Float worst;
@XmlAttribute(name = "style", required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String style;
/**
* Gets the value of the best property.
*
* @return possible object is {@link Float }
*
*/
public Float getBest() {
return best;
}
/**
* Sets the value of the best property.
*
* @param value
* allowed object is {@link Float }
*
*/
public void setBest(Float value) {
this.best = value;
}
/**
* Gets the value of the worst property.
*
* @return possible object is {@link Float }
*
*/
public Float getWorst() {
return worst;
}
/**
* Sets the value of the worst property.
*
* @param value
* allowed object is {@link Float }
*
*/
public void setWorst(Float value) {
this.worst = value;
}
/**
* Gets the value of the style property.
*
* @return possible object is {@link String }
*
*/
public String getStyle() {
return style;
}
/**
* Sets the value of the style property.
*
* @param value
* allowed object is {@link String }
*
*/
public void setStyle(String value) {
this.style = value;
}
}
}