public class EventTypeResolutionContext extends java.lang.Object implements org.exolab.castor.net.URIResolver, EventTypeLookupPath
Constructor and Description |
---|
EventTypeResolutionContext(java.io.File... eventTypesFolders) |
EventTypeResolutionContext(java.lang.String... eventTypesFolders) |
Modifier and Type | Method and Description |
---|---|
static org.exolab.castor.net.URILocation |
checkForEnvelopeSchemaLocation(java.lang.String href) |
static org.exolab.castor.net.URILocation |
checkForEnvelopeTargetNamespace(java.lang.String urn) |
java.io.File |
getComponentFile(java.io.File file) |
static java.lang.String |
getComponentPath_(java.lang.String parentSchemaLocation,
java.lang.String schemaLocation) |
java.lang.String |
getComponentPath(java.io.File file) |
java.lang.String |
getComponentPath(java.lang.String schemaURL) |
java.util.List<java.io.File> |
getEventTypeFolders() |
java.net.URL |
getLocation(java.lang.String componentPath) |
java.util.Set<java.lang.String> |
getReferencedComponentPaths(java.lang.String componentPath,
boolean recursive) |
static java.lang.String |
getRelativeComponentPath(java.lang.String componentPath,
java.lang.String parentPath) |
com.softwareag.ext.castor.xml.schema.Schema |
getSchema(java.io.File schemaFile) |
com.softwareag.ext.castor.xml.schema.Schema |
getSchema(java.lang.String componentPath) |
com.softwareag.ext.castor.xml.schema.Schema |
getSchema(java.lang.String componentPath,
boolean allowUnresolved) |
java.io.File |
getSchemaFile(java.lang.String componentPath) |
EventType |
lookup(java.lang.String componentPath) |
void |
refresh() |
org.exolab.castor.net.URILocation |
resolve(java.lang.String href,
java.lang.String documentBase) |
org.exolab.castor.net.URILocation |
resolveURN(java.lang.String urn) |
public EventTypeResolutionContext(java.lang.String... eventTypesFolders) throws java.io.IOException
java.io.IOException
public EventTypeResolutionContext(java.io.File... eventTypesFolders)
eventTypesFolders
- list of folders used to to locate event type
and component schemas andpublic java.util.List<java.io.File> getEventTypeFolders()
public EventType lookup(java.lang.String componentPath) throws ReferenceNotResolvableException, NoEventTypeException, java.io.IOException
lookup
in interface EventTypeLookupPath
ReferenceNotResolvableException
NoEventTypeException
java.io.IOException
public void refresh()
refresh
in interface EventTypeLookupPath
public com.softwareag.ext.castor.xml.schema.Schema getSchema(java.io.File schemaFile) throws java.io.IOException
java.io.IOException
public com.softwareag.ext.castor.xml.schema.Schema getSchema(java.lang.String componentPath) throws java.io.IOException
java.io.IOException
public com.softwareag.ext.castor.xml.schema.Schema getSchema(java.lang.String componentPath, boolean allowUnresolved) throws java.io.IOException
java.io.IOException
public static java.lang.String getRelativeComponentPath(java.lang.String componentPath, java.lang.String parentPath)
public static java.lang.String getComponentPath_(java.lang.String parentSchemaLocation, java.lang.String schemaLocation)
public java.io.File getSchemaFile(java.lang.String componentPath)
public java.net.URL getLocation(java.lang.String componentPath)
public org.exolab.castor.net.URILocation resolveURN(java.lang.String urn) throws org.exolab.castor.net.URIException
resolveURN
in interface org.exolab.castor.net.URIResolver
org.exolab.castor.net.URIException
public org.exolab.castor.net.URILocation resolve(java.lang.String href, java.lang.String documentBase) throws org.exolab.castor.net.URIException
resolve
in interface org.exolab.castor.net.URIResolver
org.exolab.castor.net.URIException
public static org.exolab.castor.net.URILocation checkForEnvelopeTargetNamespace(java.lang.String urn)
public static org.exolab.castor.net.URILocation checkForEnvelopeSchemaLocation(java.lang.String href)
public java.io.File getComponentFile(java.io.File file) throws java.io.IOException
java.io.IOException
public java.lang.String getComponentPath(java.io.File file) throws java.io.IOException
java.io.IOException
public java.lang.String getComponentPath(java.lang.String schemaURL) throws java.io.IOException
java.io.IOException
public java.util.Set<java.lang.String> getReferencedComponentPaths(java.lang.String componentPath, boolean recursive) throws java.io.IOException
java.io.IOException