예제 #1
0
 /**
  * Gets the appropriateSibling attribute of the Selector object
  *
  * @param e PARAM
  * @param treeRes
  * @return The appropriateSibling value
  */
 Object getAppropriateSibling(Object e, TreeResolver treeRes) {
   Object sibling = null;
   switch (_axis) {
     case IMMEDIATE_SIBLING_AXIS:
       sibling = treeRes.getPreviousSiblingElement(e);
       break;
     default:
       XRLog.exception("Bad sibling axis");
   }
   return sibling;
 }