- Timestamp:
- 03/03/09 18:36:52 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Jav_GE/com/scenari/m/ge/xpath/dom/ZXPathLookForAncestorAgentByTypes.java
r12007 r12949 58 58 * Fonction XPath qui renvoit un NodeSet d'agents appartenant au contexte du 59 59 * dialogue et à la stack d'execution dont le code du composant type correspond 60 * au préfixe du 2eme parametre ou nème paramètre. 60 * au préfixe du 2eme parametre ou nème paramètre. Si le 2ème (ou nème) paramètre 61 * commence par "*", c'est le suffixe qui est comparé. 61 62 * 62 63 * La liste retourne les agents du dialogue courant jusqu'au dialogue racine. … … 107 108 String vCode = vAgent.hGetComposant().hGetComposantType().hGetCode(); 108 109 String vCodeSearch = pCodes[i]; 109 if (vCode.startsWith(vCodeSearch)) { 110 111 if (vCodeSearch.charAt(0) == '*') { 112 int vLen = vCodeSearch.length() - 1; 113 if (vCode.regionMatches(vCode.length() - vLen, vCodeSearch, 1, vLen)) { 114 if (!pList.contains((Node) vAgent)) { 115 pList.addElement((Node) vAgent); 116 } 117 } 118 } else if (vCode.startsWith(vCodeSearch)) { 110 119 if (vCode.length() == vCodeSearch.length() || vCode.charAt(vCodeSearch.length()) == '_') { 111 120 if (!pList.contains((Node) vAgent)) {
Note: See TracChangeset
for help on using the changeset viewer.