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 Summary
Fields Modifier and Type Field Description (package private) Location
m_Location
The internal value for the Location.(package private) String
m_String
The internal value for the String.(package private) URI
m_URI
The internal value for the URI.private static long
serialVersionUID
For serialization -
Constructor Summary
Constructors Constructor Description LocationImpl1()
-
Method Summary
Modifier and Type Method Description Location
getLocation()
Returns the location.String
getString()
Returns the location as a String.URI
getUri()
Returns the URI if any.void
setLocation(Location loc)
Sets the location.void
setString(String loc)
Sets the location as a Stingr.void
setUri(URI uri)
Sets the location as a URI.String
toString()
Convert the Location to a String.Methods inherited from class info.oais.implementation.infomodel.IdentifierImpl1
getURI, setURI
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface info.oais.interfaces.infomodel.Identifier
getURI, setURI
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor serialization- See Also:
- Constant Field Values
-
m_Location
Location m_LocationThe internal value for the Location. -
m_URI
URI m_URIThe internal value for the URI. -
m_String
String m_StringThe internal value for the String.
-
-
Constructor Details
-
LocationImpl1
public LocationImpl1()
-
-
Method Details
-
getLocation
Returns the location.- Specified by:
getLocation
in interfaceLocation
- Returns:
- Details of the location.
-
setLocation
Sets the location.- Specified by:
setLocation
in interfaceLocation
- Parameters:
loc
- Details of the location.
-
getUri
Returns the URI if any. -
setUri
Sets the location as a URI. -
getString
Returns the location as a String. -
setString
Sets the location as a Stingr. -
toString
Convert the Location to a String.
-