org.modeshape.jcr.api.index

## Interface IndexDefinition.WorkspaceMatchRule

- Enclosing interface:
    IndexDefinition

      public static interface IndexDefinition.WorkspaceMatchRule

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getDefinition()` Get the string representation of this rule.
    `boolean` | `usedInWorkspace(String workspaceName)` Determine if the index applies to the workspace with the given name.

- - ### Method Detail

    - #### usedInWorkspace

          boolean usedInWorkspace(String workspaceName)

      Determine if the index applies to the workspace with the given name.
      Parameters:
        `workspaceName` - the name of the workspace; may not be null
      Returns:
        true if the index applies to the workspace, or false if the rule does not match the name

    - #### getDefinition

          String getDefinition()

      Get the string representation of this rule.
      Returns:
        the string representation of this rule; never null

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