xml.parser
Class SchemaMapping.IncludeMapping
java.lang.Object
xml.parser.SchemaMapping.Mapping
xml.parser.SchemaMapping.IncludeMapping
- Enclosing class:
- SchemaMapping
public static class SchemaMapping.IncludeMapping
- extends SchemaMapping.Mapping
|
Method Summary |
SchemaMapping.Mapping |
getMappingForDocument(java.lang.String publicId,
java.lang.String systemId,
java.lang.String namespace,
java.lang.String prefix,
java.lang.String localName)
iterate over the mappings and return the first hit. |
SchemaMapping.Result |
getSchemaForDocument(java.lang.String publicId,
java.lang.String systemId,
java.lang.String namespace,
java.lang.String prefix,
java.lang.String localName,
boolean followTypeId)
iterate over the mappings and return the first hit. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SchemaMapping.IncludeMapping
public SchemaMapping.IncludeMapping(java.net.URI baseURI,
java.lang.String rules,
org.xml.sax.ErrorHandler errorHandler)
throws org.xml.sax.SAXException,
java.lang.IllegalArgumentException
- Parameters:
baseURI - base URL to resolve rules (may be null if rules is absolute)rules - URL where to find the ruleserrorHandler - notified of errors resulting from loading the referenced schema mapping
- Throws:
java.lang.IllegalArgumentException - if the url is malformed
org.xml.sax.SAXException
SchemaMapping.IncludeMapping
public SchemaMapping.IncludeMapping(java.net.URI baseURI,
SchemaMapping mapping)
- Parameters:
baseURI - base URL to resolve rules (may be null if rules is absolute)mapping - mapping to link to
- Throws:
java.lang.IllegalArgumentException - if mapping is null
getSchemaForDocument
public SchemaMapping.Result getSchemaForDocument(java.lang.String publicId,
java.lang.String systemId,
java.lang.String namespace,
java.lang.String prefix,
java.lang.String localName,
boolean followTypeId)
- Description copied from class:
SchemaMapping.Mapping
- iterate over the mappings and return the first hit.
all the parameters are given the same priority : it's really the ordering
of rules which defines a priority order.
Any of the paremeters can be null.
- Specified by:
getSchemaForDocument in class SchemaMapping.Mapping
- Parameters:
publicId - public ID of the parsed documentsystemId - system ID of the parsed documentnamespace - namespace of the root element of the parsed documentprefix - prefix of the root element of the parsed documentlocalName - localName of the root element of the parsed documentfollowTypeId - if the schema referenced from a typeId must be returned
- Returns:
- schema URL for given document (and baseURI) or null if not found
getMappingForDocument
public SchemaMapping.Mapping getMappingForDocument(java.lang.String publicId,
java.lang.String systemId,
java.lang.String namespace,
java.lang.String prefix,
java.lang.String localName)
- Description copied from class:
SchemaMapping.Mapping
- iterate over the mappings and return the first hit.
all the parameters are given the same priority : it's really the ordering
of rules which defines a priority order.
Any of the paremeters can be null.
- Specified by:
getMappingForDocument in class SchemaMapping.Mapping
- Parameters:
publicId - public ID of the parsed documentsystemId - system ID of the parsed documentnamespace - namespace of the root element of the parsed documentprefix - prefix of the root element of the parsed documentlocalName - localName of the root element of the parsed document
- Returns:
- schema URL for given document (and baseURI) or null if not found
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
- Returns:
- xml serialization