public interface

PolymorphicReferenceResolver

org.apache.commons.betwixt.registry.PolymorphicReferenceResolver
Known Indirect Subclasses

Class Overview

Resolves polymorphic references.

A polymorphic reference is an element whose name and type resolution are postponed till bind-time. When the xml is read, the type can then resolved from by calling resolveType(ElementMapping, ReadContext).

Summary

Public Methods
abstract Class resolveType(ElementMapping mapping, ReadContext context)
Resolves the bind-time type of a polymorphic element.

Public Methods

public abstract Class resolveType (ElementMapping mapping, ReadContext context)

Resolves the bind-time type of a polymorphic element.

Parameters
mapping ElementMapping describing the (polymorphic) element being mapped, not null
context ReadContext, not null
Returns
  • the Class describing the type to which this element should be bound, or null if the reference cannot be resolved