Class NameRules

java.lang.Object
de.aristaflow.adept2.util.xml.NameRules

public class NameRules extends Object
This class provides rules for XML names which allows to check for whether a CharSequence is a valid XML name.
See Also:
  • Constructor Details

    • NameRules

      public NameRules()
  • Method Details

    • isBaseChar

      public static boolean isBaseChar(int c)
      Gets whether the designated character/codepoint is a BaseChar.
      Parameters:
      c - The character/codepoint which to test for BaseChar.
      Returns:
      Whether the designated character/codepoint is a BaseChar.
    • isIdeographic

      public static boolean isIdeographic(int c)
      Gets whether the designated character/codepoint is an Ideographic.
      Parameters:
      c - The character/codepoint which to test for Ideographic.
      Returns:
      Whether the designated character/codepoint is an Ideographic.
    • isDigit

      public static boolean isDigit(int c)
      Gets whether the designated character/codepoint is a Digit.
      Parameters:
      c - The character/codepoint which to test for Digit.
      Returns:
      Whether the designated character/codepoint is a Digit.
    • isCombiningChar

      public static boolean isCombiningChar(int c)
      Gets whether the designated character/codepoint is a CombiningChar.
      Parameters:
      c - The character/codepoint which to test for CombiningChar.
      Returns:
      Whether the designated character/codepoint is a CombiningChar.
    • isExtender

      public static boolean isExtender(int c)
      Gets whether the designated character/codepoint is an Extender.
      Parameters:
      c - The character/codepoint which to test for Extender.
      Returns:
      Whether the designated character/codepoint is an Extender.
    • isLetter

      public static boolean isLetter(int c)
      Gets whether the designated character/codepoint is a Letter.
      Parameters:
      c - The character/codepoint which to test for Letter.
      Returns:
      Whether the designated character/codepoint is a Letter.
    • isNCNameChar

      public static boolean isNCNameChar(int c)
      Gets whether the designated character/codepoint is an NCNameChar.
      Parameters:
      c - The character/codepoint which to test for NCNameChar.
      Returns:
      Whether the designated character/codepoint is an NCNameChar.
    • isNCName

      public static boolean isNCName(CharSequence cs)
      Gets whether the designated character sequence is an NCName.
      Parameters:
      cs - The character sequence which to test for NCName.
      Returns:
      Whether the designated character sequence is an NCName.