public class Attribute extends Object implements Serializable
Constructor and Description |
---|
Attribute()
Default constructor.
|
Attribute(String name,
String value)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Attribute value)
Judges whether the object is the same or not.
|
boolean |
equals(Object value) |
String |
getName()
Gets the attribute name.
|
String |
getValue()
Gets the attribute value.
|
int |
hashCode() |
void |
setName(String name)
Sets the attribute name.
|
void |
setValue(String value)
Sets the attribute value.
|
String |
toString() |
public String getName()
public void setName(String name)
name
- Attribute namepublic String getValue()
public void setValue(String value)
value
- Attribute valuepublic boolean equals(Attribute value)
value
- Object