Class XMLChar

java.lang.Object
com.stimulsoft.base.helper.XMLChar

public class XMLChar extends Object
Copyright Stimulsoft
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Name character mask.
    static final int
    Name start character mask.
    static final int
     
    static final int
     
    static final int
    Pubid character mask.
    static final int
    Space character mask.
    static final int
    Valid character mask.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isName(int c)
    Returns true if the specified character is a valid name character as defined by production [4] in the XML 1.0 specification.
    static boolean
    isNameStart(int c)
     
    static boolean
    isNCName(int c)
     
    static boolean
    Returns true if the specified character is a valid NCName start character as defined by production [4] in Namespaces in XML recommendation.
    static boolean
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • XMLChar

      public XMLChar()
  • Method Details

    • isValidName

      public static boolean isValidName(String name)
    • isNameStart

      public static boolean isNameStart(int c)
    • isName

      public static boolean isName(int c)
      Returns true if the specified character is a valid name character as defined by production [4] in the XML 1.0 specification.
      Parameters:
      c - The character to check.
    • isNCNameStart

      public static boolean isNCNameStart(int c)
      Returns true if the specified character is a valid NCName start character as defined by production [4] in Namespaces in XML recommendation.
      Parameters:
      c - The character to check.
    • isNCName

      public static boolean isNCName(int c)