Class XSAcceptor

  • All Implemented Interfaces:
    Acceptor

    public class XSAcceptor
    extends SimpleAcceptor
    Acceptor implementation for XSREDocDecl.

    This class should be considered as a "quick-hack" to better accomodate W3C XML Schema.

    • Method Detail

      • createClone

        public Acceptor createClone()
        Description copied from interface: Acceptor
        clones this acceptor.

        You can keep a "bookmark" of the acceptor by cloning it. This is useful when you are trying to perform "partial validation".

        Cloned acceptor will behave in exactly the same way as the original one.

        Specified by:
        createClone in interface Acceptor
        Overrides:
        createClone in class SimpleAcceptor
      • createChildAcceptor

        public Acceptor createChildAcceptor​(StartTagInfo sti,
                                            StringRef refErr)
        Description copied from class: ExpressionAcceptor
        creates combined child acceptor and primitive child acceptors (if necessary). be careful not to keep returned object too long because it is reused whenever the method is called.
        Specified by:
        createChildAcceptor in interface Acceptor
        Overrides:
        createChildAcceptor in class ExpressionAcceptor
        Parameters:
        sti - this parameter provides the information about the start tag to the acceptor object. Usually attribute information is ignored, but sometimes they are used as hints.
        refErr - if this parameter is non-null, the implementation should try to detect the reason of error and recover from it. and this object should have the error message as its str field.
        Returns:
        null if errRef is null and this expression cannot accept given start tag. if errRef is non-null and error recovery is not possible.