Codota Logo
CharValidator.isValid
Code IndexAdd Codota to your IDE (free)

How to use
isValid
method
in
de.pdark.decentxml.validation.CharValidator

Best Java code snippets using de.pdark.decentxml.validation.CharValidator.isValid (Showing top 10 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: de.pdark/decentxml

/**
 * Verify the character at
 * @param source
 * @param offset
 * @return
 */
public String isValid (XMLSource source, int offset)
{
  char c = source.charAt (offset);
  if (Character.isHighSurrogate (c))
  {
    if (offset + 1 >= source.length ())
      return "Unexpected end of input";
    
    char c2 = source.charAt (offset + 1);
    if (Character.isLowSurrogate (c2))
      return isValid (Character.toCodePoint (c, c2));
      
    return "Character after first in surrogate pair is not between 0xDC00 and 0xDFFF: "+Integer.toHexString (c2);
  }
  
  return isValid (c);
}

origin: de.pdark/decentxml

String msg = charValidator.isValid (value);
if (msg == null)
  return value;
origin: de.pdark/decentxml

String msg = charValidator.isValid (source, pos);
if (msg != null)
  throw new XMLParseException ("Illegal character found in processing instruction. "+msg, source, pos);
origin: de.pdark/decentxml

String msg = charValidator.isValid (source, pos);
if (msg != null)
  throw new XMLParseException ("Illegal character found in CDATA. "+msg, source, pos);
origin: de.pdark/decentxml

String msg = charValidator.isValid (source, pos);
if (msg != null)
  throw new XMLParseException ("Illegal character found in text. "+msg, source, pos);
origin: de.pdark/decentxml

String msg = getCharValidator ().isValid (source, pos);
if (msg != null)
  throw new XMLParseException ("Illegal character found in quoted text. "+msg, source, pos);
origin: de.pdark/decentxml

String msg = charValidator.isValid (source, pos);
if (msg != null)
  throw new XMLParseException ("Illegal character found in comment. "+msg, source, pos);
origin: io.fabric8.forge/camel-tooling-util

  insideEntity = false;
} else {
  String msg = charValidator.isValid(source, pos);
  if (msg != null)
    throw new XMLParseException("Illegal character found in attribute value. " + msg, source, pos);
origin: de.pdark/decentxml

String msg = charValidator.isValid (source, pos);
if (msg != null)
  throw new XMLParseException ("Illegal character found in attribute value. "+msg, source, pos);
origin: jboss-fuse/fabric8

  insideEntity = false;
} else {
  String msg = charValidator.isValid(source, pos);
  if (msg != null)
    throw new XMLParseException("Illegal character found in attribute value. " + msg, source, pos);
de.pdark.decentxml.validationCharValidatorisValid

Javadoc

Is this a valid unicode character as defined by the W3C?

Popular methods of CharValidator

  • isBaseChar
  • isCombiningChar
  • isDigit
  • isExtender
  • isIdeographic
  • isLetter
  • isNameChar
    Return true if the character is valid inside of an XML name
  • isNameStartChar
    Return true if the character is valid as the first one of an XML name
  • isWhitespace
    Is the character whitespace as defined by the W3C?

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSystemService (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now