| java.lang.Object xtc.tree.Node xtc.tree.Attribute
Attribute | public class Attribute extends Node (Code) | | A name/value pair.
author: Robert Grimm version: $Revision: 1.12 $ |
Constructor Summary | |
public | Attribute(String name) Create a new attribute with the specified name. | public | Attribute(String name, Object value) Create a new attribute with the specified name and value. |
Attribute | public Attribute(String name)(Code) | | Create a new attribute with the specified name. The new
attribute's value is null .
Parameters: name - The name. |
Attribute | public Attribute(String name, Object value)(Code) | | Create a new attribute with the specified name and value.
Parameters: name - The name. Parameters: value - The value. |
areEquivalent | public static boolean areEquivalent(List<Attribute> l1, List<Attribute> l2)(Code) | | Determine whether the specified lists of attributes are equivalent.
Parameters: l1 - The first list. Parameters: l2 - The second list. true if the two lists are equivalent, that is,contain the same attributes in some order. |
get | public static Attribute get(String name, List<Attribute> list)(Code) | | Get the attribute with the specified name from the specified list.
Parameters: name - The name. Parameters: list - The list. The corresponding attribute or null if thelist is null or contains no such attribute. |
getName | public String getName()(Code) | | Get the name.
The name. |
getValue | public Object getValue()(Code) | | Get the value.
The value. |
hasTraversal | public boolean hasTraversal()(Code) | | |
hashCode | public int hashCode()(Code) | | |
|
|