domtest faq page



How do I retrieve the DOM ID from a leaf?

Get that leaf you are interested in or loop over all of them:
Leaf[] leaves = dataTree.getLeaves();

next, loop actually:

for ( int iLeaf = 0; iLeaf < leaves.length; iLeaf++ ) {

String domID = leaves[iLeaf].getParameter( HitAnalysis.DomId );

}
DOM ID is a parameter of the leaf. HitAnalysis.DomId is a static String that works as a key to retrieve the DOM ID String that you are after.


How do I...