Class AtomicObject

java.lang.Object
Services.ResponseAnalyzer.AtomicObject
All Implemented Interfaces:
Serializable

public class AtomicObject extends Object implements Serializable
Represents a single atomic value extracted from an HTTP response.

An atomic object is a primitive value (string) with an associated name and optionally an XPath expression identifying its location in a structured response. It can also represent values originating from a Set-Cookie header.

See Also:
  • Field Details

    • value

      @SerializedName("value") public String value
    • name

      @SerializedName("name") public String name
    • xpath

      @SerializedName("xpath") public String xpath
  • Constructor Details

    • AtomicObject

      public AtomicObject(String value, String name, String xpath)
      Constructs an AtomicObject with the given value, name, and XPath.
      Parameters:
      value - the value of the atomic object
      name - the name of the atomic object
      xpath - the XPath identifying the location of this value in the response
    • AtomicObject

      public AtomicObject(String value, String name, String xpath, boolean from_set_cookie)
      Constructs an AtomicObject with the given value, name, XPath, and Set-Cookie origin flag.
      Parameters:
      value - the value of the atomic object
      name - the name of the atomic object
      xpath - the XPath identifying the location of this value in the response
      from_set_cookie - true if this value comes from a Set-Cookie header; false otherwise
  • Method Details

    • getValue

      public String getValue()
      Returns:
      the value of the atomic object
    • getName

      public String getName()
      Returns:
      the name of the atomic object
    • getXpath

      public String getXpath()
      Returns:
      the XPath of the atomic object
    • getFromSetCookie

      public boolean getFromSetCookie()
      Returns:
      true if the object originates from a Set-Cookie header
    • setValue

      public void setValue(String value)
      Sets the value of the atomic object
    • setName

      public void setName(String name)
      Sets the name of the atomic object
    • setXpath

      public void setXpath(String xpath)
      Sets the XPath of the atomic object
    • setFrom_set_cookie

      public void setFrom_set_cookie(boolean from_set_cookie)
      Sets the from_set_cookie flag
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object