public static class SchemaMapping.TransformURI extends SchemaMapping.Mapping
base, baseURI, parent
Constructor and Description |
---|
TransformURI(java.net.URI baseURI,
java.lang.String fromPattern,
java.lang.String toPattern) |
Modifier and Type | Method and Description |
---|---|
SchemaMapping.Mapping |
getMappingForDocument(java.lang.String ignoredPublicId,
java.lang.String url,
java.lang.String ignoredNamespace,
java.lang.String ignoredPrefix,
java.lang.String ignoredLocalName)
iterate over the mappings and return the first hit.
|
SchemaMapping.Result |
getSchemaForDocument(java.lang.String ignoredPublicId,
java.lang.String url,
java.lang.String ignoredNamespace,
java.lang.String ignoredPrefix,
java.lang.String ignoredLocalName,
boolean ignored)
TODO: what if pattern is absolute and url is relative ?
TODO: patterns with ..
|
java.lang.String |
toString() |
getBaseURI, getParent
public TransformURI(java.net.URI baseURI, java.lang.String fromPattern, java.lang.String toPattern)
baseURI
- baseURI to use if resource is relativefromPattern
- matched patterntoPattern
- result patternjava.lang.IllegalArgumentException
- if pattern is nullpublic SchemaMapping.Result getSchemaForDocument(java.lang.String ignoredPublicId, java.lang.String url, java.lang.String ignoredNamespace, java.lang.String ignoredPrefix, java.lang.String ignoredLocalName, boolean ignored)
getSchemaForDocument
in class SchemaMapping.Mapping
ignoredPublicId
- public ID of the parsed documenturl
- system ID of the parsed documentignoredNamespace
- namespace of the root element of the parsed documentignoredPrefix
- prefix of the root element of the parsed documentignoredLocalName
- localName of the root element of the parsed documentignored
- if the schema referenced from a typeId must be returnedpublic SchemaMapping.Mapping getMappingForDocument(java.lang.String ignoredPublicId, java.lang.String url, java.lang.String ignoredNamespace, java.lang.String ignoredPrefix, java.lang.String ignoredLocalName)
SchemaMapping.Mapping
getMappingForDocument
in class SchemaMapping.Mapping
ignoredPublicId
- public ID of the parsed documenturl
- system ID of the parsed documentignoredNamespace
- namespace of the root element of the parsed documentignoredPrefix
- prefix of the root element of the parsed documentignoredLocalName
- localName of the root element of the parsed documentpublic java.lang.String toString()
toString
in class java.lang.Object