Interface DependenciesDefinitionContext

    • Method Detail

      • addDependencyToModify

        void addDependencyToModify​(SchemaNode aLocalSource)
        Specifies that the validation result of the current constraint depends on the value of the specified source node in the same record.

        In the scope of incremental validation, this implies that any modification to the source node's value will trigger a revalidation of this constraint within the context of the altered record.

        Attention:

        • A call to this method implies that all dependencies are explicitly declared (explicit dependencies mode). For more information, see Dependencies and validation above.
        • If the source or current node are computed by a computed value in unknown dependencies mode mode or are an inherited field (defines the property osd:inheritance), then this constraint will be considered to be in unknown dependencies mode.
        Throws:
        IllegalStateException - if a local dependency has been set to this constraint.
        IllegalStateException - if this constraint is set to Unknown dependencies mode.
        IllegalStateException - if this method is called in a ConstraintContextOnTable.
        IllegalArgumentException - if the specified source node does not have a local value; that is:
      • addDependencyToModify

        void addDependencyToModify​(Path aPathToLocalSource)
        Specifies that the validation result of the current constraint depends on the value of the source node with the specified path in the same record.

        In the scope of incremental validation, this implies that any modification to the source node's value will trigger a revalidation of this constraint within the context of the altered record.

        Attention:

        • A call to this method implies that all dependencies are explicitly declared (explicit dependencies mode). For more information, see Dependencies and validation above.
        • If the source or current node are computed by a computed value in unknown dependencies mode mode or are an inherited field (defines the property osd:inheritance), then this constraint will be considered to be in unknown dependencies mode.
        Throws:
        IllegalStateException - if a local dependency has been set to this constraint.
        IllegalStateException - if this constraint is set to Unknown dependencies mode.
        IllegalStateException - if this method is called in a ConstraintContextOnTable.
        IllegalArgumentException - if no node is found at the specified path. if the source targeted by the specified path does not have a local value; that is:
        Since:
        6.1.1
      • addDependencyToInsertAndDelete

        void addDependencyToInsertAndDelete​(SchemaNode aTableSourceNode)
        Specifies that the validation result of the current constraint depends on the insertions and deletions of the specified table node.

        In the scope of incremental validation, this implies that the current constraint is revalidated for all of the table's records if any of the following events occur:

        • An insertion in the specified source table.
        • A deletion in the specified source table.
        Attention: A call to this method implies that all dependencies are explicitly declared (explicit dependencies mode). For more information, see Dependencies and validation above.

        Throws:
        IllegalStateException - if a local dependency has been set for this constraint.
        IllegalStateException - if this constraint is set in Unknown dependencies mode.
        IllegalArgumentException - if specified source is not a table node.
      • addDependencyToInsertAndDelete

        void addDependencyToInsertAndDelete​(Path aPathToATableSourceNode)
        Specifies that the validation result of the current constraint depends on the insertions and deletions of the table node with the specified path.

        In the scope of incremental validation, this implies that the current constraint is revalidated for all of the table's records if any of the following events occur:

        • An insertion in the source table with the specified path.
        • A deletion in the source table with the specified path.
        Attention: A call to this method implies that all dependencies are explicitly declared (explicit dependencies mode). For more information, see Dependencies and validation above.

        Throws:
        IllegalStateException - if a local dependency has been set for this constraint.
        IllegalStateException - if this constraint is set in Unknown dependencies mode.
        IllegalArgumentException - if no table node is found at the specified path.
        Since:
        6.1.1
      • addDependencyToInsertAndDeleteInOtherInstance

        void addDependencyToInsertAndDeleteInOtherInstance​(Path tablePathInContainer,
                                                           AdaptationReference containerReference,
                                                           HomeKey homeReference)
        Specifies that the validation result of the current constraint depends on the insertions and deletions of the specified table node of a given dataset in a specific dataspace.

        In the scope of incremental validation, this implies that the current constraint is revalidated for all of the table's records if any of the following events occur:

        • An insertion in the specified source table.
        • A deletion in the specified source table.

        Attention: A call to this method implies that all dependencies are explicitly declared (explicit dependencies mode). For more information, see Dependencies and validation above.

        Throws:
        IllegalStateException - if a local dependency has been set for this constraint.
        IllegalArgumentException - if specified source is not a table node. if specified containerReference is null. if specified homeReference is null.
        See Also:
        addDependencyToInsertAndDeleteInOtherInstance(Path, AdaptationReference)
      • addDependencyToInsertAndDeleteInOtherInstance

        void addDependencyToInsertAndDeleteInOtherInstance​(Path tablePathInContainer,
                                                           AdaptationReference containerReference)
        Specifies that the validation result of the current constraint depends on the insertions and deletions of the specified table node of a given instance.

        In the scope of incremental validation, this implies that the current constraint is revalidated for all of the table's records if any of the following events occur:

        • An insertion in the specified source table.
        • A deletion in the specified source table.

        Attention: A call to this method implies that all dependencies are explicitly declared (explicit dependencies mode). For more information, see Dependencies and validation above.

        Throws:
        IllegalStateException - if a local dependency has been set for this constraint.
        IllegalArgumentException - if specified source is not a table node. if specified containerReference is null.
        See Also:
        addDependencyToInsertAndDeleteInOtherInstance(Path, AdaptationReference, HomeKey)
      • addDependencyToInsertDeleteAndModify

        void addDependencyToInsertDeleteAndModify​(SchemaNode aSourceNode)
        Specifies that the validation result of the current constraint depends on insertions, modifications and deletions on the specified node.

        In the scope of incremental validation, this implies that the current constraint is revalidated for all of the table's records if any of the following events occur:

        • An insertion in the source table.
        • A deletion in the source table.
        • A modification of any node in any of the records in the source table if the source node is a table node.
        • A modification of the source node in any of the records in the source table if the source node is a table record node.

        Attention:

        • A call to this method implies that all dependencies are explicitly declared (explicit dependencies mode). For more information, see Dependencies and validation above.
        • If the source node is a table record node and if it, or the current node are computed by a computed value, or are an inherited field (defines the property osd:inheritance), then this constraint will be considered to be in unknown dependencies mode.
        Parameters:
        aSourceNode - specifies the source node and table on which this constraint depends; if the source is a table node, any insertion, modification and deletion in the table will result in the revalidation of the current constraint for all records of the table; if the source is a table record node, the revalidation is more restrictive since only modification of the specified node and any insertions or deletions will result in revalidation.
        Throws:
        IllegalStateException - if a local dependency has been set for this constraint.
        IllegalStateException - if this constraint is set in Unknown dependencies mode.
        IllegalArgumentException - if the specified source node is not a table node or table record node.
    • addDependencyToInsertDeleteAndModify

      void addDependencyToInsertDeleteAndModify​(Path aPathToSourceNode)
      Specifies that the validation result of the current constraint depends on insertions, modifications and deletions on the node targeted by the specified path.

      In the scope of incremental validation, this implies that the current constraint is revalidated for all of the table's records if any of the following events occur:

      • An insertion in the source table.
      • A deletion in the source table.
      • A modification of any node in any of the records in the source table if the source node targeted by the specified path is a table node.
      • A modification of the source node in any of the records in the source table if the source node targeted by the specified path is a table record node.

      Attention:

      • A call to this method implies that all dependencies are explicitly declared (explicit dependencies mode). For more information, see Dependencies and validation above.
      • If the source node is a table record node and if it or the current node are computed by a computed value or are an inherited field (defines the property osd:inheritance), then this constraint will be considered to be in unknown dependencies mode.
      Parameters:
      aPathToSourceNode - specifies the path to the source node and table on which this constraint depends; if the source is a table node, any insertion, modification and deletion in the table will result in the revalidation of the current constraint for all records of the table; if the source is a table record node, the revalidation is more restrictive since only modification of the specified node and any insertions or deletions will result in revalidation.
      Throws:
      IllegalStateException - if a local dependency has been set for this constraint.
      IllegalStateException - if this constraint is set in Unknown dependencies mode.
      IllegalArgumentException - if no node is found at the specified path. if the found node is not a table node or table record node.
    Since:
    6.1.1
  • addDependencyToInsertDeleteAndModifyInOtherInstance

    void addDependencyToInsertDeleteAndModifyInOtherInstance​(SchemaNode sourceNode,
                                                             AdaptationReference containerDataSetReference,
                                                             HomeKey dataSpaceReference)
    Specifies that the validation result of the current constraint depends on the insertions, modifications and deletions on the specified node in a given dataset in a specific dataspace.

    In the scope of incremental validation, this implies that the current constraint is revalidated for all of the table's records if any of the following events occur:

    • An insertion in the source table.
    • A deletion in the source table.
    • A modification of any node in any of the records in the source table, if the source node is a table node.
    • A modification of the source node in any of the records in the source table, if the source node is a table record node.

    Attention:

    • A call to this method implies that all dependencies are explicitly declared (explicit dependencies mode). For more information, see Dependencies and validation above.
    • If the source node is a table record node and if it or the current node are computed by a value function in unknown dependencies mode mode or are an inherited field (define the property osd:inheritance), then this constraint will be considered to be in unknown dependencies mode.
    Parameters:
    sourceNode - specifies the source node and table on which this constraint depends; if the source is a table node, any insertion, modification and deletion in the table will result in the revalidation of the current constraint for all the records of the table; if the source is a table record node, the revalidation is more restrictive since only the modification of the specified node or any insertion or deletion will result in revalidation.
    Throws:
    IllegalStateException - if a local dependency has been set for this constraint.
    IllegalStateException - if this constraint is set in Unknown dependencies mode.
    IllegalArgumentException - if the specified source node is not a table node or a table record node. if specified containerReference is null. if specified homeReference is null.
  • addDependencyToInsertDeleteAndModifyInOtherInstance

    void addDependencyToInsertDeleteAndModifyInOtherInstance​(SchemaNode sourceNode,
                                                             AdaptationReference containerReference)
    Specifies that the validation result of the current constraint depends on the insertions, modifications and deletions on the specified node in a given dataset.

    In the scope of incremental validation, this implies that the current constraint is revalidated for all of the table's records if any of the following events occur:

    • An insertion in the source table.
    • A deletion in the source table.
    • A modification of any node is done in any of the records in the source table, if the source node is a table node.
    • A modification of the source node in any of the records in the source table, if the source node is a table record node..s

    Attention:

    • A call to this method implies that all dependencies are explicitly declared (explicit dependencies mode). For more information, see Dependencies and validation above.
    • If the source node is a table record node and if it or the current node are computed by a value function in unknown dependencies mode mode or are an inherited field (define the property osd:inheritance), then this constraint will be considered to be in unknown dependencies mode.
    Parameters:
    sourceNode - specifies the source node and table on which this constraint depends; if the source is a table node, any insertion, modification and deletion in the table will result in the revalidation of the current constraint for all the records of the table; if the source is a table record node, the revalidation is more restrictive since only the modification of the specified node or any insertion or deletion will result in revalidation.
    Throws:
    IllegalStateException - if a local dependency has been set for this constraint.
    IllegalStateException - if this constraint is set in Unknown dependencies mode.
    IllegalArgumentException - if the specified source node is not a table node or a table record node. if specified containerReference is null.
  • addDependencyToInsertDeleteAndModifyInOtherInstance

    void addDependencyToInsertDeleteAndModifyInOtherInstance​(Path nodePath,
                                                             AdaptationReference containerReference)
    Specifies that the validation result of the current constraint depends on the insertions, modifications and deletions on the specified node in a given dataset.

    In the scope of incremental validation, this implies that the current constraint is revalidated for all of the table's records if any of the following events occur:

    • An insertion in the source table.
    • A deletion in the source table.
    • A modification of any node is done in any of the records in the source table, if the source node is a table node;
    • A modification of the source node in any of the records in the source table, if the source node is a table record node.

    Attention:

    • A call to this method implies that all dependencies are explicitly declared (explicit dependencies mode). For more information, see Dependencies and validation above.
    • If the source node is a table record node and if it or the current node are computed by a value function in unknown dependencies mode mode or are an inherited field (define the property osd:inheritance), then this constraint will be considered to be in unknown dependencies mode.
    Parameters:
    nodePath - specifies the source node and table on which this constraint depends; if the source is a table node, any insertion, modification and deletion in the table will result in the revalidation of the current constraint for all the records of the table; if the source is a table record node, the revalidation is more restrictive since only the modification of the specified node or any insertion or deletion will result in revalidation.
    Throws:
    IllegalStateException - if a local dependency has been set for this constraint.
    IllegalStateException - if this constraint is set in Unknown dependencies mode.
    IllegalArgumentException - if no node is found at the specified path. if the found source node is not a table node or a table record node. if specified containerReference is null.
    Since:
    6.1.1
  • addDependencyToInsertDeleteAndModifyInOtherInstance

    void addDependencyToInsertDeleteAndModifyInOtherInstance​(Path nodePath,
                                                             AdaptationReference containerReference,
                                                             HomeKey homeReference)
    Specifies that the validation result of the current constraint depends on the insertions, modifications and deletions on the specified node in a given dataset in a specific dataspace.

    In the scope of incremental validation, this implies that the current constraint is revalidated for all of the table's records if any of the following events occur:

    • An insertion in the source table.
    • A deletion in the source table.
    • A modification of any node in any of the records in the source table, if the source node is a table node.
    • A modification of the source node in any of records in the source table, if the source node is a table record node.

    Attention:

    • A call to this method implies that all dependencies are explicitly declared (explicit dependencies mode). For more information, see Dependencies and validation above.
    • If the source node is a table record node and if it or the current node are computed by a value function in unknown dependencies mode mode or are an inherited field (define the property osd:inheritance), then this constraint will be considered to be in unknown dependencies mode.
    Parameters:
    nodePath - specifies the source node and table on which this constraint depends; if the source is a table node, any insertion, modification and deletion in the table will result in the revalidation of the current constraint for all the records of the table; if the source is a table record node, the revalidation is more restrictive since only the modification of the specified node or any insertion or deletion will result in revalidation.
    Throws:
    IllegalStateException - if a local dependency has been set for this constraint.
    IllegalStateException - if this constraint is set in Unknown dependencies mode.
    IllegalArgumentException - if no node is found at the specified path. if the found source node is not a table node or a table record node. if specified containerReference is null. if specified homeReference is null.
    Since:
    6.1.1