TaxonomyElem

object TaxonomyElem
Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def build(backingElem: Elem): TaxonomyElem

Recursively builds a TaxonomyElem from the passed backing element. This is a relatively expensive method, but the resulting TaxonomyElem supports fast querying.

Recursively builds a TaxonomyElem from the passed backing element. This is a relatively expensive method, but the resulting TaxonomyElem supports fast querying.

This method is designed to successfully return a TaxonomyElem even if the content is invalid. For example, an xs:element XML element with both a name and a ref attribute is invalid, and is neither an element declaration nor an element reference, but it will be returned as an OtherElemInXsdNamespace element.

This property makes the TQA DOM type hierarchy useful in situations where TQA is used for validating (possibly invalid) taxonomies, but it does imply that OtherElemInXsdNamespace, OtherElemInLinkNamespace and OtherNonXLinkElem elements must be recognized and possibly rejected during validation. The same may be true for some NonStandardArc objects, etc.

def knownNamespaces: Set[String]

Returns the namespaces for which type-safe DOM elements have been modeled as TaxonomyElem sub-types.

Returns the namespaces for which type-safe DOM elements have been modeled as TaxonomyElem sub-types.