Interface UnionClass

All Superinterfaces:
DataClass, PropertyHandler
All Known Implementing Classes:
UnionClassImpl

public interface UnionClass extends DataClass
Union Class is a special class, used to improve and simplify the design of the data model. Its goal is not the instantiation of corresponding data objects, but the usage of several data objects with different data classes as possible attribute values. Such a union can be used in one attribute or as base class in collections. For example, a SetClass that should contain elements of AggregateObjects as well as IntegerObjects. The base class that has to be specified in the set would be the common parent class of both namely DataClass. But if this class would be used, also any data object of any data class could be an element of the collection. This problem is solved with a Union Class that combines the Aggregate Class and the Integer Class into a new class that can be used as base class.

It is not possible to instantiate this class.

Author:
Rainer Maximini