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 CommonFunctionPropIsPropertyPresentTag 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("Subtract");
46: sctiic
47: .setInstanceDescription("Subtracts one number from another");
48: } else if (inActc instanceof StudioConceptTagTypeInfoContext) {
49:
50: StudioConceptTagTypeInfoContext scttic = (StudioConceptTagTypeInfoContext) inActc;
51:
52: scttic.setTypeTitle("Subtract");
53: scttic
54: .setTypeDescription("Subtracts one number from another");
55: } else if (inActc instanceof WebPageTagInstanceViewContext) {
56:
57: WebPageTagInstanceViewContext wptivc = (WebPageTagInstanceViewContext) inActc;
58:
59: WebPageTagInstanceViewContextInfo info = wptivc
60: .getInfoAsNonHtml();
61: info.setNonHtmlContent("IsPropPres - Not Impl");
62:
63: //wptivc.getInfo().setStartContent("");
64: //wptivc.getInfo().setMiddleContent("");
65: //wptivc.getInfo().setEndContent("");
66: } else if (inActc instanceof SelectionCriteriaForReturnableConceptTag) {
67:
68: SelectionCriteriaForReturnableConceptTag scfrct = (SelectionCriteriaForReturnableConceptTag) inActc;
69:
70: scfrct.canReturnBoolean();
71: scfrct.declareFormatAsPlain();
72: } else if (inActc instanceof StudioConceptTagCreParInfoContext) {
73:
74: StudioConceptTagCreParInfoContext scpc = (StudioConceptTagCreParInfoContext) inActc;
75: }
76: }
77:
78: public void determineValueAndClass(
79: DetermineValueAndClassConceptTagContext inDvacctc) {
80: //
81: throw UnexpectedSystemException.notImplemented();
82: }
83:
84: public void determineClass(DetermineClassConceptTagContext inDcctc) {
85: //
86: throw UnexpectedSystemException.notImplemented();
87: }
88:
89: public Object createUninitializedSelf() {
90: return new CommonFunctionPropIsPropertyPresentTag();
91: }
92: }
|