Class NameValidator

All Implemented Interfaces:
TypeValidator

public class NameValidator extends StringValidator
The Name Validation class. This class handles validation for XML Name production types such as NCName and NMToken
Version:
$Revision: 6605 $ $Date: 2005-12-13 14:58:48 -0700 (Tue, 13 Dec 2005) $
Author:
Keith Visco
  • Field Details

    • NCNAME

      public static final short NCNAME
      XML name type NCName. @deprecated - use XMLConstants.NAME_TYPE_NCNAME. Retained for backwards-compatility.
      See Also:
    • NMTOKEN

      public static final short NMTOKEN
      XML name type NMTOKEN. @deprecated - use XMLConstants.NAME_TYPE_NCTOKEN. Retained for backwards-compatility.
      See Also:
    • CDATA

      public static final short CDATA
      XML name type CDATA. @deprecated - use XMLConstants.NAME_TYPE_CDATA. Retained for backwards-compatility.
      See Also:
  • Constructor Details

    • NameValidator

      public NameValidator()
      Creates a new NameValidator with the default validation set to NCName.
    • NameValidator

      public NameValidator(short type)
      Creates a new NameValidator with the given validation type.
      Parameters:
      type - the validation type for this NameValidator
  • Method Details