Пример #1
0
  /**
   * Get the namespace used for loading. This may raise a InvalidSignNamespace if the specified
   * namespace for the sign is not an acceptable value.
   *
   * @return
   * @throws InvalidSignNamespace
   */
  public String getNamespace() throws InvalidSignNamespace {
    String namespace = getSignNamespace();

    if (namespace.equals("@") || !isNewArea) {
      return "global";
    } else {
      if (CopyManager.isValidNamespace(namespace)) {
        return "~" + namespace;
      }

      throw new InvalidSignNamespace();
    }
  }