Added getPrototypeByName() method to retrieve a prototype by name.
This commit is contained in:
parent
4da79ad8f2
commit
20df514693
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue