Interface Schema

  • All Superinterfaces:
    ComplexType, Serializable, Type
    All Known Implementing Classes:
    SchemaImpl

    public interface Schema
    extends ComplexType
    A marker interface for schemas.

    A schema is a complex type that can be used used to create composite types - such as document types.

    Schemas have no super types and must not be used as field types.

    • Method Detail

      • getTypes

        Type[] getTypes()
        Gets the types declared by this schema.
      • getType

        Type getType​(String typeName)
        Gets a schema local type given its name.
        Returns:
        the type or null if no such type
      • registerType

        void registerType​(Type type)
        Registers a new type in that schema context.
      • isVersionWritabe

        default boolean isVersionWritabe()
        Returns:
        true if the schema's fields are writable even for Version document.
        Since:
        8.4