Class IdResolver


  • public class IdResolver
    extends Object
    Deprecated.
    Purpose of this class is to enable the XML Parser to keep track of ID attributes. This is done by 'registering' attributes of type ID at the IdResolver.
    • Method Detail

      • registerElementById

        public static void registerElementById​(Element element,
                                               Attr id)
        Deprecated.
        Method registerElementById
        Parameters:
        element - the element to register
        id - the ID attribute
      • getElementById

        public static Element getElementById​(Document doc,
                                             String id)
        Deprecated.
        Method getElementById
        Parameters:
        doc - the document
        id - the value of the ID
        Returns:
        the element obtained by the id, or null if it is not found.