Class SegmentInfo

java.lang.Object
ai.reveng.model.SegmentInfo

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class SegmentInfo extends Object
Represents the information about a segment. Attributes: name: The name of the segment. r: Determines if the segment has read permission. w: Determines if the segment has write permission. x: Determines if the segment has execute permission. start: The start address of the segment. end: The end address of the segment.
  • Field Details

  • Constructor Details

    • SegmentInfo

      public SegmentInfo()
  • Method Details

    • name

      public SegmentInfo name(@Nullable String name)
    • getName

      @Nullable public String getName()
      Get name
      Returns:
      name
    • setName

      public void setName(@Nullable String name)
    • r

      public SegmentInfo r(@Nullable Boolean r)
    • getR

      @Nullable public Boolean getR()
      Get r
      Returns:
      r
    • setR

      public void setR(@Nullable Boolean r)
    • w

      public SegmentInfo w(@Nullable Boolean w)
    • getW

      @Nullable public Boolean getW()
      Get w
      Returns:
      w
    • setW

      public void setW(@Nullable Boolean w)
    • x

      public SegmentInfo x(@Nullable Boolean x)
    • getX

      @Nullable public Boolean getX()
      Get x
      Returns:
      x
    • setX

      public void setX(@Nullable Boolean x)
    • start

      public SegmentInfo start(@Nullable Integer start)
    • getStart

      @Nullable public Integer getStart()
      Get start
      Returns:
      start
    • setStart

      public void setStart(@Nullable Integer start)
    • end

      public SegmentInfo end(@Nullable Integer end)
    • getEnd

      @Nullable public Integer getEnd()
      Get end
      Returns:
      end
    • setEnd

      public void setEnd(@Nullable Integer end)
    • putAdditionalProperty

      public SegmentInfo putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - name of the property
      value - value of the property
      Returns:
      the SegmentInfo instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

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

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to SegmentInfo
    • fromJson

      public static SegmentInfo fromJson(String jsonString) throws IOException
      Create an instance of SegmentInfo given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of SegmentInfo
      Throws:
      IOException - if the JSON string is invalid with respect to SegmentInfo
    • toJson

      public String toJson()
      Convert an instance of SegmentInfo to an JSON string
      Returns:
      JSON string