org.modeshape.jcr.query.validate

## Class ImmutableSchemata

- java.lang.Object
- - org.modeshape.jcr.query.validate.ImmutableSchemata

- All Implemented Interfaces:
    Schemata

      @Immutable
      public class ImmutableSchemata
      extends Object
      implements Schemata

  An immutable `Schemata` implementation.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `ImmutableSchemata.Builder` A builder of immutable `Schemata` objects.
    `protected static class` | `ImmutableSchemata.MutableTable`

    - ### Nested classes/interfaces inherited from interface org.modeshape.jcr.query.validate.Schemata

      `Schemata.Column, Schemata.Key, Schemata.Table, Schemata.View`

  - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `ImmutableSchemata(Map<SelectorName,Schemata.Table> tables)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static ImmutableSchemata.Builder` | `createBuilder(ExecutionContext context)` Obtain a new instance for building Schemata objects.
    `Schemata.Table` | `getTable(SelectorName name)` Get the information for the table or view with the supplied name within this schema.
    `String` | `toString()`
    `ImmutableSchemata` | `with(Schemata.Table table)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### ImmutableSchemata

          protected ImmutableSchemata(Map<SelectorName,Schemata.Table> tables)

  - ### Method Detail

    - #### createBuilder

          public static ImmutableSchemata.Builder createBuilder(ExecutionContext context)

      Obtain a new instance for building Schemata objects.
      Parameters:
        `context` - the execution context that this schemata should use
      Returns:
        the new builder; never null
      Throws:
        `IllegalArgumentException` - if the context is null

    - #### getTable

          public Schemata.Table getTable(SelectorName name)

      Description copied from interface: `Schemata`
      Get the information for the table or view with the supplied name within this schema.

      The resulting definition is immutable.

      Specified by:
        `getTable` in interface `Schemata`
      Parameters:
        `name` - the table or view name; may not be null
      Returns:
        the table or view information, or null if there is no such table

    - #### with

          public ImmutableSchemata with(Schemata.Table table)

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.