|
||||||||||
| 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.DefaultDOMBuilderFactory
public class DefaultDOMBuilderFactory
A default implementation of DOMBuilderFactor.
| 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.DOMBuilderFactory |
|---|
DOM_BUILDER_FACTORY_PROPERTY |
| Fields inherited from interface org.norther.tammi.core.base.MBeanDelegate |
|---|
ARRAY_TYPE, OBJECT_TYPE, PRIMITIVE_TYPE, STRING_TYPE |
| Constructor Summary | |
|---|---|
DefaultDOMBuilderFactory()
Constructs a default DOM builder factory. |
|
DefaultDOMBuilderFactory(String factory)
Constructs a specific DOM builder factory, if the factory implementation has not yet been initialized. |
|
| Method Summary | |
|---|---|
Object |
getAttribute(String name)
Gets an attribute of the factory. |
String |
getDocumentBuilderFactory()
Gets the class name of the implemention of the factory. |
protected DocumentBuilderFactory |
getDOMFactory()
Gets the implementation of the factory. |
Object |
getInstance(String className,
ObjectName loader,
Object[] params,
String[] signature)
Gets an instance of a named class using a specified class loader. |
boolean |
isCoalescing()
Indicates whether or not the factory is configured to produce parsers which converts CDATA nodes to Text nodes and appends it to the adjacent (if any) Text node. |
boolean |
isExpandEntityReferences()
Indicates whether or not the factory is configured to produce parsers which expand entity reference nodes. |
boolean |
isIgnoreElementContentWhitespace()
Indicates whether or not the factory is configured to produce parsers which ignore ignorable whitespace in element content. |
boolean |
isIgnoringComments()
Indicates whether or not the factory is configured to produce parsers which ignores comments. |
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 |
setAttribute(String name,
Object value)
Sets an attribute of the factory. |
void |
setCoalescing(boolean flag)
Specifies that the parser produced by this code will convert CDATA nodes to Text nodes and append it to the adjacent (if any) text node. |
void |
setDocumentBuilderFactory(String factory)
Sets the class name of the implemention of the factory. |
void |
setExpandEntityReferences(boolean flag)
Specifies that the parser produced by this code will expand entity reference nodes. |
void |
setIgnoreElementContentWhitespace(boolean flag)
Specifies that the parsers created by this factory must eliminate whitespace in element content (sometimes known loosely as 'ignorable whitespace') when parsing XML documents (see XML Rec 2.10). |
void |
setIgnoringComments(boolean flag)
Specifies that the parser produced by this code will ignore comments. |
void |
setNamespaceAware(boolean flag)
Specifies that the parser produced by this code will provide support for XML namespaces. |
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 DefaultDOMBuilderFactory()
public DefaultDOMBuilderFactory(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 getDocumentBuilderFactory()
DOMBuilderFactory
getDocumentBuilderFactory in interface DOMBuilderFactory
public void setDocumentBuilderFactory(String factory)
throws LogException
DOMBuilderFactory
setDocumentBuilderFactory in interface DOMBuilderFactoryfactory - the class name.
LogException - if the factory is already initialized.public boolean isCoalescing()
DOMBuilderFactory
isCoalescing in interface DOMBuilderFactorypublic void setCoalescing(boolean flag)
DOMBuilderFactory
setCoalescing in interface DOMBuilderFactoryflag - true to convert CDATA nodes to Text nodes, false otherwise.public boolean isExpandEntityReferences()
DOMBuilderFactory
isExpandEntityReferences in interface DOMBuilderFactorypublic void setExpandEntityReferences(boolean flag)
DOMBuilderFactory
setExpandEntityReferences in interface DOMBuilderFactoryflag - true to expand entity reference nodes, false otherwise.public boolean isIgnoreElementContentWhitespace()
DOMBuilderFactory
isIgnoreElementContentWhitespace in interface DOMBuilderFactorypublic void setIgnoreElementContentWhitespace(boolean flag)
DOMBuilderFactory
setIgnoreElementContentWhitespace in interface DOMBuilderFactoryflag - true to ignore whitespace, false otherwise.public boolean isIgnoringComments()
DOMBuilderFactory
isIgnoringComments in interface DOMBuilderFactorypublic void setIgnoringComments(boolean flag)
DOMBuilderFactory
setIgnoringComments in interface DOMBuilderFactoryflag - true to ignore comments, false otherwise.public boolean isNamespaceAware()
DOMBuilderFactory
isNamespaceAware in interface DOMBuilderFactorypublic void setNamespaceAware(boolean flag)
DOMBuilderFactory
setNamespaceAware in interface DOMBuilderFactoryflag - true to support XML namespaces, false otherwise.public boolean isValidating()
DOMBuilderFactory
isValidating in interface DOMBuilderFactorypublic void setValidating(boolean flag)
DOMBuilderFactory
setValidating in interface DOMBuilderFactoryflag - true to validate documents, false otherwise.public Object getAttribute(String name)
DOMBuilderFactory
getAttribute in interface DOMBuilderFactoryname - the name of the attribute.
public void setAttribute(String name,
Object value)
throws LogException
DOMBuilderFactory
setAttribute in interface DOMBuilderFactoryname - the name of the attribute.value - the value of the attribute.
LogException - for attribute 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 DocumentBuilderFactory getDOMFactory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||