Class TermType


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

      • getName

        public String getName()
      • getItemClass

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

        public boolean hasItemClass​(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:
        RuntimeException - if an instance could not be created
      • toSign

        public String toSign()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object