org.pentaho.reporting.libraries.xmlns.common

Class AttributeList.AttributeEntry

public static class AttributeList.AttributeEntry extends Object

A name/value pair of the attribute list.
Constructor Summary
AttributeEntry(String namespace, String name, String value)
Creates a new attribute entry for the given name and value.
Method Summary
booleanequals(Object o)
Compares this attribute entry for equality with an other object.
StringgetName()
Returns the attribute name.
StringgetNamespace()
Returns the attribute namespace (which can be null).
StringgetValue()
Returns the value of this attribute entry.
inthashCode()
Computes a hashcode for this attribute entry.
protected voidupdate(String namespace, String name, String value)

Constructor Detail

AttributeEntry

public AttributeEntry(String namespace, String name, String value)
Creates a new attribute entry for the given name and value.

Parameters: namespace the namespace of the attribute. name the attribute name (null not permitted). value the attribute value (null not permitted).

Method Detail

equals

public boolean equals(Object o)
Compares this attribute entry for equality with an other object.

Parameters: o the other object.

Returns: true, if this object is equal, false otherwise.

getName

public String getName()
Returns the attribute name.

Returns: the name.

getNamespace

public String getNamespace()
Returns the attribute namespace (which can be null).

Returns: the namespace.

getValue

public String getValue()
Returns the value of this attribute entry.

Returns: the value of the entry.

hashCode

public int hashCode()
Computes a hashcode for this attribute entry.

Returns: the attribute entry's hashcode.

update

protected void update(String namespace, String name, String value)