|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.reuse.core.AbstractReusable<T>
T - The resource object type.public abstract class AbstractReusable<T>
Partial reusable object implementation.
| Field Summary | |
|---|---|
protected String |
name
A name given to the reusable resource. |
protected T |
object
The reusable object instance. |
| Constructor Summary | |
|---|---|
AbstractReusable(String name,
T object)
Create a reusable resource with name and the object to be reused. |
|
| Method Summary | |
|---|---|
String |
getName()
Reusable name. |
T |
getObject()
The reusable object. |
void |
setName(String name)
Sets the reusable object name. |
void |
setObject(T object)
Sets the reusable object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.specrunner.reuse.IReusable |
|---|
canReuse, release, reset |
| Field Detail |
|---|
protected String name
protected T object
| Constructor Detail |
|---|
public AbstractReusable(String name,
T object)
name - The name.object - The reusable object.| Method Detail |
|---|
public String getName()
IReusable
getName in interface IReusable<T>public void setName(String name)
name - The name.public T getObject()
IReusable
getObject in interface IReusable<T>public void setObject(T object)
object - The object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||