SmartFrog 3.10.000

org.smartfrog.sfcore.languages.sf.predicates
Class BasePredicate

java.lang.Object
  extended by org.smartfrog.sfcore.languages.sf.predicates.BasePredicate
All Implemented Interfaces:
PhaseAction
Direct Known Subclasses:
Assertions, Schema, SchemaDescription

public abstract class BasePredicate
extends java.lang.Object
implements PhaseAction

Defines the base predicate for all the schemas.


Field Summary
protected  SFComponentDescription component
          The component description.
protected  Context context
          The context of the component.
static boolean keepPredicates
          Flag indicating to keep predicate or not.
protected  java.lang.String phaseName
           
protected  java.util.Stack stack
           
 
Constructor Summary
BasePredicate()
           
 
Method Summary
 void doit()
          Default implementation of doit method.
protected abstract  void doPredicate()
          The method to implement the functionality of any schema.
 void forComponent(SFComponentDescription cd, java.lang.String phasename, java.util.Stack p)
          Sets the component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keepPredicates

public static boolean keepPredicates
Flag indicating to keep predicate or not.


component

protected SFComponentDescription component
The component description.


context

protected Context context
The context of the component.


phaseName

protected java.lang.String phaseName

stack

protected java.util.Stack stack
Constructor Detail

BasePredicate

public BasePredicate()
Method Detail

doPredicate

protected abstract void doPredicate()
                             throws SmartFrogCompileResolutionException
The method to implement the functionality of any schema.

Throws:
SmartFrogCompileResolutionException - failed to implement the schema

doit

public void doit()
          throws SmartFrogCompileResolutionException
Default implementation of doit method.

Specified by:
doit in interface PhaseAction
Throws:
SmartFrogCompileResolutionException - failure in implementing the actions

forComponent

public void forComponent(SFComponentDescription cd,
                         java.lang.String phasename,
                         java.util.Stack p)
Sets the component.

Specified by:
forComponent in interface PhaseAction
Parameters:
cd - component description

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP