Changeset 15032 for trunk/Xul_Wsp/modules/scenariWsp/commons/src.jsm
- Timestamp:
- 03/04/10 22:23:21 (2 years ago)
- File:
-
- 1 edited
-
trunk/Xul_Wsp/modules/scenariWsp/commons/src.jsm (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Xul_Wsp/modules/scenariWsp/commons/src.jsm
r15019 r15032 39 39 40 40 /** 41 * Propri étés et fonctions relatives Ãl'API Src (uri, paths, id...).41 * Propriétés et fonctions relatives à l'API Src (uri, paths, id...). 42 42 */ 43 43 const EXPORTED_SYMBOLS = ["src"]; … … 61 61 62 62 /** 63 * Ajoute un élément fils Ãune uri et retourne la nouvelle Uri.63 * Ajoute un élément fils à une uri et retourne la nouvelle Uri. 64 64 */ 65 65 src.addLeafToUri = function(pUriParent, pLeafName){ … … 80 80 81 81 /** 82 * Retourne l' élément terminal d'une Uri.82 * Retourne l'élément terminal d'une Uri. 83 83 */ 84 84 src.getLeafFromUri = function(pUri){ … … 92 92 93 93 /** 94 * pAncestorUri est-elle un anc être de pUri.94 * pAncestorUri est-elle un ancêtre de pUri. 95 95 * Si pAncestorUri==pUri retourne false. 96 96 */ … … 98 98 var vParentLen = pAncestorUri.length; 99 99 if(pUri.length > vParentLen && pUri.substring(0, vParentLen) == pAncestorUri) { 100 var vChar = pUri.charAt(vParentLen); 101 return vChar=="/"; 100 return pUri.charAt(vParentLen) == "/"; 102 101 } 103 102 return false; … … 110 109 111 110 /** 112 * 111 * Une refUri est-elle de nature Id ? 113 112 */ 114 src.isSrcId = function(p SrcPath){115 return p SrcPath ? /^id\:/.test(pSrcPath) : false;113 src.isSrcId = function(pRefUri){ 114 return pRefUri ? /^id\:/.test(pRefUri) : false; 116 115 } 117 116 118 117 /** 119 * Enrichit les fields définissant le contenu du shortDesc. 118 * Construit une refUri à partir d'un id. 119 */ 120 src.buildRefUriFromId = function (pSrcId) { 121 return src.ID_PREFIX + pSrcId; 122 } 123 124 /** 125 * Enrichit les fields d�finissant le contenu du shortDesc. 120 126 * 121 * @param pExtPoints extPoints àmodifier127 * @param pExtPoints extPoints � modifier 122 128 * @param pFields Tableau Js de fields 123 129 */
Note: See TracChangeset
for help on using the changeset viewer.