|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openide.util.Lookup.Template
Template defining a pattern to filter instances by.
| Constructor Summary | |
Lookup.Template()
Deprecated. Use new Template (Object.class) which
is going to be better typed with JDK1.5 templates and should produce
the same result. |
|
Lookup.Template(Class type)
Create a simple template matching by class. |
|
Lookup.Template(Class type,
String id,
Object instance)
Constructor to create new template. |
|
| Method Summary | |
boolean |
equals(Object obj)
|
String |
getId()
Get the persistent identifier being searched for, if any. |
Object |
getInstance()
Get the specific instance being searched for, if any. |
Class |
getType()
Get the class (or superclass or interface) to search for. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Lookup.Template()
new Template (Object.class) which
is going to be better typed with JDK1.5 templates and should produce
the same result.
public Lookup.Template(Class type)
type - the class of service we are looking for (subclasses will match)public Lookup.Template(Class type, String id, Object instance)
type - the class of service we are looking for or null to leave unspecifiedid - the ID of the item/service we are looking for or null to leave unspecifiedinstance - a specific known instance to look for or null to leave unspecified| Method Detail |
public Class getType()
Object is used as
this will match any instance.
public String getId()
nullLookup.Item.getId()public Object getInstance()
Item when the instance
is already known.
nullpublic int hashCode()
public boolean equals(Object obj)
public String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||