public class ITKAddressImpl extends Object implements ITKAddress
DEFAULT_ADDRESS_TYPE
Constructor and Description |
---|
ITKAddressImpl(String URI)
Instantiates a new iTK address impl.
|
ITKAddressImpl(String URI,
String type)
Instantiates a new iTK address impl.
|
Modifier and Type | Method and Description |
---|---|
String |
getType()
Obtains the address type
|
String |
getURI()
Obtain the URI associated with this address -
e.g.
|
void |
setType(String type)
Allows the address type to be specified if it is not the
ITKAddress.DEFAULT_ADDRESS_TYPE |
void |
setURI(String uRI)
Set the URI for this address
|
String |
toString() |
public ITKAddressImpl(String URI, String type)
URI
- the uritype
- the typepublic ITKAddressImpl(String URI)
URI
- the uripublic String getURI()
ITKAddress
urn:nhs-uk:addressing:ods:RHM:department:workgroup
getURI
in interface ITKAddress
public void setURI(String uRI)
ITKAddress
setURI
in interface ITKAddress
uRI
- the URI to setpublic String getType()
ITKAddress
getType
in interface ITKAddress
public void setType(String type)
ITKAddress
ITKAddress.DEFAULT_ADDRESS_TYPE
setType
in interface ITKAddress
type
- The OID representing the address typeAll content is available under the Open Government Licence, except where otherwise stated
All example source code is available under Apache 2.0, except where otherwise stated