Class LiteralType


  • public final class LiteralType
    extends Object
    The String Literal content Type description that registered in extension point.
    • Constructor Detail

      • LiteralType

        public LiteralType​(String name,
                           String nameRu,
                           boolean allowAnnotation,
                           boolean computeWithAnnotation,
                           String uniqueScope)
        Instantiates a new literal type description.
        Parameters:
        name - the name of type, witch is ID of type, cannot be null.
        nameRu - the name for Russian script variant, cannot be null.
        allowAnnotation - the allow to use this type in annotations for string literal.
        computeWithAnnotation - the compute this type with other types specified in annotations.
        uniqueScope - the unique scope
      • LiteralType

        public LiteralType​(String name,
                           String nameRu)
        Instantiates a new literal type description.
        Parameters:
        name - the name of type, witch is ID of type, cannot be null.
        nameRu - the name for Russian script variant, cannot be null.
      • LiteralType

        public LiteralType​(String name)
        Instantiates a new literal type description.
        Parameters:
        name - the name of type, witch is ID of type, cannot be null.
      • LiteralType

        public LiteralType​(String name,
                           boolean allowAnnotation,
                           boolean computeWithAnnotation,
                           String uniqueScope)
        Instantiates a new literal type description.
        Parameters:
        name - the name of type, witch is ID of type, cannot be null.
        allowAnnotation - the allow annotation
        computeWithAnnotation - the compute with annotation
        uniqueScope - the unique scope
    • Method Detail

      • getName

        public String getName()
        Gets the name of type, witch is ID of type.
        Returns:
        the name
      • getNameRu

        public String getNameRu()
        Gets name for Russian script variant.
        Returns:
        the Russian name
      • allowAnnotation

        public boolean allowAnnotation()
        Allow to use this type in annotations for string literal.
        Returns:
        true, if allow to use in annotations
      • computeWithAnnotation

        public boolean computeWithAnnotation()
        Compute this type with other types specified in annotations.
        Returns:
        true, if this type need to compute with other types specified in annotations.
      • getUniqueScope

        public String getUniqueScope()
        Gets the unique scope.
        Returns:
        the unique scope
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object