Changeset 7467
- Timestamp:
- 11/23/06 18:21:36 (5 years ago)
- Location:
- trunk/Jav_GE/com/scenari/m/ge
- Files:
-
- 13 edited
-
agent/HADialogExport.java (modified) (5 diffs)
-
agent/HAgentExport.java (modified) (3 diffs)
-
agent/OutlineWalker.java (modified) (2 diffs)
-
agent/param/HAgentParamEntry.java (modified) (2 diffs)
-
agent/param/HAgentParamPage.java (modified) (1 diff)
-
agent/scenario/HAgentScenario.java (modified) (4 diffs)
-
generateur/GeneratorBase.java (modified) (2 diffs)
-
generator/web/CrossRefEntry.java (modified) (1 diff)
-
xpath/dom/builder/ZXPathGetContent.java (modified) (1 diff)
-
xpath/dom/builder/ZXPathGetFullTitleText.java (modified) (1 diff)
-
xpath/dom/builder/ZXPathGetShortTitleText.java (modified) (1 diff)
-
xpath/dom/builder/ZXPathGetUrl.java (modified) (1 diff)
-
xpath/dom/builder/ZXPathGotoMeta.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Jav_GE/com/scenari/m/ge/agent/HADialogExport.java
r7460 r7467 96 96 /** 97 97 * Simplification d'écriture (pour WebMacro) pour récupérer un résultat de l'agent du dialogue. 98 * @deprecated 98 99 */ 99 100 public String hGetResultat(String pParams) throws Exception { 100 return ((IWAgentComputor) fAgent).computeAs Data(this, pParams).getString();101 return ((IWAgentComputor) fAgent).computeAsString(this, pParams); 101 102 } 102 103 … … 104 105 * Simplification d'écriture (pour WebMacro notamment) pour récupérer un résultat de l'agent d'urn pUrnAgent relatif 105 106 * à l'agent du dialogue en cours. 107 * @deprecated 106 108 */ 107 109 public String hGetResultat(String pUrnAgent, Object pParams) throws java.lang.Exception { 108 110 109 IComputedData vResult = IComputedData.NULL;111 String vResult = ""; 110 112 IHDialog vDialog = hGoTo(pUrnAgent); 111 113 … … 114 116 IWAgent vAgent = ((IWADialog) vDialog).hGetAgent(); 115 117 if (vAgent instanceof IWAgentComputor) { 116 vResult = ((IWAgentComputor) vAgent).computeAs Data(vDialog, pParams);118 vResult = ((IWAgentComputor) vAgent).computeAsString(vDialog, pParams); 117 119 } else { 118 120 hGetGenerateur().wAddTraceText(IHLogMessage.TYPE_WARNING, "L'agent du dialogue " + this + " ne peut pas produire un résultat (API IWAgentAvecResultat)."); … … 121 123 IWService vService = ((IWSDialog) vDialog).hGetService(); 122 124 if (vService instanceof IWServiceAvecResultat) { 123 vResult = ((IWServiceAvecResultat) vService).hGetResultat(vDialog, pParams) ;125 vResult = ((IWServiceAvecResultat) vService).hGetResultat(vDialog, pParams).getString(); 124 126 } else { 125 127 hGetGenerateur().wAddTraceText(IHLogMessage.TYPE_WARNING, "Le service du dialogue " + this + " ne peut pas produire un résultat (API IWServiceAvecResultat)."); … … 130 132 } 131 133 132 return vResult .getString();134 return vResult; 133 135 } 134 136 -
trunk/Jav_GE/com/scenari/m/ge/agent/HAgentExport.java
r7460 r7467 47 47 import com.scenari.m.co.agent.IWADialog; 48 48 import com.scenari.m.co.agent.IWAgent; 49 import com.scenari.m.co.agent.IWAgent AvecLiens;49 import com.scenari.m.co.agent.IWAgentLinker; 50 50 import com.scenari.m.co.agent.IWAgentComputor; 51 51 import com.scenari.m.co.dialog.IHDialog; … … 364 364 vDialogPath.setLength(vDialogPath.lastIndexOf("/@")); 365 365 IWAgent vParent = (IWAgent) vHier.get(j); 366 if (vParent instanceof IWAgent AvecLiens) {367 IWAgent[] vChilds = ((IWAgent AvecLiens) vParent).hGetAgentsLies(pDialog);366 if (vParent instanceof IWAgentLinker) { 367 IWAgent[] vChilds = ((IWAgentLinker) vParent).hGetAgentsLies(pDialog, null); 368 368 if (vChilds != null) { 369 369 boolean vIsBeforeCurrent = true; … … 406 406 */ 407 407 protected String xLookForChildren(IWAgent pAgent, IWADialog pDialog, StringBuffer pDialogPath, HParamsQueryString pParams, boolean pBackward) throws Exception { 408 if (pAgent != null && (pAgent instanceof IWAgent AvecLiens)) {409 IWAgent[] vChildren = ((IWAgent AvecLiens) pAgent).hGetAgentsLies(pDialog);408 if (pAgent != null && (pAgent instanceof IWAgentLinker)) { 409 IWAgent[] vChildren = ((IWAgentLinker) pAgent).hGetAgentsLies(pDialog, null); 410 410 if (vChildren != null) { 411 411 for (int i = (pBackward ? vChildren.length - 1 : 0); (pBackward ? i >= 0 : i < vChildren.length); i += (pBackward ? -1 : +1)) { -
trunk/Jav_GE/com/scenari/m/ge/agent/OutlineWalker.java
r7403 r7467 6 6 import com.scenari.m.co.agent.IWADialog; 7 7 import com.scenari.m.co.agent.IWAgent; 8 import com.scenari.m.co.agent.IWAgent AvecLiens;8 import com.scenari.m.co.agent.IWAgentLinker; 9 9 10 10 public class OutlineWalker { … … 675 675 IWAgent vAgt = fXCursorStackAgent[fXCursorIdx]; 676 676 if (fXCursorStackChildren[fXCursorIdx] == null) { 677 fXCursorStackChildren[fXCursorIdx] = (vAgt instanceof IWAgent AvecLiens) ? ((IWAgentAvecLiens) vAgt).hGetAgentsLies(fCurrentDialog) : NO_CHILD;677 fXCursorStackChildren[fXCursorIdx] = (vAgt instanceof IWAgentLinker) ? ((IWAgentLinker) vAgt).hGetAgentsLies(fCurrentDialog, null) : NO_CHILD; 678 678 } 679 679 return fXCursorStackChildren[fXCursorIdx]; -
trunk/Jav_GE/com/scenari/m/ge/agent/param/HAgentParamEntry.java
r7460 r7467 66 66 /** 67 67 * 68 *69 * @see com.scenari.m.co.agent.IWAgentComputor#computeAsData(com.scenari.m.co.dialog.IHDialog, java.lang.Object)70 68 */ 71 69 public IComputedData computeAsData(IHDialog pDialog, Object pParams) throws Exception { … … 89 87 /** 90 88 * 91 * @see com.scenari.m.co.agent.IWAgentComputor#computeAsData(com.scenari.m.co.dialog.IHDialog, java.lang.Object)92 89 */ 93 90 public String hGetParamValue(IHDialog pDialog) throws Exception { -
trunk/Jav_GE/com/scenari/m/ge/agent/param/HAgentParamPage.java
r7460 r7467 103 103 /** 104 104 * 105 * @see com.scenari.m.co.agent.IWAgentComputor#computeAsData(com.scenari.m.co.dialog.IHDialog, java.lang.Object)106 105 */ 107 106 public final IComputedData computeAsData(IHDialog pDialog, Object pArgument) throws java.lang.Exception { -
trunk/Jav_GE/com/scenari/m/ge/agent/scenario/HAgentScenario.java
r7460 r7467 41 41 import com.scenari.m.co.agent.IWADialog; 42 42 import com.scenari.m.co.agent.IWAgent; 43 import com.scenari.m.co.agent.IWAgent AvecLiens;43 import com.scenari.m.co.agent.IWAgentLinker; 44 44 import com.scenari.m.co.agent.IWAgentComputor; 45 45 import com.scenari.m.co.composant.IWComposant; … … 53 53 * 54 54 */ 55 public class HAgentScenario extends HAgentExport implements IWAgentComputor, IWAgent AvecLiens, IWAgentOutline {55 public class HAgentScenario extends HAgentExport implements IWAgentComputor, IWAgentLinker, IWAgentOutline { 56 56 57 57 /** … … 63 63 64 64 /** 65 * Renvoit la liste des agents Liés. 65 * Renvoit la liste dynamique des agents liés avec certains critères en paramètre. La structure des critères est 66 * spécifique à chaque classe de composant. 66 67 */ 67 public IWAgent[] hGetAgentsLies() throws java.lang.Exception { 68 69 String[] vCodesAgents = ((WComposantScenario) fComposant).hGetCodesAgentsLies(this, hNewDialog()); 70 71 IWAgent[] vResult = new IWAgent[vCodesAgents.length]; 72 73 for (int i = 0; i < vResult.length; i++) { 74 vResult[i] = hGetAgentParRef(vCodesAgents[i]); 75 } 76 77 return vResult; 78 } 79 80 /** 81 * Renvoit la liste dynamique des agents Liés. 82 */ 83 public IWAgent[] hGetAgentsLies(IHDialog pDialog) throws java.lang.Exception { 84 68 public IWAgent[] hGetAgentsLies(IHDialog pDialog, Object pCriteres) throws java.lang.Exception { 85 69 IWADialog vDialog = null; 86 70 … … 103 87 104 88 /** 105 * Renvoit la liste dynamique des agents liés avec certains critères en paramètre. La structure des critères est106 * spécifique à chaque classe de composant.107 */108 public IWAgent[] hGetAgentsLies(IHDialog pDialog, Object pCriteres) throws java.lang.Exception {109 return hGetAgentsLies(pDialog);110 }111 112 /**113 * Renvoit la liste statique de tous les agents liés avec certains critères en paramètre. La structure des critères114 * est spécifique à chaque classe de composant.115 */116 public IWAgent[] hGetAgentsLies(Object pCriteres) throws java.lang.Exception {117 return hGetAgentsLies();118 }119 120 /**121 89 * 122 90 */ -
trunk/Jav_GE/com/scenari/m/ge/generateur/GeneratorBase.java
r7460 r7467 575 575 public String resultatAgent(String pUrl, Object pArgument) throws Exception { 576 576 IWAgent vAgent = (pUrl != null) ? ((IWADialog) fCurrentDialog).hGoToAgent(pUrl) : ((IWADialog) fCurrentDialog).hGetAgent(); 577 if (vAgent != null && vAgent instanceof IWAgentComputor) { return ((IWAgentComputor) vAgent).computeAs Data(fCurrentDialog, pArgument).getString(); }577 if (vAgent != null && vAgent instanceof IWAgentComputor) { return ((IWAgentComputor) vAgent).computeAsString(fCurrentDialog, pArgument); } 578 578 return ""; 579 579 } … … 603 603 if (vDialog != null && vDialog instanceof IWADialog) { 604 604 IWAgent vAgent = ((IWADialog) vDialog).hGetAgent(); 605 if (vAgent instanceof IWAgentComputor) { return ((IWAgentComputor) vAgent).computeAs Data(vDialog, pArgument).getString(); }605 if (vAgent instanceof IWAgentComputor) { return ((IWAgentComputor) vAgent).computeAsString(vDialog, pArgument); } 606 606 } 607 607 return ""; -
trunk/Jav_GE/com/scenari/m/ge/generator/web/CrossRefEntry.java
r7460 r7467 137 137 String vSortKey = ""; 138 138 IWAgent vAgentSortKey = pDialog.hGoToAgent("@" + vCrossEntry.fValueEntry + pPathAgentSortKey); 139 if (vAgentSortKey != null) vSortKey = ((IWAgentComputor) vAgentSortKey).computeAs Data(pDialog, null).getString();139 if (vAgentSortKey != null) vSortKey = ((IWAgentComputor) vAgentSortKey).computeAsString(pDialog, null); 140 140 vEntry.setAttribute("sortKey", vSortKey); 141 141 } -
trunk/Jav_GE/com/scenari/m/ge/xpath/dom/builder/ZXPathGetContent.java
r7460 r7467 105 105 if (vAgt != null) vAgt = vAgt.hGetAgentAssoc("xhtmlContent"); 106 106 if (vAgt != null && vAgt instanceof IWAgentComputor) { 107 String vRes = ((IWAgentComputor) vAgt).computeAs Data(vDialog, null).getString();107 String vRes = ((IWAgentComputor) vAgt).computeAsString(vDialog, null); 108 108 if (vRes != null && vRes.length() > 0) { 109 109 return new XString(vRes); -
trunk/Jav_GE/com/scenari/m/ge/xpath/dom/builder/ZXPathGetFullTitleText.java
r7460 r7467 106 106 if (vAgt != null) vAgt = vAgt.hGetAgentAssoc("fullTitleText"); 107 107 if (vAgt != null && vAgt instanceof IWAgentComputor) { 108 String vRes = ((IWAgentComputor) vAgt).computeAs Data(vDialog, null).getString();108 String vRes = ((IWAgentComputor) vAgt).computeAsString(vDialog, null); 109 109 if (vRes != null && vRes.length() > 0) { 110 110 return new XString(vRes); -
trunk/Jav_GE/com/scenari/m/ge/xpath/dom/builder/ZXPathGetShortTitleText.java
r7460 r7467 106 106 if (vAgt != null) vAgt = vAgt.hGetAgentAssoc("shortTitleText"); 107 107 if (vAgt != null && vAgt instanceof IWAgentComputor) { 108 String vRes = ((IWAgentComputor) vAgt).computeAs Data(vDialog, null).getString();108 String vRes = ((IWAgentComputor) vAgt).computeAsString(vDialog, null); 109 109 if (vRes != null && vRes.length() > 0) { 110 110 return new XString(vRes); -
trunk/Jav_GE/com/scenari/m/ge/xpath/dom/builder/ZXPathGetUrl.java
r7460 r7467 109 109 vDialog = vAgt.hNewDialog(vDialog); 110 110 vDialog.hSetHier(Collections.EMPTY_LIST); 111 String vRes = ((IWAgentComputor) vAgt).computeAs Data(vDialog, "act:").getString();111 String vRes = ((IWAgentComputor) vAgt).computeAsString(vDialog, "act:"); 112 112 if (vRes != null && vRes.length() > 0) { 113 113 return new XString(vRes); -
trunk/Jav_GE/com/scenari/m/ge/xpath/dom/builder/ZXPathGotoMeta.java
r7460 r7467 112 112 IWAgent vCodeMeta = vAgent.hGetAgentAssoc("codeMeta"); 113 113 if (vCodeMeta != null && vCodeMeta instanceof IWAgentComputor) { 114 return new XString(((IWAgentComputor) vCodeMeta).computeAs Data(wGetDialogFromCtx(pCtx), null).getString());114 return new XString(((IWAgentComputor) vCodeMeta).computeAsString(wGetDialogFromCtx(pCtx), null)); 115 115 } 116 116 }
Note: See TracChangeset
for help on using the changeset viewer.