XML element inside a taxonomy package XML tree. This API is immutable, provided the backing element is immutable.
XML element inside a taxonomy package XML tree. This API is immutable, provided the backing element is immutable.
The yaidom SubtypeAwareElemApi
and ScopedElemApi
query API is offered.
Note that the package-private constructor contains redundant data, in order to speed up (yaidom-based) querying.
It is not required that the taxonomy package elements are schema-valid. Construction of a taxonomy package element is indeed quite lenient.
Note that the backing element implementation can be any implementation of yaidom query API trait BackingNodes.Elem
.
This class hierarchy depends on Java 8 or later, due to the use of Java 8 time API.
Creation of TaxonomyPackageElem
objects is designed not to fail, even if the XML element is not taxonomy package element content.
Of course, after creation many query methods may fail in such cases. It is also possible to use these data classes for
taxonomy package elements embedded in other XML elements, or only for parts of taxonomy package elements.
- Authors
Chris de Vreeze
- Companion
- object
Type members
Value members
Concrete methods
Very fast implementation of findAllChildElems, for fast querying
Very fast implementation of findAllChildElems, for fast querying
Returns the optional relative path to the (optional) taxonomy package root element path.
Returns the optional relative path to the (optional) taxonomy package root element path.
Inherited methods
Shorthand for attributeOption(expandedName)
.
Shorthand for attributeOption(expandedName)
.
- Inherited from
- ClarkElemLike
Returns the value of the attribute with the given expanded name, and throws an exception otherwise.
Returns the value of the attribute with the given expanded name, and throws an exception otherwise.
- Inherited from
- ClarkElemLike
Returns the value of the attribute with the given expanded name, if any, wrapped in an Option
.
Returns the value of the attribute with the given expanded name, if any, wrapped in an Option
.
Note that this method can be far more expensive than a custom implementation for a specific element implementation. Therefore this method is non-final and can be overridden.
- Inherited from
- ClarkElemLike
Returns all child elements paired with their path entries.
Returns all child elements paired with their path entries.
This method is final, so more efficient implementations for sub-types are not supported. This implementation is only efficient if finding all child elements as well as computing their resolved names is efficient. That is not the case for DOM wrappers or Scala XML Elem wrappers (due to their expensive Scope computations). On the other hand, those wrapper element implementations are convenient, but not intended for heavy use in production. Hence, this method should typically be fast enough.
- Definition Classes
- ClarkElemLike -> IsNavigable -> IsNavigableApi
- Inherited from
- ClarkElemLike
Returns the first found attribute value of an attribute with the given local name, if any, wrapped in an Option
.
Because of differing namespaces, it is possible that more than one such attribute exists, although this is not often the case.
Returns the first found attribute value of an attribute with the given local name, if any, wrapped in an Option
.
Because of differing namespaces, it is possible that more than one such attribute exists, although this is not often the case.
Note that this method can be far more expensive than a custom implementation for a specific element implementation. Therefore this method is non-final and can be overridden.
- Inherited from
- ClarkElemLike
Finds the child element with the given Path.Entry
(where this element is the root), if any, wrapped in an Option
.
Finds the child element with the given Path.Entry
(where this element is the root), if any, wrapped in an Option
.
This method is final, so more efficient implementations for sub-types are not supported. This implementation is only efficient if finding all child elements as well as computing their resolved names is efficient. That is not the case for DOM wrappers or Scala XML Elem wrappers (due to their expensive Scope computations). On the other hand, those wrapper element implementations are convenient, but not intended for heavy use in production. Hence, this method should typically be fast enough.
- Definition Classes
- ClarkElemLike -> IsNavigable -> IsNavigableApi
- Inherited from
- ClarkElemLike
- Inherited from
- SubtypeAwareElemLike
The local name, that is, the local part of the EName
The local name, that is, the local part of the EName
- Inherited from
- ClarkElemLike