org.milyn.edi.utils
Class EDISchemaEntityManager

java.lang.Object
  extended by org.apache.xerces.impl.XMLEntityManager
      extended by org.milyn.edi.utils.EDISchemaEntityManager
All Implemented Interfaces:
org.apache.xerces.xni.parser.XMLComponent, org.apache.xerces.xni.parser.XMLEntityResolver

public class EDISchemaEntityManager
extends org.apache.xerces.impl.XMLEntityManager

Extension of Xerces XMLEntityManager that implements XMLEntityResolver which additinally able to resolve Smooks XML Schemas

Author:
zubairov

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.xerces.impl.XMLEntityManager
org.apache.xerces.impl.XMLEntityManager.Entity, org.apache.xerces.impl.XMLEntityManager.ExternalEntity, org.apache.xerces.impl.XMLEntityManager.InternalEntity, org.apache.xerces.impl.XMLEntityManager.RewindableInputStream, org.apache.xerces.impl.XMLEntityManager.ScannedEntity
 
Field Summary
 
Fields inherited from class org.apache.xerces.impl.XMLEntityManager
ALLOW_JAVA_ENCODINGS, BUFFER_SIZE, DEFAULT_BUFFER_SIZE, DEFAULT_INTERNAL_BUFFER_SIZE, DEFAULT_XMLDECL_BUFFER_SIZE, ENTITY_RESOLVER, ERROR_REPORTER, EXTERNAL_GENERAL_ENTITIES, EXTERNAL_PARAMETER_ENTITIES, fAllowJavaEncodings, fBufferSize, fCurrentEntity, fDeclaredEntities, fEntities, fEntityExpansionCount, fEntityExpansionLimit, fEntityHandler, fEntityResolver, fEntityScanner, fEntityStack, fErrorReporter, fExternalGeneralEntities, fExternalParameterEntities, fHasPEReferences, fInExternalSubset, fReaderStack, fSecurityManager, fStandalone, fStrictURI, fSymbolTable, fValidation, fValidationManager, fWarnDuplicateEntityDef, fXML10EntityScanner, fXML11EntityScanner, PARSER_SETTINGS, SECURITY_MANAGER, STANDARD_URI_CONFORMANT, SYMBOL_TABLE, VALIDATION, VALIDATION_MANAGER, WARN_ON_DUPLICATE_ENTITYDEF
 
Constructor Summary
protected EDISchemaEntityManager(Map<String,String> catalog)
          Constructor called from createInstance() with Map NamespaceURI --> ResourceLocation
 
Method Summary
static EDISchemaEntityManager createInstance()
          Factory method to create a new instance
 org.apache.xerces.xni.parser.XMLInputSource resolveEntity(org.apache.xerces.xni.XMLResourceIdentifier resourceIdentifier)
           
 
Methods inherited from class org.apache.xerces.impl.XMLEntityManager
absolutizeAgainstUserDir, addExternalEntity, addInternalEntity, addUnparsedEntity, closeReaders, createOutputStream, createReader, endExternalSubset, expandSystemId, fixURI, getCurrentEntity, getCurrentResourceIdentifier, getEncodingName, getEntityScanner, getFeatureDefault, getPropertyDefault, getRecognizedFeatures, getRecognizedProperties, isDeclaredEntity, isEntityDeclInExternalSubset, isExternalEntity, isStandalone, isUnparsedEntity, reset, reset, setEntityHandler, setFeature, setInstanceFollowRedirects, setProperty, setScannerVersion, setStandalone, setupCurrentEntity, startDocumentEntity, startDTDEntity, startEntity, startEntity, startExternalSubset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EDISchemaEntityManager

protected EDISchemaEntityManager(Map<String,String> catalog)
Constructor called from createInstance() with Map NamespaceURI --> ResourceLocation

Parameters:
catalog -
Method Detail

createInstance

public static EDISchemaEntityManager createInstance()
                                             throws IOException
Factory method to create a new instance

Returns:
Throws:
IOException

resolveEntity

public org.apache.xerces.xni.parser.XMLInputSource resolveEntity(org.apache.xerces.xni.XMLResourceIdentifier resourceIdentifier)
                                                          throws IOException,
                                                                 org.apache.xerces.xni.XNIException
Specified by:
resolveEntity in interface org.apache.xerces.xni.parser.XMLEntityResolver
Overrides:
resolveEntity in class org.apache.xerces.impl.XMLEntityManager
Throws:
IOException
org.apache.xerces.xni.XNIException


Copyright © 2018. All rights reserved.