public class ComponentKey extends Object implements Serializable
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
).
JRComponentElement.getComponentKey()
,
Serialized FormConstructor and Description |
---|
ComponentKey(String namespace,
String namespacePrefix,
String name)
Create a component type key.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getName()
Returns the component name.
|
String |
getNamespace()
Returns the component namespace.
|
String |
getNamespacePrefix()
Returns the namespace prefix which is to be used when producing
an XML representation of a component of this type.
|
int |
hashCode() |
public String getNamespace()
This value must match the namespece of a components bundle, as returned by
ComponentsXmlParser.getNamespace()
.
public String getName()
The value must match a component name in the components bundle, as
used in ComponentsBundle.getComponentManager(String)
.
public String getNamespacePrefix()
Copyright © 2017. All rights reserved.