Class ClassPathWithAnnoSource

java.lang.Object
com.levigo.jadice.web.shared.model.Source
com.levigo.jadice.web.shared.PasswordContainingSource
com.levigo.jadice.web.demo.common.shared.service.sources.ClassPathWithAnnoSource
All Implemented Interfaces:
Serializable

public class ClassPathWithAnnoSource extends PasswordContainingSource
A source that reads a file from the class path. This source supports composite documents.
See Also:
  • Field Details

    • TYPE

      public static String TYPE
  • Constructor Details

    • ClassPathWithAnnoSource

      public ClassPathWithAnnoSource()
    • ClassPathWithAnnoSource

      public ClassPathWithAnnoSource(String resource)
      In case of non-composite documents the resource can also serve as identifier for the whole document.
      Parameters:
      resource - The resource identifier; in this case the filename of the file to load
    • ClassPathWithAnnoSource

      public ClassPathWithAnnoSource(String resource, String identifier)
      In case of composite documents a unique identifier for the whole document is required apart from the resource description of the partial document. document.
      Parameters:
      resource - The resource identifier; in this case the filename of the file to load
      identifier - The unique(!) identifier of this source. Whenever the same(!) document on the file system is used as part of a composite document AND in another test case as a standalone test document, it is mandatory to provide a unique identifier here
  • Method Details

    • getResource

      public String getResource()
    • setResource

      public void setResource(String resource)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getIdentifier

      public String getIdentifier()
    • setIdentifier

      public void setIdentifier(String identifier)