com.sun.msv.verifier.regexp.xmlschema
public class XSAcceptor extends SimpleAcceptor
This class should be considered as a "quick-hack" to better accomodate W3C XML Schema.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
XMLSchemaNamespace |
static java.lang.String |
XSINamespace |
continuation, owner
STRING_IGNORE, STRING_PROHIBITED, STRING_STRICT
Constructor and Description |
---|
XSAcceptor(XSREDocDecl docDecl,
Expression combined,
ElementExp owner,
Expression continuation) |
Modifier and Type | Method and Description |
---|---|
Acceptor |
createChildAcceptor(StartTagInfo sti,
StringRef refErr)
creates combined child acceptor and primitive child acceptors (if necessary).
|
Acceptor |
createClone()
clones this acceptor.
|
getOwnerType
stepForward
getExpression, getStringCareLevel, isAcceptState, onAttribute, onAttribute2, onEndAttributes, onText, onText2, stepForwardByContinuation
public static final java.lang.String XSINamespace
public static final java.lang.String XMLSchemaNamespace
public XSAcceptor(XSREDocDecl docDecl, Expression combined, ElementExp owner, Expression continuation)
public Acceptor createClone()
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.
createClone
in interface Acceptor
createClone
in class SimpleAcceptor
public Acceptor createChildAcceptor(StartTagInfo sti, StringRef refErr)
ExpressionAcceptor
createChildAcceptor
in interface Acceptor
createChildAcceptor
in class ExpressionAcceptor
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.