com.novell.zos.constraint
Interface IfConstraint

All Superinterfaces:
Constraint, ContainerConstraint, Serializable

public interface IfConstraint
extends ContainerConstraint

Perform a conditional if,then,else block. If conditional passes, the pass block is run as it would be in an AND constraint. If the the conditional fails, the fail block is run as it would be in an AND constraint.


Field Summary
 
Fields inherited from interface com.novell.zos.constraint.Constraint
TYPE_ACCEPT, TYPE_ALLOCATION, TYPE_CONTINUE, TYPE_DEFAULT, TYPE_PROVISION, TYPE_REPOSITORY, TYPE_RESOURCE, TYPE_START, TYPE_VMHOST, TYPES
 
Method Summary
 void addElseChild(Constraint child)
          Add a child fail constraint.
 void addThenChild(Constraint child)
          Add a child pass constraint.
 Iterator getElseChildIterator()
          Retrieve the Iterator for fail child constraints
 Iterator getThenChildIterator()
          Retrieve the Iterator for pass child constraints
 
Methods inherited from interface com.novell.zos.constraint.ContainerConstraint
addChild, getChildCount, getChildren, removeChild
 
Methods inherited from interface com.novell.zos.constraint.Constraint
getReason, setReason, toString, toXmlDocument, validate
 

Method Detail

addThenChild

void addThenChild(Constraint child)
Add a child pass constraint.

Parameters:
child - the child Constraint to add

getThenChildIterator

Iterator getThenChildIterator()
Retrieve the Iterator for pass child constraints

Returns:
the iterator

addElseChild

void addElseChild(Constraint child)
Add a child fail constraint.

Parameters:
child - the child Constraint to add

getElseChildIterator

Iterator getElseChildIterator()
Retrieve the Iterator for fail child constraints

Returns:
the iterator


Copyright 2008 Novell, Inc. All Rights Reserved.