package edu.basejava.util;
class Attribute
{
private String name;
private String value;
Attribute(String name, String value)
{
this.name = name;
this.value = value;
}
public String getName()
{
return name;
}
public void setName(String name)
{
this.name = name;
}
public String getValue()
{
return value;
}
public void setValue(String value)
{
this.value = value;
}
public boolean equals(Object o) {
Attribute a = (Attribute) o;
if(this.getName().equals(a.getName())&&this.getValue().equals(a.getValue()))
return true;
else
return false;
}
public String toString()
{
return XmlSymbol.formatAtt(name, value);
}
}