public class ComponentDefinitionMap
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
PageDefinition.getComponentDefinitionMap()
and LanguageDefinition
.
It is thread-safe (since it is used in LanguageDefinition
).
Constructor and Description |
---|
ComponentDefinitionMap(boolean ignoreCase)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public ComponentDefinitionMap(boolean ignoreCase)
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
Copyright © 2005-2018 Potix Corporation. All Rights Reserved.