Package org.zkoss.zk.ui.metainfo
Class ComponentDefinitionMap
java.lang.Object
org.zkoss.zk.ui.metainfo.ComponentDefinitionMap
- All Implemented Interfaces:
Serializable,Cloneable
A map of component definitions.
Used with
PageDefinition.getComponentDefinitionMap()
and LanguageDefinition.
It is thread-safe (since it is used in LanguageDefinition).
- Author:
- tomyeh
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ComponentDefinition compdef) Adds a component definition to this map.clone()booleanReturns whether the specified component exists.Returns the component definition of the specified class, or null if not found.Returns the component definition of the specified name, or null if not not found.Returns a readonly collection of component definitions (ComponentDefinition) defined in this map.getNames()Returns a readonly collection of the names (String) of component definitions defined in this map.booleanReturns whether the component names are case-insensitive.
-
Constructor Details
-
ComponentDefinitionMap
public ComponentDefinitionMap(boolean ignoreCase) Constructor.
-
-
Method Details
-
isCaseInsensitive
public boolean isCaseInsensitive()Returns whether the component names are case-insensitive. -
getNames
Returns a readonly collection of the names (String) of component definitions defined in this map. -
getDefinitions
Returns a readonly collection of component definitions (ComponentDefinition) defined in this map.- Since:
- 3.6.3
-
add
Adds a component definition to this map.Thread safe.
-
contains
Returns whether the specified component exists. -
get
Returns the component definition of the specified name, or null if not not found.Note: unlike
LanguageDefinition.getComponentDefinition(java.lang.String), this method doesn't throw ComponentNotFoundException if not found. It just returns null. -
get
Returns the component definition of the specified class, or null if not found.Note: unlike
LanguageDefinition.getComponentDefinition(java.lang.String), this method doesn't throw ComponentNotFoundException if not found. It just returns null. -
clone
-