Class InterMineLUI


  • public class InterMineLUI
    extends java.lang.Object
    Class to represent the InterMine Local Unique Identifier InterMineLUI schema: className:identifier where the identifier is the id provided by the data source provider, in some cases, adapted with a prefix e.g.RGD:62030 Some examples: humanmine.org/humanmine/protein:P31946-> InterMineLUI=protein:P31946 humanmine.org/humanmine/gene:RGD:62030-> InterMineLUI=gene:RGD:62030
    Author:
    danielabutano
    • Constructor Summary

      Constructors 
      Constructor Description
      InterMineLUI​(java.lang.String permanentURI)
      Constructor.
      InterMineLUI​(java.lang.String className, java.lang.String identifier)
      Constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getClassName()
      Get the className
      java.lang.String getIdentifier()
      Get the identifier
      protected static java.lang.String getSimpleClassName​(java.lang.String className)
      Given a type, which might not contain capital letters, return the class name as it is defined in the model
      void setClassName​(java.lang.String className)
      Set the className
      void setIdentifier​(java.lang.String identifier)
      Set the identifier
      java.lang.String toString()
      Returns the String which represents the InterMineLUI -> className:identifier
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • InterMineLUI

        public InterMineLUI​(java.lang.String className,
                            java.lang.String identifier)
        Constructor. Build a InterMineLUI given prefix and LUI
        Parameters:
        className - the className (e.g. Protein)
        identifier - the identifier (e.g. P31946)
      • InterMineLUI

        public InterMineLUI​(java.lang.String permanentURI)
                     throws InvalidPermanentURLException
        Constructor. Build a InterMineLUI after verifying the className
        Parameters:
        permanentURI - URI as humanmine/protein:P31946 OR humanmine/Protein:P31946
        Throws:
        InvalidPermanentURLException - if the permanentURI in input is not an permanent URI
    • Method Detail

      • getSimpleClassName

        protected static java.lang.String getSimpleClassName​(java.lang.String className)
        Given a type, which might not contain capital letters, return the class name as it is defined in the model
        Parameters:
        className - which might not contain capital letters (e.g. dataset)
        Returns:
        the class name as it is defined in the model (e.g. DataSet)
      • getClassName

        public java.lang.String getClassName()
        Get the className
        Returns:
        the className
      • setClassName

        public void setClassName​(java.lang.String className)
        Set the className
        Parameters:
        className - the value to set
      • getIdentifier

        public java.lang.String getIdentifier()
        Get the identifier
        Returns:
        the identifier provided by the data source provider and eventually adapted by InterMine
      • setIdentifier

        public void setIdentifier​(java.lang.String identifier)
        Set the identifier
        Parameters:
        identifier - the identifier provided by the data source provider and eventually adapted by InterMine
      • toString

        public java.lang.String toString()
        Returns the String which represents the InterMineLUI -> className:identifier
        Overrides:
        toString in class java.lang.Object
        Returns:
        the string in the format className:identifier