|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.core.base.Adaptee
org.norther.tammi.core.base.DefaultObjectFactory
org.norther.tammi.core.xml.DefaultSAXParserFactory
public class DefaultSAXParserFactory
A default implementation of SAXParserFactory.
| Field Summary |
|---|
| Fields inherited from class org.norther.tammi.core.base.Adaptee |
|---|
ADAPTEE_NOTIF_DESCRIPTION, ADAPTEE_NOTIFICATIONS |
| Fields inherited from interface org.norther.tammi.core.xml.SAXParserFactory |
|---|
SAX_PARSER_FACTORY_PROPERTY |
| Fields inherited from interface org.norther.tammi.core.base.MBeanDelegate |
|---|
ARRAY_TYPE, OBJECT_TYPE, PRIMITIVE_TYPE, STRING_TYPE |
| Constructor Summary | |
|---|---|
DefaultSAXParserFactory()
Constructs a default SAX parser factory. |
|
DefaultSAXParserFactory(String factory)
Constructs a specific SAX parser factory, if the factory implementation has not yet been initialized. |
|
| Method Summary | |
|---|---|
boolean |
getFeature(String name)
Gets the particular property requested for in the underlying implementation of org.xml.sax.XMLReader. |
Object |
getInstance(String className,
ObjectName loader,
Object[] params,
String[] signature)
Gets an instance of a named class using a specified class loader. |
protected SAXParserFactory |
getSAXFactory()
Gets the implementation of the factory. |
String |
getSaxParserFactory()
Gets the class name of the implemention of the factory. |
boolean |
isLoaderSupported(String className)
Checks if specified class loaders are supported for a named class. |
boolean |
isNamespaceAware()
Indicates whether or not the factory is configured to produce parsers which are namespace aware. |
boolean |
isValidating()
Indicates whether or not the factory is configured to produce parsers which validate the XML content during parse. |
void |
setFeature(String name,
boolean awareness)
Sets the particular feature in the underlying implementation of org.xml.sax.XMLReader. |
void |
setNamespaceAware(boolean flag)
Specifies that the parser produced by this code will provide support for XML namespaces. |
void |
setSaxParserFactory(String factory)
Sets the class name of the implemention of the factory. |
void |
setValidating(boolean flag)
Specifies that the parser produced by this code will validate documents as they are parsed. |
void |
unmanaged()
This method is called when the implementing adaptee is unmanaged either during pre-deregistration of the corresponding adapter MBean or just before it is explicitly removed from the adapter MBean during run-time. |
| Methods inherited from class org.norther.tammi.core.base.DefaultObjectFactory |
|---|
getInstance, getInstance, getInstance |
| Methods inherited from class org.norther.tammi.core.base.Adaptee |
|---|
addAdaptee, addNotificationListener, getAttributeSupport, getBroker, getCanonicalName, getDomain, getFactory, getLoader, getLog, getLog, getMBean, getMBeanServer, getNotificationInfo, getObjectName, getRegistrationTime, getSequenceNumber, hasListeners, isRegistered, postmanaged, premanaged, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification, sendNotification, unregister |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.norther.tammi.core.base.ObjectFactory |
|---|
getInstance, getInstance, getInstance |
| Constructor Detail |
|---|
public DefaultSAXParserFactory()
public DefaultSAXParserFactory(String factory)
factory - the class name of the factory.| Method Detail |
|---|
public void unmanaged()
throws Exception
Manageable
unmanaged in interface Manageableunmanaged in class AdapteeException - if the adaptee refused to be unmanaged.public String getSaxParserFactory()
SAXParserFactory
getSaxParserFactory in interface SAXParserFactory
public void setSaxParserFactory(String factory)
throws LogException
SAXParserFactory
setSaxParserFactory in interface SAXParserFactoryfactory - the class name.
LogException - if the factory is already initialized.public boolean isNamespaceAware()
SAXParserFactory
isNamespaceAware in interface SAXParserFactorypublic void setNamespaceAware(boolean flag)
SAXParserFactory
setNamespaceAware in interface SAXParserFactoryflag - true to support XML namespaces, false otherwise.public boolean isValidating()
SAXParserFactory
isValidating in interface SAXParserFactorypublic void setValidating(boolean flag)
SAXParserFactory
setValidating in interface SAXParserFactoryflag - true to validate documents, false otherwise.
public boolean getFeature(String name)
throws LogException
SAXParserFactory
getFeature in interface SAXParserFactoryname - the name of the feature to get.
LogException - on errors.
public void setFeature(String name,
boolean awareness)
throws LogException
SAXParserFactory
setFeature in interface SAXParserFactoryname - the name of the feature to be set.awareness - the value of the feature to be set.
LogException - on errors.
public Object getInstance(String className,
ObjectName loader,
Object[] params,
String[] signature)
throws ConstructionException
ObjectFactoryClass loaders are supported only if the isLoaderSupported method returns true. Otherwise the loader parameter is ignored.
getInstance in interface ObjectFactorygetInstance in class DefaultObjectFactoryclassName - the name of the class.loader - the class loader.params - an array containing the parameters of the constructor.signature - an array containing the signature of the constructor.
ConstructionException - if construction fails.public boolean isLoaderSupported(String className)
ObjectFactory
isLoaderSupported in interface ObjectFactoryisLoaderSupported in class DefaultObjectFactoryclassName - the name of the class.
protected SAXParserFactory getSAXFactory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||