Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sun.msv.verifier.identity
Class IDConstraintChecker

    java.lang.Object
      com.sun.msv.verifier.AbstractVerifier
          com.sun.msv.verifier.Verifier
              com.sun.msv.verifier.identity.IDConstraintChecker

All Implemented Interfaces:
  org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, IDContextProvider2, IVerifier, ValidationContext, org.iso_relax.verifier.VerifierHandler

public class IDConstraintChecker
extends Verifier

Verifier with XML Schema-related enforcement.

This class can be used in the same way as `Verifier`. This class also checks XML Schema's identity constraint.

Author:
  Kohsuke KAWAGUCHI

Field Summary
`static java.lang.String` | `ERR_DOUBLE_MATCH`
`static java.lang.String` | `ERR_NOT_UNIQUE`
`static java.lang.String` | `ERR_NOT_UNIQUE_DIAG`
`static java.lang.String` | `ERR_UNDEFINED_KEY`
`static java.lang.String` | `ERR_UNMATCHED_KEY_FIELD`

Fields inherited from class com.sun.msv.verifier.Verifier
`ERR_DUPLICATE_ID, ERR_MISSING_ATTRIBUTE, ERR_UNCOMPLETED_CONTENT, ERR_UNEXPECTED_ATTRIBUTE, ERR_UNEXPECTED_ELEMENT, ERR_UNEXPECTED_STARTTAG, ERR_UNEXPECTED_TEXT, ERR_UNSOLD_IDREF`

Constructor Summary
`IDConstraintChecker(XMLSchemaGrammar grammar, org.xml.sax.ErrorHandler errorHandler)`

Method Summary
`void` | `characters(char[] buf, int start, int len)`
`void` | `endDocument()`
`void` | `endElement(java.lang.String namespaceUri, java.lang.String localName, java.lang.String qName)`
`static java.lang.String` | `localizeMessage(java.lang.String propertyName, java.lang.Object arg)`
`static java.lang.String` | `localizeMessage(java.lang.String propertyName, java.lang.Object[] args)`
`void` | `startDocument()`

Methods inherited from class com.sun.msv.verifier.Verifier
`getCurrentElementType, getErrorHandler, getLastCharacterType, ignorableWhitespace, isValid, onDuplicateId, setErrorHandler, setPanicMode, startElement`

Methods inherited from class com.sun.msv.verifier.AbstractVerifier
`endPrefixMapping, getBaseUri, getLocator, isNotation, isUnparsedEntity, notationDecl, onID, processingInstruction, resolveNamespacePrefix, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface com.sun.msv.verifier.IVerifier
`getLocator`

Methods inherited from interface org.xml.sax.ContentHandler
`endPrefixMapping, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping`

Field Detail

### ERR_UNMATCHED_KEY_FIELD

    public static final java.lang.String ERR_UNMATCHED_KEY_FIELD

See Also:
  Constant Field Values

### ERR_NOT_UNIQUE

    public static final java.lang.String ERR_NOT_UNIQUE

See Also:
  Constant Field Values

### ERR_NOT_UNIQUE_DIAG

    public static final java.lang.String ERR_NOT_UNIQUE_DIAG

See Also:
  Constant Field Values

### ERR_DOUBLE_MATCH

    public static final java.lang.String ERR_DOUBLE_MATCH

See Also:
  Constant Field Values

### ERR_UNDEFINED_KEY

    public static final java.lang.String ERR_UNDEFINED_KEY

See Also:
  Constant Field Values

Constructor Detail

### IDConstraintChecker

    public IDConstraintChecker(XMLSchemaGrammar grammar,
                               org.xml.sax.ErrorHandler errorHandler)

Method Detail

### startDocument

    public void startDocument()
                       throws org.xml.sax.SAXException

  Specified by:
    `startDocument` in interface `org.xml.sax.ContentHandler`
  Overrides:
    `startDocument` in class `Verifier`
  Throws:
    `org.xml.sax.SAXException`

### endDocument

    public void endDocument()
                     throws org.xml.sax.SAXException

  Specified by:
    `endDocument` in interface `org.xml.sax.ContentHandler`
  Overrides:
    `endDocument` in class `Verifier`
  Throws:
    `org.xml.sax.SAXException`

### characters

    public void characters(char[] buf,
                           int start,
                           int len)
                    throws org.xml.sax.SAXException

  Specified by:
    `characters` in interface `org.xml.sax.ContentHandler`
  Overrides:
    `characters` in class `Verifier`
  Throws:
    `org.xml.sax.SAXException`

### endElement

    public void endElement(java.lang.String namespaceUri,
                           java.lang.String localName,
                           java.lang.String qName)
                    throws org.xml.sax.SAXException

  Specified by:
    `endElement` in interface `org.xml.sax.ContentHandler`
  Overrides:
    `endElement` in class `Verifier`
  Throws:
    `org.xml.sax.SAXException`

### localizeMessage

    public static java.lang.String localizeMessage(java.lang.String propertyName,
                                                   java.lang.Object arg)

### localizeMessage

    public static java.lang.String localizeMessage(java.lang.String propertyName,
                                                   java.lang.Object[] args)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD