Added getPrototypeByName() method to retrieve a prototype by name.

This commit is contained in:
hns 2003-04-25 15:59:48 +00:00
parent 4da79ad8f2
commit 20df514693

View file

@ -740,6 +740,13 @@ public final class Application implements IPathElement, Runnable {
return p; return p;
} }
/**
* Return the prototype with the given name, if it exists
*/
public Prototype getPrototypeByName(String name) {
return (Prototype) typemgr.prototypes.get(name);
}
/** /**
* Return a collection containing all prototypes defined for this application * Return a collection containing all prototypes defined for this application
*/ */