Delegate DatasetGmlMatcher
Decides, from the root element of a GML-encoded dataset, whether the
document belongs to a particular product. Contributed per
ProductRegistration so a GML product is recognized
in the same place it is constructed, rather than in a central
switch inside DatasetPipelineFactory. The factory reads
the document's root once (see GmlRootInfo) and returns the spec
of the first registered product whose matcher claims it. Returns
true when the document belongs to the registering product.
Matchers must be mutually exclusive: each recognizes only its own
product's namespace / local name / productIdentifier, so at most one
matcher claims any valid single-product dataset. Because of this the result
does not depend on the order registrations are enumerated (the registry is
unordered). Behavior on a malformed document that declares more than one
product's namespace is unspecified.
public delegate bool DatasetGmlMatcher(GmlRootInfo root)
Parameters
rootGmlRootInfoA cheap, parsed view of the document's root element.
Returns
- bool
- Decides, from the root element of a GML-encoded dataset, whether the document belongs to a particular product. Contributed per so a GML product is recognized in the same place it is constructed, rather than in a central switch inside . The factory reads the document's root once (see ) and returns the spec of the first registered product whose matcher claims it. Returns true when the document belongs to the registering product. Matchers must be mutually exclusive: each recognizes only its own product's namespace / local name / productIdentifier, so at most one matcher claims any valid single-product dataset. Because of this the result does not depend on the order registrations are enumerated (the registry is unordered). Behavior on a malformed document that declares more than one product's namespace is unspecified.