| Java API Reference | Class Hierarchy | All Classes | All Fields and Methods |
com.ibm.xtools.patterns.framework
+-- AbstractPatternResult +-- PatternsFrameworkResult
public Class PatternsFrameworkResult
extends AbstractPatternResult
Provides a default implementation of the AbstractPatternResult class.
| Constructor summary |
|---|
| PatternsFrameworkResult() Creates an empty pattern result. |
| PatternsFrameworkResult(Object createdObject) Creates a pattern result with the given created object. |
| PatternsFrameworkResult(Object createdObjects) Creates a pattern result with the given created objects. |
| Method summary | |
|---|---|
| void | addCreatedObject(Object object) Adds the given object to the created objects of this pattern result. |
| void | addCreatedObjects(Object objects) Adds the given array of objects to the collection of created objects associated with this pattern result. |
| void | addNestedResult(AbstractPatternResult nestedResult) Adds the given result to the nested results of this pattern result. |
| Object | getCreatedObjects() Retrieves the created objects, if any, of this pattern result. |
| AbstractPatternResult | getNestedResults() Retrieves the nested results, if any, of this pattern result. |
| boolean | hasCreatedObjects() Retrieves the nested results, if any, of this pattern result. |
| boolean | hasNestedResults() Indicates whether this pattern result has any nested results. |
Constructor detail
public PatternsFrameworkResult(Object createdObject)
Creates a pattern result with the given created object.
Parameters:
| createdObject | - The object to be added to the collection of created objects associated with this result. |
public PatternsFrameworkResult(Object createdObjects)
Creates a pattern result with the given created objects.
Parameters:
| createdObjects | - The array of objects to be added to the collection of created objects associated with this result. |
Method detail
public void addCreatedObject(Object object)
Adds the given object to the created objects of this pattern result.
Parameters:
| object | - The object to be added to the collection. |
public void addCreatedObjects(Object objects)
Adds the given array of objects to the collection of created objects associated with this pattern result.
Parameters:
| objects | - The array of objects to be added to the collection of created objects. |
public void addNestedResult(AbstractPatternResult nestedResult)
Adds the given result to the nested results of this pattern result.
Parameters:
| nestedResult | - The given result. |
public Object getCreatedObjects()
Retrieves the created objects, if any, of this pattern result.
Returns:
The created objects of this pattern result. |
public AbstractPatternResult getNestedResults()
Retrieves the nested results, if any, of this pattern result.
Returns:
The nested results of this pattern result. |