Class TermType


  • public class TermType
    extends java.lang.Object
    A term type enumeration
    Author:
    bratseth, Steinar Knutsen
    • Method Detail

      • getName

        public java.lang.String getName()
      • getItemClass

        public java.lang.Class<? extends CompositeItem> getItemClass()
        Returns the CompositeItem type this type corresponds to, or CompositeItem if it's the default
      • hasItemClass

        public boolean hasItemClass​(java.lang.Class<?> theClass)
        Returns true if the class corresponding to this type is the given class
      • createItemClass

        public Item createItemClass()
        Returns an instance of the class corresponding to the given type, AndItem if this is the DEFAULT type
        Throws:
        java.lang.RuntimeException - if an instance could not be created
      • toSign

        public java.lang.String toSign()
      • 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