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 StringgetExternalId()get external id of the entitylonggetId()collect id of the entityStringgetXmlId()the id exposed to users as the "normal" id in the PLANit native xml formatvoidsetExternalId(String externalId)set the external idprotected voidsetId(long id)set the idvoidsetXmlId(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:
getExternalIdin interfaceExternalIdable- Returns:
- external id
-
setExternalId
public void setExternalId(String externalId)
set the external id- Specified by:
setExternalIdin 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:
getXmlIdin interfaceExternalIdable- Returns:
- xmlId
-
setXmlId
public void setXmlId(String xmlId)
set the external id- Specified by:
setXmlIdin interfaceExternalIdable- Parameters:
xmlId- to set
-
-