/platform/projectModel-api/src/com/intellij/openapi/roots/SourceFolder.java

https://bitbucket.org/nbargnesi/idea
Java | 45 lines | 6 code | 3 blank | 36 comment | 0 complexity | 015c6d58b6157907c6f5efe8c9ef5740 MD5 | raw file
  1. /*
  2. * Copyright 2000-2009 JetBrains s.r.o.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package com.intellij.openapi.roots;
  17. /**
  18. * Represents a source or test source root under the content root of a module.
  19. *
  20. * @author dsl
  21. * @see ContentEntry#getSourceFolders()
  22. */
  23. public interface SourceFolder extends ContentFolder {
  24. /**
  25. * Checks if this root is a production or test source root.
  26. *
  27. * @return true if this source root is a test source root, false otherwise.
  28. */
  29. boolean isTestSource();
  30. /**
  31. * Returns the package prefix for this source root.
  32. *
  33. * @return the package prefix, or an empty string if the root has no package prefix.
  34. */
  35. String getPackagePrefix();
  36. /**
  37. * Sets the package prefix for this source root.
  38. *
  39. * @param packagePrefix the package prefix, or an empty string if the root has no package prefix.
  40. */
  41. void setPackagePrefix(String packagePrefix);
  42. }