|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.metainfo.ComponentDefinitionMap
public class ComponentDefinitionMap
A map of component definitions.
Used with PageDefinition.getComponentDefinitionMap()
and LanguageDefinition.
It is thread-safe (since it is used in LanguageDefinition).
| Constructor Summary | |
|---|---|
ComponentDefinitionMap(boolean ignoreCase)
Constructor. |
|
| Method Summary | |
|---|---|
void |
add(ComponentDefinition compdef)
Adds a component definition to this map. |
java.lang.Object |
clone()
|
boolean |
contains(java.lang.String name)
Returns whether the specified component exists. |
ComponentDefinition |
get(java.lang.Class cls)
Returns the component definition of the specified class, or null if not found. |
ComponentDefinition |
get(java.lang.String name)
Returns the component definition of the specified name, or null if not not found. |
java.util.Collection<ComponentDefinition> |
getDefinitions()
Returns a readonly collection of component definitions ( ComponentDefinition) defined in this map. |
java.util.Collection<java.lang.String> |
getNames()
Returns a readonly collection of the names (String) of component definitions defined in this map. |
boolean |
isCaseInsensitive()
Returns whether the component names are case-insensitive. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentDefinitionMap(boolean ignoreCase)
| Method Detail |
|---|
public boolean isCaseInsensitive()
public java.util.Collection<java.lang.String> getNames()
public java.util.Collection<ComponentDefinition> getDefinitions()
ComponentDefinition) defined in this map.
public void add(ComponentDefinition compdef)
Thread safe.
public boolean contains(java.lang.String name)
public ComponentDefinition get(java.lang.String name)
Note: unlike LanguageDefinition.getComponentDefinition(java.lang.String),
this method doesn't throw ComponentNotFoundException if not found.
It just returns null.
public ComponentDefinition get(java.lang.Class cls)
Note: unlike LanguageDefinition.getComponentDefinition(java.lang.String),
this method doesn't throw ComponentNotFoundException if not found.
It just returns null.
public java.lang.Object clone()
clone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||