Class ComponentKey
- java.lang.Object
-
- net.sf.jasperreports.engine.component.ComponentKey
-
- All Implemented Interfaces:
Serializable
public class ComponentKey extends Object implements 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:
JRComponentElement.getComponentKey(), Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ComponentKey(String namespace, String namespacePrefix, String name)Create a component type key.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetName()Returns the component name.StringgetNamespace()Returns the component namespace.StringgetNamespacePrefix()Returns the namespace prefix which is to be used when producing an XML representation of a component of this type.inthashCode()
-
-
-
Method Detail
-
getNamespace
public String 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
public String 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
public String 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
-
-