Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.modeshape.graph
Interface Graph.NameWorkspace

All Known Subinterfaces:
  Graph.CreateWorkspace

Enclosing class:
  Graph

    public static interface Graph.NameWorkspace

The interface used to specify the name of a new workspace.

Method Summary
`Workspace` | `named(String workspaceName)` Specify the name of the new workspace that is to be created.
`Workspace` | `namedSomethingLike(String workspaceName)` Specify the name of the new workspace that is to be created.

Method Detail

### named

    Workspace named(String workspaceName)

  Specify the name of the new workspace that is to be created.

  Parameters:
    `workspaceName` - the name of the existing workspace that will be cloned to create the new workspace;
  Returns:
    the workspace; never null
  Throws:
    `IllegalArgumentException` - if the name of the new workspace is null
    `InvalidWorkspaceException` - if there is already an existing workspace with the supplied name

### namedSomethingLike

    Workspace namedSomethingLike(String workspaceName)

  Specify the name of the new workspace that is to be created. If a workspace with the supplied name already exists, the new workspace name will be adjusted so that it is unique.

  Parameters:
    `workspaceName` - the name of the existing workspace that will be cloned to create the new workspace;
  Returns:
    the workspace; never null
  Throws:
    `IllegalArgumentException` - if the name of the new workspace is null

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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