|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.xtools.patterns.core.AbstractPatternResult
Provides a mechanism for pattern instance providers to return structured results from their operations.
A pattern result can have zero or more nested pattern results (getNestedResults
) and
zero or more created objects (getCreatedobjects
).
To add a nested pattern result, use the addNestedResult
method.
Use the addCreatedObject
method to add an object to the created objects
of the pattern result.
Constructor Summary | |
AbstractPatternResult()
Creates an empty pattern result. |
Method Summary | |
abstract void |
addCreatedObject(Object object)
Adds the given object to the created objects of this pattern result. |
abstract void |
addCreatedObjects(Object[] objects)
Adds the given array of objects to the collection of created objects associated with this pattern result. |
abstract void |
addNestedResult(AbstractPatternResult nestedResult)
Adds the given result to the nested results of this pattern result. |
abstract Object[] |
getCreatedObjects()
Returns the created objects, if any, of this pattern result. |
abstract AbstractPatternResult[] |
getNestedResults()
Returns the nested results, if any, of this pattern result. |
abstract boolean |
hasCreatedObjects()
Indicates whether this pattern result has any created objects. |
abstract boolean |
hasNestedResults()
Indicates whether this pattern result has any nested results. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractPatternResult()
Method Detail |
public abstract boolean hasNestedResults()
true
if the pattern result has nested results;
otherwise, it returns false
.public abstract AbstractPatternResult[] getNestedResults()
public abstract void addNestedResult(AbstractPatternResult nestedResult)
public abstract boolean hasCreatedObjects()
true
if the pattern result has created objects;
otherwies, it returns false
.public abstract Object[] getCreatedObjects()
public abstract void addCreatedObject(Object object)
public abstract void addCreatedObjects(Object[] objects)
objects
- The array of objects to be added to the collection
of created objects.
|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2004. All rights reserved.