Interface ExternalIdAble

    • Method Detail

      • getExternalId

        String getExternalId()
        get external id of the entity
        Returns:
        external id
      • setExternalId

        void setExternalId​(String externalId)
        set the external id
        Parameters:
        externalId - to set
      • getXmlId

        String getXmlId()
        the id exposed to users as the "normal" id in the PLANit native xml format
        Returns:
        xmlId
      • setXmlId

        void setXmlId​(String xmlId)
        set the external id
        Parameters:
        xmlId - to set
      • setXmlId

        default void setXmlId​(long xmlId)
        set the external id
        Parameters:
        xmlId - to set
      • hasXmlId

        default boolean hasXmlId()
        check if external id is available or not
        Returns:
        true when not null, false otherwise
      • hasExternalId

        default boolean hasExternalId()
        check if external id is available or not
        Returns:
        true when nont null, false otherwise
      • appendExternalId

        default void appendExternalId​(String appendWith)
        append the external id with additional id if non-empty, separated with comma
        Parameters:
        appendWith - to append external id with
      • getSplitExternalId

        default String[] getSplitExternalId()
        Collect external id split by default comma separator
        Returns:
        split external ids as array
      • getSplitExternalId

        default String[] getSplitExternalId​(char separator)
        Collect external id split by custom separator
        Parameters:
        separator - to split by
        Returns:
        split external ids as array
      • appendExternalId

        default void appendExternalId​(String appendWith,
                                      Character separator)
        append the external id with additional id if non-empty, separated with provided separator
        Parameters:
        appendWith - to append external id with
        separator - to use
      • getIdsAsString

        default String getIdsAsString()
        Returns string representation contain the three ids, id, XMLid and external id
        Returns:
        string representation