How to know the ListLabel value of the child list

My word document is in the below format:

  1. Some Text
    1.1 child of some text
    1.1.1 child of child of some text
    1.2 second child of some text
    1.2.1 child of second child of some text

then how to identify 1.1 and 1.2 are child of 1
and 1.1.1 is child of 1.1
and 1.2.1 is child of 1.2…

Please help.

Thankyou

@madhusudhangovindu You can use Paragraph.getListFormat().getList() property to identify whether paragraphs (list items) belong to the same list. Then you can use Paragraph.getListFormat().getListLevelNumber() property to identify the level of the list item within the list. Finally depending on the paragraph order your can determine parent/child relations between the list items.