CommonFunctionMathSquareRootTag.java :  » Workflow-Engines » JFolder » org » jfolder » common » function » v1 » Java Open Source

Java Open Source » Workflow Engines » JFolder 
JFolder » org » jfolder » common » function » v1 » CommonFunctionMathSquareRootTag.java
/*
 * JFolder, Copyright 2001-2006 Gary Steinmetz
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */

package org.jfolder.common.function.v1;

//base classes

//project specific classes
import org.jfolder.common.SelfArgumentlessConstructor;
import org.jfolder.common.StandardDataTypes;
import org.jfolder.common.UnexpectedSystemException;
import org.jfolder.common.function.BaseCommonFunctionCompatibilityTag;
import org.jfolder.common.function.WebPageTagInstanceViewContext;
import org.jfolder.common.function.WebPageTagInstanceViewContextInfo;
import org.jfolder.common.tagging.AppraiseConceptTagContext;
import org.jfolder.common.tagging.DetermineClassConceptTagContext;
import org.jfolder.common.tagging.DetermineValueAndClassConceptTagContext;
import org.jfolder.common.tagging.InitializeConceptTagContext;
import org.jfolder.common.tagging.SelectionCriteriaForReturnableConceptTag;
import org.jfolder.common.tagging.StudioConceptTagCreParInfoContext;
import org.jfolder.common.tagging.StudioConceptTagInstanceInfoContext;
import org.jfolder.common.tagging.StudioConceptTagTypeInfoContext;

//other classes

public class CommonFunctionMathSquareRootTag
    extends BaseCommonFunctionCompatibilityTag
    implements SelfArgumentlessConstructor {
    
    public void initialize(InitializeConceptTagContext inIctc) {
        //
        throw UnexpectedSystemException.notImplemented();
    }
    
    public void appraise(AppraiseConceptTagContext inActc) {
        
        if (inActc instanceof StudioConceptTagInstanceInfoContext) {
            
            StudioConceptTagInstanceInfoContext sctiic =
                (StudioConceptTagInstanceInfoContext)inActc;
            
            sctiic.setInstanceTitle("Round");
            sctiic.setInstanceDescription("Round");
        }
        else if (inActc instanceof StudioConceptTagTypeInfoContext) {
            
            StudioConceptTagTypeInfoContext scttic =
                (StudioConceptTagTypeInfoContext)inActc;
            
            scttic.setTypeTitle("Round");
            scttic.setTypeDescription("Round");
        }
        else if (inActc instanceof WebPageTagInstanceViewContext) {
            
            WebPageTagInstanceViewContext wptivc =
                (WebPageTagInstanceViewContext)inActc;
            
            WebPageTagInstanceViewContextInfo info = wptivc.getInfoAsNonHtml();
            info.setNonHtmlContent("SquareRoot - Not Impl");
            //wptivc.getInfo().setStartContent("");
            //wptivc.getInfo().setMiddleContent("");
            //wptivc.getInfo().setEndContent("");
        }
        else if (inActc instanceof SelectionCriteriaForReturnableConceptTag) {
            
            SelectionCriteriaForReturnableConceptTag scfrct =
                (SelectionCriteriaForReturnableConceptTag)inActc;
            
            scfrct.canReturnDecimal();
            scfrct.declareFormatAsPlain();
        }
        else if (inActc instanceof StudioConceptTagCreParInfoContext) {
            
            StudioConceptTagCreParInfoContext scpc =
                (StudioConceptTagCreParInfoContext)inActc;
        }
    }
    
    public void determineValueAndClass(
        DetermineValueAndClassConceptTagContext inDvacctc) {
        //
        throw UnexpectedSystemException.notImplemented();
    }
    
    public void determineClass(DetermineClassConceptTagContext inDcctc) {
        //
        throw UnexpectedSystemException.notImplemented();
    }
    
    public Object createUninitializedSelf() {
        return new CommonFunctionMathSquareRootTag();
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.