public class MediaType extends Object implements Serializable
<xs:complexType xmlns:ns="http://ns.dataone.org/service/types/v2.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="MediaType">
<xs:sequence>
<xs:element type="ns:MediaTypeProperty" name="property" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute type="xs:string" use="required" name="name"/>
</xs:complexType>
| Modifier and Type | Field and Description |
|---|---|
protected String |
name |
protected List<MediaTypeProperty> |
property |
| Constructor and Description |
|---|
MediaType() |
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(MediaTypeProperty item)
Add a 'property' element item.
|
void |
clearPropertyList()
Remove all 'property' element items.
|
String |
getName()
Get the 'name' attribute value.
|
MediaTypeProperty |
getProperty(int index)
Get 'property' element item by position.
|
List<MediaTypeProperty> |
getPropertyList()
Get the list of 'property' element items.
|
void |
setName(String name)
Set the 'name' attribute value.
|
void |
setPropertyList(List<MediaTypeProperty> list)
Set the list of 'property' element items.
|
int |
sizePropertyList()
Get the number of 'property' element items.
|
protected List<MediaTypeProperty> property
protected String name
public List<MediaTypeProperty> getPropertyList()
public void setPropertyList(List<MediaTypeProperty> list)
list - public int sizePropertyList()
public void addProperty(MediaTypeProperty item)
item - public MediaTypeProperty getProperty(int index)
index - public void clearPropertyList()
public String getName()
public void setName(String name)
name - Copyright © 2018. All Rights Reserved.