Package org.planit.utils.id
Class ExternalIdAbleImpl
- java.lang.Object
-
- org.planit.utils.id.ExternalIdAbleImpl
-
- All Implemented Interfaces:
Comparable<Idable>
,ExternalIdable
,Idable
- Direct Known Subclasses:
ConnectoidImpl
public class ExternalIdAbleImpl extends Object implements ExternalIdable
Implementation of ExternalIdable interface- Author:
- markr
-
-
Constructor Summary
Constructors Constructor Description ExternalIdAbleImpl(long id)
constructorExternalIdAbleImpl(ExternalIdAbleImpl other)
Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getExternalId()
get external id of the entitylong
getId()
collect id of the entityString
getXmlId()
the id exposed to users as the "normal" id in the PLANit native xml formatvoid
setExternalId(String externalId)
set the external idprotected void
setId(long id)
set the idvoid
setXmlId(String xmlId)
set the external id-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.planit.utils.id.ExternalIdable
hasExternalId, hasXmlId
-
Methods inherited from interface org.planit.utils.id.Idable
compareTo, idEquals, idHashCode
-
-
-
-
Constructor Detail
-
ExternalIdAbleImpl
public ExternalIdAbleImpl(long id)
constructor- Parameters:
id
- to use
-
ExternalIdAbleImpl
public ExternalIdAbleImpl(ExternalIdAbleImpl other)
Copy constructor- Parameters:
other
- to copy from
-
-
Method Detail
-
setId
protected void setId(long id)
set the id- Parameters:
id
- to set
-
getId
public long getId()
collect id of the entity
-
getExternalId
public String getExternalId()
get external id of the entity- Specified by:
getExternalId
in interfaceExternalIdable
- Returns:
- external id
-
setExternalId
public void setExternalId(String externalId)
set the external id- Specified by:
setExternalId
in interfaceExternalIdable
- Parameters:
externalId
- to set
-
getXmlId
public String getXmlId()
the id exposed to users as the "normal" id in the PLANit native xml format- Specified by:
getXmlId
in interfaceExternalIdable
- Returns:
- xmlId
-
setXmlId
public void setXmlId(String xmlId)
set the external id- Specified by:
setXmlId
in interfaceExternalIdable
- Parameters:
xmlId
- to set
-
-