Class ModelName


  • public class ModelName
    extends java.lang.Object
    Models used in a rank profile has the rank profile name as name space while gGlobal model names have no namespace
    Author:
    bratseth
    • Constructor Summary

      Constructors 
      Constructor Description
      ModelName​(java.lang.String name)  
      ModelName​(java.lang.String namespace, com.yahoo.path.Path modelPath, boolean pathIsFile)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String fullName()  
      int hashCode()  
      boolean isGlobal()
      Returns true if the local name of this is not in a namespace
      java.lang.String localName()  
      java.lang.String namespace()
      Returns the namespace, or null if this is global
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • ModelName

        public ModelName​(java.lang.String name)
      • ModelName

        public ModelName​(java.lang.String namespace,
                         com.yahoo.path.Path modelPath,
                         boolean pathIsFile)
    • Method Detail

      • isGlobal

        public boolean isGlobal()
        Returns true if the local name of this is not in a namespace
      • namespace

        public java.lang.String namespace()
        Returns the namespace, or null if this is global
      • localName

        public java.lang.String localName()
      • fullName

        public java.lang.String fullName()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object