oracle.apps.fnd.wf.common
Class BaseComponent

java.lang.Object
  |
  +--oracle.apps.fnd.wf.common.Element
        |
        +--oracle.apps.fnd.wf.common.BaseComponent
Direct Known Subclasses:
AccessController, DesignBaseComponent, EngineBaseComponent

public class BaseComponent
extends Element

BaseComponent provides the heirachical data structure that is observed in most of Workflow components at both runtime and design time. This is an internal class that should not be used directly by application developers.


Field Summary
static java.lang.String RCS_ID
           
static boolean RCS_ID_RECORDED
           
 
Fields inherited from class oracle.apps.fnd.wf.common.Element
ELEMENT_DB_CREATED, ELEMENT_DB_CREATING, ELEMENT_DB_DIRTY, ELEMENT_DB_LOADED, ELEMENT_DB_LOADING, ELEMENT_DB_NOT_INITIALIZED, ELEMENT_DB_SAVED, ELEMENT_DB_SAVING
 
Method Summary
 void addChild(BaseComponent child)
          Add a child to this component, will set parent to be this component.
 BaseComponent getChildByTypeAndName(java.lang.Class type, java.lang.String name)
          Return a list of child components with the same type
 java.util.List getChildren()
          Returns all the children.
 java.util.List getChildrenByName(java.lang.Object name)
          Return a list of child components with the same name
 java.util.List getChildrenByType(java.lang.Class type)
          Return a list of child components with the same type
 java.lang.String getName()
          A convenient method for Id
 BaseComponent getParent()
          Return parent of this object.
 void removeChild(BaseComponent child)
          Remove a child from this component, will set parent to be null.
 void removeChildren()
          Remove all children from its child list.
 
Methods inherited from class oracle.apps.fnd.wf.common.Element
create, getDBStatus, getId, load, save, setStore, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RCS_ID

public static final java.lang.String RCS_ID

RCS_ID_RECORDED

public static final boolean RCS_ID_RECORDED
Method Detail

getParent

public BaseComponent getParent()
Return parent of this object.
Returns:
parent : BaseComponent

removeChild

public void removeChild(BaseComponent child)
Remove a child from this component, will set parent to be null.
Parameters:
child - : BaseComponent child to be removed.

addChild

public void addChild(BaseComponent child)
Add a child to this component, will set parent to be this component.
Parameters:
child - : BaseComponent child to be added.

getChildren

public java.util.List getChildren()
Returns all the children. We need to be clear if we need to be in synch with persistent storage. Same for all other get list methods.
Returns:
children : List of child components.

getChildrenByType

public java.util.List getChildrenByType(java.lang.Class type)
Return a list of child components with the same type
Parameters:
type - : Class Type of component interested in
Returns:
list of children of the given class, empty list will be returned if found none.

getChildByTypeAndName

public BaseComponent getChildByTypeAndName(java.lang.Class type,
                                           java.lang.String name)
Return a list of child components with the same type
Parameters:
type - : Class Type of component interested in
Returns:
list of children of the given class, empty list will be returned if found none.

getChildrenByName

public java.util.List getChildrenByName(java.lang.Object name)
Return a list of child components with the same name
Parameters:
name - : String name of component interested in
Returns:
list of children of the given name, empty list will be returned if found none.

removeChildren

public void removeChildren()
Remove all children from its child list.

getName

public java.lang.String getName()
A convenient method for Id
Returns:
name : String component name.