org.obe.xpdl.model.condition
Class Condition

java.lang.Object
  extended byorg.obe.util.AbstractBean
      extended byorg.obe.xpdl.model.condition.Condition
All Implemented Interfaces:
java.beans.beancontext.BeanContextChild, java.io.Serializable

public final class Condition
extends AbstractBean

Abstract base implementation of the Condition interface.

Author:
Adrian Price
See Also:
Serialized Form

Field Summary
static java.lang.String TYPE
           
static java.lang.String VALUE
           
static java.lang.String XPRESSION
           
 
Constructor Summary
Condition()
          Construct a new Condition.
 
Method Summary
 void add(Xpression xpression)
           
 ConditionType getType()
          Get the condition type.
 java.lang.String getValue()
          Get the condition value.
 Xpression[] getXpression()
          Get a list of Xpressions.
 Xpression getXpression(int i)
           
 void remove(Xpression xpression)
           
 void setType(ConditionType type)
          Set the condition type.
 void setValue(java.lang.String value)
          Set the condition value.
 void setXpression(int i, Xpression xpression)
           
 void setXpression(Xpression[] xpressions)
           
 java.lang.String toString()
           
 
Methods inherited from class org.obe.util.AbstractBean
add, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clear, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, get, get, getBeanContext, getListModel, hasChangeListeners, hasVetoListeners, remove, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener, set, set, setBeanContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final java.lang.String TYPE
See Also:
Constant Field Values

VALUE

public static final java.lang.String VALUE
See Also:
Constant Field Values

XPRESSION

public static final java.lang.String XPRESSION
See Also:
Constant Field Values
Constructor Detail

Condition

public Condition()
Construct a new Condition.

Method Detail

getType

public ConditionType getType()
Get the condition type.

Returns:
The condition type

setType

public void setType(ConditionType type)
Set the condition type.

Parameters:
type - The condition type

getValue

public java.lang.String getValue()
Get the condition value. This value represents a conditional expression.

Returns:
The value

setValue

public void setValue(java.lang.String value)
Set the condition value.

Parameters:
value - The value

add

public void add(Xpression xpression)
         throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

remove

public void remove(Xpression xpression)
            throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

getXpression

public Xpression[] getXpression()
Get a list of Xpressions.

Returns:
A List of Xpressions

getXpression

public Xpression getXpression(int i)

setXpression

public void setXpression(Xpression[] xpressions)
                  throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

setXpression

public void setXpression(int i,
                         Xpression xpression)
                  throws java.beans.PropertyVetoException
Throws:
java.beans.PropertyVetoException

toString

public java.lang.String toString()


SourceForge.net Logo OBE-1.0 Copyright (C) 2002-2006 Adrian Price. All Rights Reserved.