Interface ContainingType

All Superinterfaces:
Type
All Known Implementing Classes:
CoverageType, EmptyList, MultiGeom, Nullable, RelationType, RSList

public interface ContainingType extends Type

An interface for Types that are containers for other types, e.g. a List type. While these can't necessarily be operated on generically, they can be displayed and inspected generically.

  • Method Details

    • getContainedType

      Type getContainedType()
      Returns:
      The type that this ContainingType contains.
    • visit

      default <T, U> U visit(TypeVisitor<T,U> tv, T data)
      Description copied from interface: Type

      Type specific visiting logic. Types must decide whether they are atomic or compound and call the relevant method on TypeVisitor. It's up to each compound type to decide how they want to structure their children, e.g. order, metadata, and what's considered a child or not.

      Specified by:
      visit in interface Type