01: /*
02: * JFolder, Copyright 2001-2006 Gary Steinmetz
03: *
04: * Distributable under LGPL license.
05: * See terms of license at gnu.org.
06: */
07:
08: package org.jfolder.common.function.v1;
09:
10: //base classes
11:
12: //project specific classes
13: import org.jfolder.common.SelfArgumentlessConstructor;
14: import org.jfolder.common.StandardDataTypes;
15: import org.jfolder.common.UnexpectedSystemException;
16: import org.jfolder.common.function.BaseCommonFunctionCompatibilityTag;
17: import org.jfolder.common.function.WebPageTagInstanceViewContext;
18: import org.jfolder.common.function.WebPageTagInstanceViewContextInfo;
19: import org.jfolder.common.tagging.AppraiseConceptTagContext;
20: import org.jfolder.common.tagging.DetermineClassConceptTagContext;
21: import org.jfolder.common.tagging.DetermineValueAndClassConceptTagContext;
22: import org.jfolder.common.tagging.InitializeConceptTagContext;
23: import org.jfolder.common.tagging.SelectionCriteriaForReturnableConceptTag;
24: import org.jfolder.common.tagging.StudioConceptTagCreParInfoContext;
25: import org.jfolder.common.tagging.StudioConceptTagInstanceInfoContext;
26: import org.jfolder.common.tagging.StudioConceptTagTypeInfoContext;
27:
28: //other classes
29:
30: public class CommonFunctionMacroCallMacroTag extends
31: BaseCommonFunctionCompatibilityTag implements
32: SelfArgumentlessConstructor {
33:
34: public void initialize(InitializeConceptTagContext inIctc) {
35: //
36: throw UnexpectedSystemException.notImplemented();
37: }
38:
39: public void appraise(AppraiseConceptTagContext inActc) {
40:
41: if (inActc instanceof StudioConceptTagInstanceInfoContext) {
42:
43: StudioConceptTagInstanceInfoContext sctiic = (StudioConceptTagInstanceInfoContext) inActc;
44:
45: sctiic.setInstanceTitle("(Error)");
46: sctiic.setInstanceDescription("(Error)");
47: } else if (inActc instanceof StudioConceptTagTypeInfoContext) {
48:
49: StudioConceptTagTypeInfoContext scttic = (StudioConceptTagTypeInfoContext) inActc;
50:
51: scttic.setTypeTitle("XOR");
52: scttic
53: .setTypeDescription("Performs a logical xor - returns false"
54: + " unless on operand is true and the other is false");
55: } else if (inActc instanceof WebPageTagInstanceViewContext) {
56:
57: WebPageTagInstanceViewContext wptivc = (WebPageTagInstanceViewContext) inActc;
58:
59: WebPageTagInstanceViewContextInfo info = wptivc
60: .getInfoAsNonHtml();
61: info.setNonHtmlContent("CallMarco - Not Impl");
62: //wptivc.getInfo().setStartContent("");
63: //wptivc.getInfo().setMiddleContent("");
64: //wptivc.getInfo().setEndContent("");
65: } else if (inActc instanceof SelectionCriteriaForReturnableConceptTag) {
66:
67: SelectionCriteriaForReturnableConceptTag scfrct = (SelectionCriteriaForReturnableConceptTag) inActc;
68:
69: scfrct.canReturnAnythingIncludingNothing();
70: scfrct.declareFormatAsPlain();
71: } else if (inActc instanceof StudioConceptTagCreParInfoContext) {
72:
73: StudioConceptTagCreParInfoContext scpc = (StudioConceptTagCreParInfoContext) inActc;
74: }
75: }
76:
77: public void determineValueAndClass(
78: DetermineValueAndClassConceptTagContext inDvacctc) {
79: //
80: throw UnexpectedSystemException.notImplemented();
81: }
82:
83: public void determineClass(DetermineClassConceptTagContext inDcctc) {
84: //
85: throw UnexpectedSystemException.notImplemented();
86: }
87:
88: public Object createUninitializedSelf() {
89: return new CommonFunctionMacroCallMacroTag();
90: }
91: }
|