Class LocationImpl1

java.lang.Object
info.oais.implementation.infomodel.IdentifierImpl1
info.oais.implementation.infomodel.identifiers.LocationImpl1
All Implemented Interfaces:
Identifier, Location, Serializable

public class LocationImpl1
extends IdentifierImpl1
implements Location, Serializable
An Identifier which points to the location of an object, which may be a physical object..
Since:
06-Sep-2021 15:59:46
Version:
1.0
Author:
David
See Also:
Serialized Form
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      For serialization
      See Also:
      Constant Field Values
    • m_Location

      Location m_Location
      The internal value for the Location.
    • m_URI

      URI m_URI
      The internal value for the URI.
    • m_String

      String m_String
      The internal value for the String.
  • Constructor Details

    • LocationImpl1

      public LocationImpl1()
  • Method Details

    • getLocation

      public Location getLocation()
      Returns the location.
      Specified by:
      getLocation in interface Location
      Returns:
      Details of the location.
    • setLocation

      public void setLocation​(Location loc)
      Sets the location.
      Specified by:
      setLocation in interface Location
      Parameters:
      loc - Details of the location.
    • getUri

      public URI getUri()
      Returns the URI if any.
      Specified by:
      getUri in interface Location
      Returns:
      Details of the location as a URI if possible.
    • setUri

      public void setUri​(URI uri)
      Sets the location as a URI.
      Specified by:
      setUri in interface Location
      Parameters:
      uri - Details of the location as a URI.
    • getString

      public String getString()
      Returns the location as a String.
      Specified by:
      getString in interface Location
      Returns:
      Details of the location as a String.
    • setString

      public void setString​(String loc)
      Sets the location as a Stingr.
      Specified by:
      setString in interface Location
      Parameters:
      loc - Details of the location as a String.
    • toString

      public String toString()
      Convert the Location to a String.
      Specified by:
      toString in interface Location
      Overrides:
      toString in class Object
      Returns:
      The Location as a String.