org.rometools.feed.opml
Class Attribute

java.lang.Object
  extended by org.rometools.feed.opml.Attribute
All Implemented Interfaces:
Serializable, Cloneable

public class Attribute
extends Object
implements Cloneable, Serializable

This is a simple name-value pair attribute for outlines.

Author:
Robert "kebernet" Cooper
See Also:
Serialized Form

Constructor Summary
Attribute()
          Creates a new instance of Attribute
Attribute(String name, String value)
          Creates a new instance of Attribute.
 
Method Summary
 Object clone()
           
 boolean equals(Object obj)
           
 String getName()
          name of the attribute.
 String getValue()
          value of the attribute.
 int hashCode()
           
 void setName(String name)
          name of the attribute.
 void setValue(String value)
          value of the attribute.
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Attribute

public Attribute()
Creates a new instance of Attribute


Attribute

public Attribute(String name,
                 String value)
Creates a new instance of Attribute.

Parameters:
name - name of the attribute.
value - value of the attribute.
Method Detail

setName

public void setName(String name)
name of the attribute.

Parameters:
name - name of the attribute.

getName

public String getName()
name of the attribute.

Returns:
name of the attribute.

setValue

public void setValue(String value)
value of the attribute.

Parameters:
value - value of the attribute.

getValue

public String getValue()
value of the attribute.

Returns:
value of the attribute.

clone

public Object clone()
Overrides:
clone in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 ROME Project. All Rights Reserved.