com.sonettic.mrss.elements
Class MRSSElement

java.lang.Object
  extended by com.sonettic.mrss.elements.MRSSElement
All Implemented Interfaces:
java.lang.Cloneable

public class MRSSElement
extends java.lang.Object
implements java.lang.Cloneable

Class represent node of the Sonettic playlist MRSS feed. To pass to up node, use "/" name. It should be used only if nodes without childs nodes using after nodes with childs nodes. Example:

  <media:chapter>
        ...
        </media:chapter>
        <media:premiere> ... </media:premiere>
 

Author:
Vasyl Skrypij.

Field Summary
 java.util.Map<java.lang.String,java.lang.String> attributes
          Map of attributes (name : value)
 java.lang.String name
          Name of current element.
 java.lang.String value
          Value of current element.
 
Constructor Summary
MRSSElement()
          Create empty node.
MRSSElement(java.lang.String name, java.lang.String value)
          Create new element with name and value.
MRSSElement(java.lang.String name, java.lang.String value, java.util.Map<java.lang.String,java.lang.String> attributes)
          Create new element with name, value and attributes.
 
Method Summary
 MRSSElement clone()
           
 boolean test()
          Checks an element on conformity to a format.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name
Name of current element.


value

public java.lang.String value
Value of current element.


attributes

public java.util.Map<java.lang.String,java.lang.String> attributes
Map of attributes (name : value)

Constructor Detail

MRSSElement

public MRSSElement(java.lang.String name,
                   java.lang.String value,
                   java.util.Map<java.lang.String,java.lang.String> attributes)
Create new element with name, value and attributes.

Parameters:
name - node name.
value - node value.
attributes - node attributes.

MRSSElement

public MRSSElement(java.lang.String name,
                   java.lang.String value)
Create new element with name and value.

Parameters:
name - node name.
value - node value.

MRSSElement

public MRSSElement()
Create empty node.

Method Detail

test

public boolean test()
Checks an element on conformity to a format.

Returns:
true if element has all required attributes, otherwise false.

clone

public MRSSElement clone()
Overrides:
clone in class java.lang.Object