public class XmlReader extends Object implements ErrorHandler, EntityResolver
| Constructor and Description |
|---|
XmlReader()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
error(SAXParseException aSaxException)
This is a callback from the XML parser used to handle errors.
|
void |
fatalError(SAXParseException aSaxException)
This is a callback from the XML parser used to handle errors.
|
String |
getBootstrapClassName()
Function to return the last bootstrap class parsed.
|
Vector |
getBootstrapClassPath()
Function to return the last bootstrap classpath parsed.
|
DocumentFragment |
getComponentDocumentFragment()
Return the XML Document Fragment from the component section.
|
String |
getDescription()
Function to return the last description parsed.
|
String |
getId()
Function to return the last component ID parsed.
|
DocumentFragment |
getIdentificationDocumentFragment()
Return the XML Document Fragment from the identification section.
|
ComponentInstallationContext |
getInstallationContext()
Function to return the installation context for the component.
|
Vector |
getLifecycleClassNames()
Function to return the last lifecycle classes parsed.
|
Vector |
getLifecycleClassPath()
Function to return the last lifecycle classpath parsed.
|
Vector |
getSharedLibraryIds()
Function to return the last list of shared library ids parsed.
|
Document |
getXmlDocument()
Return the XML Document.
|
boolean |
isAlternateBootstrapClassLoaderDelegation()
Function to specify if the parsed component had an alternate bootstrap
class loader delegation.
|
boolean |
isAlternateComponentClassLoaderDelegation()
Function to specify if the parsed component had an alternate component
class loader delegation.
|
boolean |
isAlternateSharedLibraryClassLoaderDelegation()
Function to specify if the parsed shared library had an alternate
class loader delegation.
|
boolean |
isBinding()
Function to specify if the parsed component was a binding.
|
boolean |
isDeployment()
Function to specify if the parsed component was a deployment.
|
boolean |
isEngine()
Function to specify if the parsed component was an engine.
|
boolean |
isSharedLibrary()
Function to specify if the parsed component was a shared library.
|
String |
loadAndParse(String aFileName,
boolean isOnlyIdNeeded)
Extract all information from the jbi.xml file.
|
InputSource |
resolveEntity(String publicId,
String systemId)
The resolveEntity method resolves schema references only, a reference
to the XML definition of the XML configuration file is resolved to return
an InputSource created for the local schema definition file.
|
void |
setEnvironmentContext(EnvironmentContext aContext)
Specify the global environment context.
|
boolean |
validate(InputStream istr)
Validate the jbi.xml file.
|
boolean |
validate(String aFileName)
Validate the jbi.xml file.
|
boolean |
validateManagementMessage(String aMMsgStr)
Validate management message.
|
void |
warning(SAXParseException aSaxException)
This is a callback from the XML parser used to handle warnings.
|
public String loadAndParse(String aFileName, boolean isOnlyIdNeeded) throws Exception
aFileName - the specified "jbi.xml" fileisOnlyIdNeeded - true if we want to return Id (only)Exception - when unable to process a valid
configuration file.public boolean validate(InputStream istr) throws Exception
istr - is the InputStream to the "jbi.xml" fileException - when unable to process a valid
configuration file.public boolean validate(String aFileName) throws Exception
aFileName - the specified "jbi.xml" fileException - when unable to process a valid
configuration file.public boolean validateManagementMessage(String aMMsgStr) throws Exception
aMMsgStr - management message stringException - when unable to process a valid
configuration file.public void error(SAXParseException aSaxException) throws SAXException
error in interface ErrorHandleraSaxException - SAXParseException is the error.SAXException - when finished logging.public void fatalError(SAXParseException aSaxException) throws SAXException
fatalError in interface ErrorHandleraSaxException - SAXParseException is the error.SAXException - when finished logging.public InputSource resolveEntity(String publicId, String systemId)
resolveEntity in interface EntityResolverpublicId - - The public identifier of the external entity being referenced,
or null if none was supplied.systemId - - The schemaorg_apache_xmlbeans.system identifier of the external entity being referenced.EntityResolverpublic void warning(SAXParseException aSaxException) throws SAXException
warning in interface ErrorHandleraSaxException - SAXParseException is the warning.SAXException - when finished logging.public boolean isBinding()
public boolean isEngine()
public boolean isDeployment()
public boolean isSharedLibrary()
public String getDescription()
public String getId()
public String getBootstrapClassName()
public Vector getBootstrapClassPath()
public Vector getLifecycleClassNames()
public Vector getLifecycleClassPath()
public Vector getSharedLibraryIds()
public ComponentInstallationContext getInstallationContext()
public boolean isAlternateBootstrapClassLoaderDelegation()
public boolean isAlternateComponentClassLoaderDelegation()
public boolean isAlternateSharedLibraryClassLoaderDelegation()
public void setEnvironmentContext(EnvironmentContext aContext)
aContext - the global environment contextpublic Document getXmlDocument()
public DocumentFragment getComponentDocumentFragment()
public DocumentFragment getIdentificationDocumentFragment()
Copyright © 2011-2016 OpenESB Community. All Rights Reserved.