Package org.ivoa.vodml.jaxb
Interface XmlIdManagement
-
public interface XmlIdManagementNecessary functions to manipulate xml IDs.- Since:
- 2 Sep 2021
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static java.lang.StringcreateXMLId(long i)Create and XMLID.java.lang.StringgetXmlId()Get the XML ID.booleanhasNaturalKey()Does the type have a natural key (i.e.static java.lang.LongparseXMLId(java.lang.String id)Parse XML ID into a long ID.voidsetXmlId(java.lang.String id)set internal Identifier from XML ID.
-
-
-
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.
-
-