Record Class Route

java.lang.Object
java.lang.Record
overit.geocall.ux.platform.Route
Record Components:
routeName - The name of the route to use into url to reach a specific page
resourcePathId - The specific page expressed by xml file's geocallian path
nodeIdentifier - The unique path that identify the menu node. from which retrieve its position inside the menu.
isEmbedded - Define if the page is loaded internal from an xml definition or if is an external static resource that will be wrapped into an iFrame

public record Route(String routeName, String resourcePathId, String nodeIdentifier, boolean isEmbedded) extends Record
A record class that basically is a pojo class for the Route object.
  • Constructor Details

    • Route

      public Route(String routeName, String resourcePathId, String nodeIdentifier)
    • Route

      public Route(String routeName, String resourcePathId, String nodeIdentifier, boolean isEmbedded)
      Creates an instance of a Route record class.
      Parameters:
      routeName - the value for the routeName record component
      resourcePathId - the value for the resourcePathId record component
      nodeIdentifier - the value for the nodeIdentifier record component
      isEmbedded - the value for the isEmbedded record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • routeName

      public String routeName()
      Returns the value of the routeName record component.
      Returns:
      the value of the routeName record component
    • resourcePathId

      public String resourcePathId()
      Returns the value of the resourcePathId record component.
      Returns:
      the value of the resourcePathId record component
    • nodeIdentifier

      public String nodeIdentifier()
      Returns the value of the nodeIdentifier record component.
      Returns:
      the value of the nodeIdentifier record component
    • isEmbedded

      public boolean isEmbedded()
      Returns the value of the isEmbedded record component.
      Returns:
      the value of the isEmbedded record component