Class Datatypes


  • public final class Datatypes
    extends java.lang.Object
    Basic automata for representing common datatypes related to Unicode, XML, and XML Schema.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean exists​(java.lang.String name)
      Checks whether a given automaton is available.
      static Automaton get​(java.lang.String name)
      Returns pre-built automaton.
      static boolean isUnicodeBlockName​(java.lang.String name)
      Checks whether the given string is the name of a Unicode block (see get(String)).
      static boolean isUnicodeCategoryName​(java.lang.String name)
      Checks whether the given string is the name of a Unicode category (see get(String)).
      static boolean isXMLName​(java.lang.String name)
      Checks whether the given string is the name of an XML / XML Schema automaton (see get(String)).
      static void main​(java.lang.String[] args)
      Invoke during compilation to pre-build automata.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
        Invoke during compilation to pre-build automata. Automata are stored in the directory specified by the system property dk.brics.automaton.datatypes. (Default: build, relative to the current working directory.)
      • isUnicodeBlockName

        public static boolean isUnicodeBlockName​(java.lang.String name)
        Checks whether the given string is the name of a Unicode block (see get(String)).
      • isUnicodeCategoryName

        public static boolean isUnicodeCategoryName​(java.lang.String name)
        Checks whether the given string is the name of a Unicode category (see get(String)).
      • isXMLName

        public static boolean isXMLName​(java.lang.String name)
        Checks whether the given string is the name of an XML / XML Schema automaton (see get(String)).
      • exists

        public static boolean exists​(java.lang.String name)
        Checks whether a given automaton is available.
        Parameters:
        name - automaton name
        Returns:
        true if the automaton is available