Package org.fest.swing.junit.xml
Class XmlAttribute
java.lang.Object
org.fest.swing.junit.xml.XmlAttribute
Understands an attribute of a
XmlNode. This class is intended for internal use only. It only
provides the necessary functionality needed by the FEST-Swing JUnit extension.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether the givenObjectis equal to this attribute.inthashCode()Returns the hash code of this attribute, based on its name and value.name()Returns the name of this attribute.Creates a new.XmlAttribute.XmlAttributeBuildertoString()Returns aStringrepresentation of this attribute.value()Returns the value of this attribute.
-
Field Details
-
name
-
value
-
-
Constructor Details
-
XmlAttribute
-
-
Method Details
-
name
Creates a new.XmlAttribute.XmlAttributeBuilder- Parameters:
name- the name of the attribute that the created builder will build.- Returns:
- the created
XmlAttributeBuilder.
-
name
Returns the name of this attribute.- Returns:
- the name of this attribute.
-
value
Returns the value of this attribute.- Returns:
- the value of this attribute.
-
equals
Indicates whether the givenObjectis equal to this attribute. To be equal, the given object should be awith its name and value equal to the ones in this attribute.XmlAttribute -
hashCode
public int hashCode()Returns the hash code of this attribute, based on its name and value. -
toString
Returns aStringrepresentation of this attribute.
-