Java API ReferenceClass Hierarchy | All Classes | All Fields and Methods

com.ibm.xtools.patterns.framework

Class PatternsFrameworkResult

+-- 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
voidaddCreatedObject(Object object)

Adds the given object to the created objects of this pattern result.

voidaddCreatedObjects(Object objects)

Adds the given array of objects to the collection of created objects associated with this pattern result.

voidaddNestedResult(AbstractPatternResult nestedResult)

Adds the given result to the nested results of this pattern result.

ObjectgetCreatedObjects()

Retrieves the created objects, if any, of this pattern result.

AbstractPatternResultgetNestedResults()

Retrieves the nested results, if any, of this pattern result.

booleanhasCreatedObjects()

Retrieves the nested results, if any, of this pattern result.

booleanhasNestedResults()

Indicates whether this pattern result has any nested results.

Constructor detail

PatternsFrameworkResult

public PatternsFrameworkResult()

Creates an empty pattern result.


PatternsFrameworkResult

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.

PatternsFrameworkResult

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

addCreatedObject

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.

addCreatedObjects

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.

addNestedResult

public void addNestedResult(AbstractPatternResult nestedResult)

Adds the given result to the nested results of this pattern result.

Parameters:

nestedResult
- The given result.

getCreatedObjects

public Object getCreatedObjects()

Retrieves the created objects, if any, of this pattern result.

Returns:

The created objects of this pattern result.

getNestedResults

public AbstractPatternResult getNestedResults()

Retrieves the nested results, if any, of this pattern result.

Returns:

The nested results of this pattern result.

hasCreatedObjects

public boolean hasCreatedObjects()

Retrieves the nested results, if any, of this pattern result.

Returns:

The nested results of this pattern result.

hasNestedResults

public boolean hasNestedResults()

Indicates whether this pattern result has any nested results.

Returns:

A Boolean value of true if the pattern result has nested results; otherwise, it returns a value of false.


Feedback