Class IdRegister


  • public final class IdRegister
    extends java.lang.Object

    Class contains methods that registers the ID attributes in the elements allowing to use Document.getElementById method.

    Project:

    Library for the integration with the services of @Firma, eVisor and TS@.

    Version:
    1.1, 18/04/2022.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ID_ATTRIBUTE_NAME
      Attribute that represents ID-attribute name.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void registerAttrId​(org.w3c.dom.Element element)
      Method declares "Id" attribute in the element given.
      static void registerElements​(org.w3c.dom.Node xmlNode)
      Registers the 'Id' attribute to be a user-determined ID attribute in the node of type element and all its childrens.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ID_ATTRIBUTE_NAME

        public static final java.lang.String ID_ATTRIBUTE_NAME
        Attribute that represents ID-attribute name.
        See Also:
        Constant Field Values
    • Method Detail

      • registerAttrId

        public static void registerAttrId​(org.w3c.dom.Element element)
        Method declares "Id" attribute in the element given. This behavior allows to use Document.getElementById.
        Parameters:
        element - the element with the Id-attribute.
      • registerElements

        public static void registerElements​(org.w3c.dom.Node xmlNode)
        Registers the 'Id' attribute to be a user-determined ID attribute in the node of type element and all its childrens. This behavior allows to use Document.getElementById.
        Parameters:
        xmlNode - node of type element.