public class DefaultComponentXmlParser extends Object implements ComponentsXmlParser
ComponentsXmlParser implementation.| Constructor and Description |
|---|
DefaultComponentXmlParser() |
| Modifier and Type | Method and Description |
|---|---|
XmlDigesterConfigurer |
getDigesterConfigurer()
Returns a digester configurer for the component bundle.
|
String |
getInternalSchemaResource()
Returns a resource name that resolves to an internal XML schema
resource.
|
String |
getNamespace()
Returns the namespace used by the component bundle.
|
String |
getPublicSchemaLocation()
Returns the public location of the component bundle XML schema.
|
void |
setDigesterConfigurer(XmlDigesterConfigurer digesterConfigurer)
Sets the components digester configurer.
|
void |
setInternalSchemaResource(String internalSchemaResource)
Sets the internal XML schema resource name.
|
void |
setNamespace(String namespace)
Sets the components namespace.
|
void |
setPublicSchemaLocation(String publicSchemaLocation)
Sets the public location of the components XML schema.
|
public String getNamespace()
ComponentsXmlParserThe XML representation of the components will use this namespace.
getNamespace in interface ComponentsXmlParserpublic void setNamespace(String namespace)
namespace - the components namespacegetNamespace()public XmlDigesterConfigurer getDigesterConfigurer()
ComponentsXmlParser
The digester configurer is responsible for providing digester rules
that transform an XML fragment into a Component instance.
getDigesterConfigurer in interface ComponentsXmlParserpublic void setDigesterConfigurer(XmlDigesterConfigurer digesterConfigurer)
digesterConfigurer - the components digester configurergetDigesterConfigurer()public String getPublicSchemaLocation()
ComponentsXmlParser
This would be listed in schemaLocation XML attributes.
getPublicSchemaLocation in interface ComponentsXmlParserpublic void setPublicSchemaLocation(String publicSchemaLocation)
publicSchemaLocation - the components XML schema public locationgetPublicSchemaLocation()public String getInternalSchemaResource()
ComponentsXmlParserIf 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.
getInternalSchemaResource in interface ComponentsXmlParserpublic void setInternalSchemaResource(String internalSchemaResource)
internalSchemaResource - the internal XML schema resource namegetInternalSchemaResource()Copyright © 2017. All rights reserved.