Package adql.query.constraint

## Class ConstraintsGroup

- java.lang.Object
- - adql.query.ADQLList<T>
  - - adql.query.ClauseADQL<ADQLConstraint>
    - - adql.query.ClauseConstraints
      - - adql.query.constraint.ConstraintsGroup

- All Implemented Interfaces:
    `ADQLObject`, `ADQLConstraint`, `java.lang.Iterable<ADQLConstraint>`

      public class ConstraintsGroup
      extends ClauseConstraints
      implements ADQLConstraint

  Represents a parenthesized list of constraints.
  Version:
    11/2010
  Author:
    Grégory Mantelet (CDS)
  See Also:
    `ClauseConstraints`

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class adql.query.ADQLList

      `ADQLList.ADQLListIterator`

  - ### Field Summary

    - ### Fields inherited from class adql.query.ClauseConstraints

      `AND, defaultSeparator, OR`

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `ConstraintsGroup()` |
    `ConstraintsGroup​(ConstraintsGroup toCopy)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `ADQLObject` | `getCopy()` | Gets a (deep) copy of this ADQL object.
    `java.lang.String` | `toADQL()` | Gets the ADQL expression of this object.

    - ### Methods inherited from class adql.query.ClauseConstraints

      `add, add, add, add, checkSeparator, clear, getDefaultSeparator, getPossibleSeparators, getSeparator, remove, set, set`

    - ### Methods inherited from class adql.query.ADQLList

      `adqlIterator, get, getName, getPosition, isEmpty, iterator, setPosition, size`

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

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

    - ### Methods inherited from interface adql.query.ADQLObject

      `adqlIterator, getName, getPosition`

    - ### Methods inherited from interface java.lang.Iterable

      `forEach, spliterator`

- - ### Constructor Detail

    - #### ConstraintsGroup

          public ConstraintsGroup()

    - #### ConstraintsGroup

          public ConstraintsGroup​(ConstraintsGroup toCopy)
                           throws java.lang.Exception

      Throws:
        `java.lang.Exception`

  - ### Method Detail

    - #### getCopy

          public ADQLObject getCopy()
                             throws java.lang.Exception

      Description copied from interface: `ADQLObject`
      Gets a (deep) copy of this ADQL object.
      Specified by:
        `getCopy` in interface `ADQLObject`
      Overrides:
        `getCopy` in class `ClauseConstraints`
      Returns:
        The copy of this ADQL object.
      Throws:
        `java.lang.Exception` - If there is any error during the copy.

    - #### toADQL

          public java.lang.String toADQL()

      Description copied from interface: `ADQLObject`
      Gets the ADQL expression of this object.
      Specified by:
        `toADQL` in interface `ADQLObject`
      Overrides:
        `toADQL` in class `ADQLList<ADQLConstraint>`
      Returns:
        The corresponding ADQL expression.