|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectxml.parser.SchemaMapping.Mapping
xml.parser.SchemaMapping.URIResourceRule
public static class SchemaMapping.URIResourceRule
URI -> typeId or URL. This form is useful to map one schema to one particular file. e.g. : file:///tmp/myfile.xml -> mycustomschema.xsd
| Field Summary | |
|---|---|
protected java.lang.String |
target
typeId or URL of the schema to use if this rule matches |
protected boolean |
targetIsTypeId
for serialisation : output typeId="..." or url="..." |
| Fields inherited from class xml.parser.SchemaMapping.Mapping |
|---|
base, baseURI, parent |
| Constructor Summary | |
|---|---|
SchemaMapping.URIResourceRule(java.net.URI base,
java.lang.String resource,
java.lang.String target,
boolean targetIsTypeId)
|
|
| 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()
xml serialization |
| Methods inherited from class xml.parser.SchemaMapping.Mapping |
|---|
getBaseURI, getParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final java.lang.String target
protected final boolean targetIsTypeId
| Constructor Detail |
|---|
public SchemaMapping.URIResourceRule(java.net.URI base,
java.lang.String resource,
java.lang.String target,
boolean targetIsTypeId)
base - baseURI to use if resource is relativeresource - matched resourcetarget - typeID or URLtargetIsTypeId - typeID / URL ?
java.lang.IllegalArgumentException - if resource is null| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Object
public final 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)
SchemaMapping.Mapping
getSchemaForDocument in class SchemaMapping.MappingpublicId - 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
public final SchemaMapping.Mapping getMappingForDocument(java.lang.String publicId,
java.lang.String systemId,
java.lang.String namespace,
java.lang.String prefix,
java.lang.String localName)
SchemaMapping.Mapping
getMappingForDocument in class SchemaMapping.MappingpublicId - 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||