blob: ff2a77d460d86a8b62d6a54c9c42f267db5f000a [file] [log] [blame]
package org.apache.myfaces.buildtools.normalizer;
import java.io.PrintWriter;
public class Attribute implements Comparable
{
String name;
String value;
public Attribute(String name, String value)
{
this.name = name;
this.value = value;
}
public void print(PrintWriter writer)
{
writer.append(name);
writer.append("=");
writer.append("\"");
writer.append(value);
writer.append("\"");
}
public int compareTo(Object other)
{
Attribute otherAttr = (Attribute) other;
return name.compareTo(otherAttr.name);
}
}