Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.znerd.xmlenc
Class XMLChecker  view XMLChecker download XMLChecker.java

java.lang.Object
  extended byorg.znerd.xmlenc.XMLChecker

public final class XMLChecker
extends java.lang.Object

Utility class that provides XML checking functionality.

Since:
xmlenc 0.41
Version:
$Revision: 1.11 $ $Date: 2005/09/12 08:40:02 $

Constructor Summary
private XMLChecker()
          Constructs a new XMLChecker object.
 
Method Summary
static void checkName(char[] ch, int start, int length)
          Checks if the specified part of a character array matches the Name production.
static void checkName(java.lang.String s)
          Checks if the specified string matches the Name production.
static void checkPubidLiteral(char[] ch, int start, int length)
          Checks if the specified part of a character array matches the PubidLiteral production.
static void checkPubidLiteral(java.lang.String s)
          Checks if the specified string matches the PubidLiteral production.
static void checkS(char[] ch, int start, int length)
          Checks if the specified part of a character array matches the S (white space) production.
static void checkS(java.lang.String s)
          Checks if the specified string matches the S (white space) production.
static void checkSystemLiteral(char[] ch, int start, int length)
          Checks if the specified part of a character array matches the SystemLiteral production.
static void checkSystemLiteral(java.lang.String s)
          Checks if the specified string matches the SystemLiteral production.
private static boolean isBaseChar(char c)
          Determines if the specified character matches the BaseChar production.
private static boolean isCombiningChar(char c)
          Determines if the specified character matches the CombiningChar production.
private static boolean isDigit(char c)
          Determines if the specified character matches the Digit production.
private static boolean isExtender(char c)
          Determines if the specified character matches the Extender production.
private static boolean isIdeographic(char c)
          Determines if the specified character matches the Ideographic production.
private static boolean isLetter(char c)
          Determines if the specified character matches the Letter production.
static boolean isName(java.lang.String s)
          Determines if the specified string matches the Name production.
private static boolean isNameChar(char c)
          Determines if the specified character matches the NameChar production.
static boolean isPubidLiteral(java.lang.String s)
          Determines if the specified string matches the PubidLiteral production.
static boolean isSystemLiteral(java.lang.String s)
          Determines if the specified string matches the SystemLiteral production.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLChecker

private XMLChecker()
Constructs a new XMLChecker object. This constructor is private since no objects of this class should be created.

Method Detail

checkS

public static final void checkS(java.lang.String s)
                         throws java.lang.NullPointerException
Checks if the specified string matches the S (white space) production.

See: Definition of S.


checkS

public static final void checkS(char[] ch,
                                int start,
                                int length)
                         throws java.lang.NullPointerException,
                                java.lang.IndexOutOfBoundsException,
                                InvalidXMLException
Checks if the specified part of a character array matches the S (white space) production.

See: Definition of S.


isName

public static final boolean isName(java.lang.String s)
                            throws java.lang.NullPointerException
Determines if the specified string matches the Name production.

See: Definition of Name.


checkName

public static final void checkName(java.lang.String s)
                            throws java.lang.NullPointerException,
                                   InvalidXMLException
Checks if the specified string matches the Name production.

See: Definition of Name.


checkName

public static final void checkName(char[] ch,
                                   int start,
                                   int length)
                            throws java.lang.NullPointerException,
                                   java.lang.IndexOutOfBoundsException,
                                   InvalidXMLException
Checks if the specified part of a character array matches the Name production.

See: Definition of Name.


isSystemLiteral

public static final boolean isSystemLiteral(java.lang.String s)
                                     throws java.lang.NullPointerException
Determines if the specified string matches the SystemLiteral production.

See: Definition of SystemLiteral.


checkSystemLiteral

public static final void checkSystemLiteral(java.lang.String s)
                                     throws java.lang.NullPointerException,
                                            InvalidXMLException
Checks if the specified string matches the SystemLiteral production.

See: Definition of SystemLiteral.


checkSystemLiteral

public static final void checkSystemLiteral(char[] ch,
                                            int start,
                                            int length)
                                     throws java.lang.NullPointerException,
                                            java.lang.IndexOutOfBoundsException,
                                            InvalidXMLException
Checks if the specified part of a character array matches the SystemLiteral production.

See: Definition of SystemLiteral.


isPubidLiteral

public static final boolean isPubidLiteral(java.lang.String s)
                                    throws java.lang.NullPointerException
Determines if the specified string matches the PubidLiteral production.

See: Definition of PubidLiteral.


checkPubidLiteral

public static final void checkPubidLiteral(java.lang.String s)
                                    throws java.lang.NullPointerException,
                                           InvalidXMLException
Checks if the specified string matches the PubidLiteral production.

See: Definition of PubidLiteral.


checkPubidLiteral

public static final void checkPubidLiteral(char[] ch,
                                           int start,
                                           int length)
                                    throws java.lang.NullPointerException,
                                           java.lang.IndexOutOfBoundsException,
                                           InvalidXMLException
Checks if the specified part of a character array matches the PubidLiteral production.

See: Definition of PubidLiteral.


isNameChar

private static final boolean isNameChar(char c)
Determines if the specified character matches the NameChar production.

See: Definition of NameChar.


isLetter

private static final boolean isLetter(char c)
Determines if the specified character matches the Letter production.

See: Definition of Letter.


isBaseChar

private static final boolean isBaseChar(char c)
Determines if the specified character matches the BaseChar production.

See: Definition of BaseChar.


isIdeographic

private static final boolean isIdeographic(char c)
Determines if the specified character matches the Ideographic production.

See: Definition of Ideographic.


isCombiningChar

private static final boolean isCombiningChar(char c)
Determines if the specified character matches the CombiningChar production.

See: Definition of CombiningChar.


isDigit

private static final boolean isDigit(char c)
Determines if the specified character matches the Digit production.

See: Definition of Digit.


isExtender

private static final boolean isExtender(char c)
Determines if the specified character matches the Extender production.

See: Definition of Extender.