Interface XmlIdManagement


  • public interface XmlIdManagement
    Necessary functions to manipulate xml IDs.
    Since:
    2 Sep 2021
    • Method Detail

      • getXmlId

        java.lang.String getXmlId()
        Get the XML ID.
        Returns:
        a suitable XML ID
      • setXmlId

        void setXmlId​(java.lang.String id)
        set internal Identifier from XML ID.
        Parameters:
        id - the XML ID
      • hasNaturalKey

        boolean hasNaturalKey()
        Does the type have a natural key (i.e. one of the attributes) rather than having a surrogate key generated.
        Returns:
        true is the type has a natural key .
      • createXMLId

        static java.lang.String createXMLId​(long i)
        Create and XMLID.
        Parameters:
        i - the key value;
        Returns:
        the XMLID as NCName.
      • parseXMLId

        static java.lang.Long parseXMLId​(java.lang.String id)
        Parse XML ID into a long ID.
        Parameters:
        id - the xml ID.
        Returns:
        the key as long.