Class DefaultComponentXmlParser
java.lang.Object
net.sf.jasperreports.engine.component.DefaultComponentXmlParser
- All Implemented Interfaces:
ComponentsXmlParser
The default
ComponentsXmlParser implementation.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a digester configurer for the component bundle.Returns a resource name that resolves to an internal XML schema resource.Returns the namespace used by the component bundle.Returns the public location of the component bundle XML schema.voidsetDigesterConfigurer(XmlDigesterConfigurer digesterConfigurer) Sets the components digester configurer.voidsetInternalSchemaResource(String internalSchemaResource) Sets the internal XML schema resource name.voidsetNamespace(String namespace) Sets the components namespace.voidsetPublicSchemaLocation(String publicSchemaLocation) Sets the public location of the components XML schema.
-
Constructor Details
-
DefaultComponentXmlParser
public DefaultComponentXmlParser()
-
-
Method Details
-
getNamespace
Description copied from interface:ComponentsXmlParserReturns the namespace used by the component bundle.The XML representation of the components will use this namespace.
- Specified by:
getNamespacein interfaceComponentsXmlParser- Returns:
- the component bundle namespace
-
setNamespace
Sets the components namespace.- Parameters:
namespace- the components namespace- See Also:
-
getDigesterConfigurer
Description copied from interface:ComponentsXmlParserReturns a digester configurer for the component bundle.The digester configurer is responsible for providing digester rules that transform an XML fragment into a
Componentinstance.- Specified by:
getDigesterConfigurerin interfaceComponentsXmlParser- Returns:
- a digester configurer
-
setDigesterConfigurer
Sets the components digester configurer.- Parameters:
digesterConfigurer- the components digester configurer- See Also:
-
getPublicSchemaLocation
Description copied from interface:ComponentsXmlParserReturns the public location of the component bundle XML schema.This would be listed in
schemaLocationXML attributes.- Specified by:
getPublicSchemaLocationin interfaceComponentsXmlParser- Returns:
- the public location of the component bundle XML schema
-
setPublicSchemaLocation
Sets the public location of the components XML schema.- Parameters:
publicSchemaLocation- the components XML schema public location- See Also:
-
getInternalSchemaResource
Description copied from interface:ComponentsXmlParserReturns a resource name that resolves to an internal XML schema resource.If not null, the resource (which needs to be present on the classpath) will be used when parsing component XML fragments instead of the public XML schema.
- Specified by:
getInternalSchemaResourcein interfaceComponentsXmlParser- Returns:
- the name of the internal XML schema resource
-
setInternalSchemaResource
Sets the internal XML schema resource name.- Parameters:
internalSchemaResource- the internal XML schema resource name- See Also:
-