Class Resource


  • public class Resource
    extends Object
    A CLARIN-FCS resource
    • Method Detail

      • getPid

        public String getPid()
        Get the persistent identifier for this resource.
        Returns:
        a persistent identifier or null of this resource has none
      • getRef

        public String getRef()
        Get the reference URI for this resource.
        Returns:
        a reference URI or null of this resource has none
      • hasDataViews

        public boolean hasDataViews()
        Convenience method to check if this resource has any dataviews.
        Returns:
        true if this resource has dataviews, false otherwise
      • getDataViews

        public List<DataView> getDataViews()
        Get the list of dataview objects for this this resource.
        Returns:
        a list of DataView objects or null, or null if this resource has none
      • hasResourceFragments

        public boolean hasResourceFragments()
        Convenience method to check if this resource has any resource fragments.
        Returns:
        true if this resource has resource fragments, false otherwise