Class SecureLocation

  • All Implemented Interfaces:
    java.io.Serializable

    public class SecureLocation
    extends java.lang.Object
    implements java.io.Serializable
    SecureLocation defines that a location is secure.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      java.lang.String getDescription()
      Return the description fof the security at the location.
      java.lang.String getLevel()
      Returns the name of the level of security for the location.
      int hashCode()
      Return hash code based on properties.
      void setDescription​(java.lang.String description)
      Set up description of the security at the location.
      void setLevel​(java.lang.String level)
      Set up the level of security for the location.
      java.lang.String toString()
      Standard toString method.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SecureLocation

        public SecureLocation()
        Default constructor
      • SecureLocation

        public SecureLocation​(SecureLocation template)
        Copy/clone constructor.
        Parameters:
        template - template object to copy.
    • Method Detail

      • setDescription

        public void setDescription​(java.lang.String description)
        Set up description of the security at the location.
        Parameters:
        description - String
      • getDescription

        public java.lang.String getDescription()
        Return the description fof the security at the location.
        Returns:
        String description
      • setLevel

        public void setLevel​(java.lang.String level)
        Set up the level of security for the location.
        Parameters:
        level - string
      • getLevel

        public java.lang.String getLevel()
        Returns the name of the level of security for the location.
        Returns:
        string
      • toString

        public java.lang.String toString()
        Standard toString method.
        Overrides:
        toString in class java.lang.Object
        Returns:
        print out of variables in a JSON-style
      • equals

        public boolean equals​(java.lang.Object objectToCompare)
        Compare the values of the supplied object with those stored in the current object.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        objectToCompare - supplied object
        Returns:
        boolean result of comparison
      • hashCode

        public int hashCode()
        Return hash code based on properties.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        int