Class PDBDomainProvider

  • All Implemented Interfaces:
    DomainProvider

    public class PDBDomainProvider
    extends java.lang.Object
    implements DomainProvider
    Class to fetch domains through the RCSB's REST API.
    Author:
    Spencer Bliven
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.SortedSet<java.lang.String> getDomainNames​(java.lang.String name)
      Gets a list of domain representatives for a given PDB ID.
      java.util.SortedSet<java.lang.String> getRepresentativeDomains()
      Gets a list of all domain representatives
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT_PDB_HOST

        public static final java.lang.String DEFAULT_PDB_HOST
        See Also:
        Constant Field Values
      • DEFAULT_PDB_API_URL

        public static final java.lang.String DEFAULT_PDB_API_URL
        See Also:
        Constant Field Values
    • Constructor Detail

      • PDBDomainProvider

        public PDBDomainProvider()
      • PDBDomainProvider

        public PDBDomainProvider​(java.lang.String base,
                                 int cutoff)
        Parameters:
        base -
        cutoff -
    • Method Detail

      • getDomainNames

        public java.util.SortedSet<java.lang.String> getDomainNames​(java.lang.String name)
        Gets a list of domain representatives for a given PDB ID.
        Specified by:
        getDomainNames in interface DomainProvider
        Parameters:
        name - a structure identifier
        Returns:
        A list of domain names
      • getRepresentativeDomains

        public java.util.SortedSet<java.lang.String> getRepresentativeDomains()
        Gets a list of all domain representatives
        Specified by:
        getRepresentativeDomains in interface DomainProvider
        Returns:
        A full list of all representative domains recognized by this provider
      • main

        public static void main​(java.lang.String[] args)