Package net.sf.saxon.om

Examples of net.sf.saxon.om.Name10Checker


   *
   * @param name the name to check
   * @throws InvalidDDMSException if the name is not an NCName.
   */
  public static void requireValidNCName(String name) throws InvalidDDMSException {
    if (!(new Name10Checker().isValidNCName(getNonNullString(name))))
      throw new InvalidDDMSException("\"" + name + "\" is not a valid NCName.");
  }
View Full Code Here


   *
   * @param name the name to check
   * @throws InvalidDDMSException if the name is not an NMTOKEN.
   */
  public static void requireValidNMToken(String name) throws InvalidDDMSException {
    if (!(new Name10Checker().isValidNmtoken(getNonNullString(name))))
      throw new InvalidDDMSException("\"" + name + "\" is not a valid NMTOKEN.");
  }
View Full Code Here

TOP

Related Classes of net.sf.saxon.om.Name10Checker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.