Class ComponentKey
java.lang.Object
net.sf.jasperreports.engine.component.ComponentKey
- All Implemented Interfaces:
Serializable
A key identifying a component type/class.
A component type is identified by a namespace and a component name.
An instance of this class includes in addition a namespace prefix, which
is required when producing a JRXML representation of the component
(via JRXmlWriter).
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionComponentKey(String namespace, String namespacePrefix, String name) Create a component type key. -
Method Summary
-
Constructor Details
-
ComponentKey
Create a component type key.- Parameters:
namespace- the component namespacenamespacePrefix- the prefix to use for the namespacename- the component name
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
getNamespace
Returns the component namespace.This value must match the namespece of a components bundle, as returned by
ComponentsXmlParser.getNamespace().- Returns:
- the component namespace
-
getName
Returns the component name.The value must match a component name in the components bundle, as used in
ComponentsBundle.getComponentManager(String).- Returns:
- the coponent name
-
getNamespacePrefix
Returns the namespace prefix which is to be used when producing an XML representation of a component of this type.- Returns:
- the namespace prefix
-