Class AttributeList.AttributeEntry

java.lang.Object
org.jfree.xml.writer.AttributeList.AttributeEntry
Enclosing class:
AttributeList

private static class AttributeList.AttributeEntry extends Object
A name/value pair of the attribute list.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
    The name of the attribute entry.
    private String
    The value of the attribute entry.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new attribute entry for the given name and value.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks whether the given object is an attribute entry with the same name.
    Returns the attribute name.
    Returns the value of this attribute entry.
    int
    Computes an hashcode for this entry.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • name

      private String name
      The name of the attribute entry.
    • value

      private String value
      The value of the attribute entry.
  • Constructor Details

    • AttributeEntry

      public AttributeEntry(String name, String value)
      Creates a new attribute entry for the given name and value.
      Parameters:
      name - the attribute name (null not permitted).
      value - the attribute value (null not permitted).
  • Method Details

    • getName

      public String getName()
      Returns the attribute name.
      Returns:
      the name.
    • getValue

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

      public boolean equals(Object o)
      Checks whether the given object is an attribute entry with the same name.
      Overrides:
      equals in class Object
      Parameters:
      o - the suspected other attribute entry.
      Returns:
      true if the given object is equal, false otherwise.
    • hashCode

      public int hashCode()
      Computes an hashcode for this entry.
      Overrides:
      hashCode in class Object
      Returns:
      the hashcode.