public class Variation extends Object implements Serializable
Java class for variation complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="variation">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="mediaType" type="{http://www.w3.org/2001/XMLSchema}string"/>
<element name="representation" type="{urn:ru:ilb:filedossier:ddl}representation" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected String |
mediaType |
protected List<RepresentationDefinition> |
representations |
| Constructor and Description |
|---|
Variation() |
| Modifier and Type | Method and Description |
|---|---|
String |
getMediaType()
Gets the value of the mediaType property.
|
List<RepresentationDefinition> |
getRepresentations()
Gets the value of the representations property.
|
void |
setMediaType(String value)
Sets the value of the mediaType property.
|
void |
setRepresentations(List<RepresentationDefinition> value) |
Variation |
withMediaType(String value) |
Variation |
withRepresentations(Collection<RepresentationDefinition> values) |
Variation |
withRepresentations(List<RepresentationDefinition> value) |
Variation |
withRepresentations(RepresentationDefinition... values) |
protected String mediaType
protected List<RepresentationDefinition> representations
public String getMediaType()
Stringpublic void setMediaType(String value)
value - allowed object is
Stringpublic List<RepresentationDefinition> getRepresentations()
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 representations property.
For example, to add a new item, do as follows:
getRepresentations().add(newItem);
Objects of the following type(s) are allowed in the list
RepresentationDefinition
public void setRepresentations(List<RepresentationDefinition> value)
public Variation withRepresentations(RepresentationDefinition... values)
public Variation withRepresentations(Collection<RepresentationDefinition> values)
public Variation withRepresentations(List<RepresentationDefinition> value)
Copyright © 2020. All rights reserved.