net.sourceforge.xcool
Class Attribute
java.lang.Object
|
+--net.sourceforge.xcool.Attribute
- public class Attribute
- extends java.lang.Object
Attribute for a xml element.
- Author:
- leon
|
Constructor Summary |
Attribute(java.lang.String name,
java.lang.String value)
Creates a new attribute. |
|
Method Summary |
boolean |
equals(java.lang.Object otherObject)
Compares two attributes and returns true if both the name and the value
are equal. |
java.lang.String |
getName()
Returns the attribute's name. |
java.lang.String |
getValue()
Returns the attribute's value. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Attribute
public Attribute(java.lang.String name,
java.lang.String value)
- Creates a new attribute.
- Parameters:
name - the attribute's name.value - the attribute's value.
getName
public java.lang.String getName()
- Returns the attribute's name.
- Returns:
- the attribute's name.
getValue
public java.lang.String getValue()
- Returns the attribute's value.
- Returns:
- the attribute's value.
equals
public boolean equals(java.lang.Object otherObject)
- Compares two attributes and returns true if both the name and the value
are equal.
- Overrides:
equals in class java.lang.Object