Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.teleal.cling.support.contentdirectory.descriptor.didl
Class Item

    java.lang.Object
      org.teleal.cling.support.contentdirectory.descriptor.didl.Item

    public class Item

extends Object

An 'item' element contains any number of

1. Dublin Core,
2. upnp,
3. res, and
4. desc elements.

In all cases, the first element in each item child element sequence is required to be "dc:title". The 'upnp:class' element must also appear under item. Each item is additionally required to specify a value for the 'id' attribute. If the item is actually a reference to another item, a value for 'refID' is specified. Each item is also required to specify a value for the 'parentID attribute, as well as the 'restricted' attribute (true, false, 1, 0). When restricted="true", the ability to change or delete the item is restricted.

Attributes:

id type: string use: required
parentID type: string use: required
refID type: string use: optional
restricted type: boolean use: required

The equivalent MPEG21 DIDL element is 'ITEM'.

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

     <complexType>
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element ref="{http://purl.org/dc/elements/1.1/}title"/>
             <choice maxOccurs="unbounded" minOccurs="0">
               <any namespace='urn:schemas-upnp-org:metadata-1-0/upnp/'/>
               <any namespace='http://purl.org/dc/elements/1.1/'/>
               <element ref="{urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/}desc"/>
               <element ref="{urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/}res"/>
             </choice>
           </sequence>
           <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="refID" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="parentID" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="restricted" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
         </restriction>
       </complexContent>
     </complexType>

Field Summary
`protected List<Object>` | `children`
`protected String` | `id`
`protected String` | `parentID`
`protected String` | `refID`
`protected boolean` | `restricted`
`protected Title` | `title`

Constructor Summary
`Item()`

Method Summary
`List<Object>` | `getChildren()` Gets the value of the children property.
`String` | `getId()` Gets the value of the id property.
`String` | `getParentID()` Gets the value of the parentID property.
`String` | `getRefID()` Gets the value of the refID property.
`Title` | `getTitle()` Gets the value of the title property.
`boolean` | `isRestricted()` Gets the value of the restricted property.
`void` | `setId(String value)` Sets the value of the id property.
`void` | `setParentID(String value)` Sets the value of the parentID property.
`void` | `setRefID(String value)` Sets the value of the refID property.
`void` | `setRestricted(boolean value)` Sets the value of the restricted property.
`void` | `setTitle(Title value)` Sets the value of the title property.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### title

    protected Title title

### children

    protected List<Object> children

### id

    protected String id

### refID

    protected String refID

### parentID

    protected String parentID

### restricted

    protected boolean restricted

Constructor Detail

### Item

    public Item()

Method Detail

### getTitle

    public Title getTitle()

  Gets the value of the title property.

  Returns:
    possible object is `Title`

### setTitle

    public void setTitle(Title value)

  Sets the value of the title property.

  Parameters:
    `value` - allowed object is `Title`

### getChildren

    public List<Object> getChildren()

  Gets the value of the children 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 JAXB object. This is why there is not a `set` method for the children property.

  For example, to add a new item, do as follows:

          getChildren().add(newItem);

  Objects of the following type(s) are allowed in the list `Res` `Object` `Desc`

### getId

    public String getId()

  Gets the value of the id property.

  Returns:
    possible object is `String`

### setId

    public void setId(String value)

  Sets the value of the id property.

  Parameters:
    `value` - allowed object is `String`

### getRefID

    public String getRefID()

  Gets the value of the refID property.

  Returns:
    possible object is `String`

### setRefID

    public void setRefID(String value)

  Sets the value of the refID property.

  Parameters:
    `value` - allowed object is `String`

### getParentID

    public String getParentID()

  Gets the value of the parentID property.

  Returns:
    possible object is `String`

### setParentID

    public void setParentID(String value)

  Sets the value of the parentID property.

  Parameters:
    `value` - allowed object is `String`

### isRestricted

    public boolean isRestricted()

  Gets the value of the restricted property.

### setRestricted

    public void setRestricted(boolean value)

  Sets the value of the restricted property.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.