28 import com.sun.org.apache.xerces.internal.impl.xs.XSElementDecl;
29 import com.sun.org.apache.xerces.internal.impl.xs.XSParticleDecl;
30 import com.sun.org.apache.xerces.internal.impl.xs.XSModelGroupImpl;
31 import com.sun.org.apache.xerces.internal.impl.xs.XSWildcardDecl;
32 import com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaException;
33 import com.sun.org.apache.xerces.internal.impl.xs.XSConstraints;
34
35 import java.util.Vector;
36 import java.util.ArrayList;
37 import java.util.HashMap;
38
39 /**
40 * DFAContentModel is the implementation of XSCMValidator that does
41 * all of the non-trivial element content validation. This class does
42 * the conversion from the regular expression to the DFA that
43 * it then uses in its validation algorithm.
44 *
45 * @xerces.internal
46 *
47 * @author Neil Graham, IBM
48 * @version $Id: XSDFACM.java,v 1.9 2010/08/06 23:49:43 joehw Exp $
49 */
50 public class XSDFACM
51 implements XSCMValidator {
52
53 //
54 // Constants
55 //
56 private static final boolean DEBUG = false;
57
58 // special strings
59
60 // debugging
61
62 /** Set to true to debug content model validation. */
63 private static final boolean DEBUG_VALIDATE_CONTENT = false;
64
65 //
66 // Data
67 //
68
|
28 import com.sun.org.apache.xerces.internal.impl.xs.XSElementDecl;
29 import com.sun.org.apache.xerces.internal.impl.xs.XSParticleDecl;
30 import com.sun.org.apache.xerces.internal.impl.xs.XSModelGroupImpl;
31 import com.sun.org.apache.xerces.internal.impl.xs.XSWildcardDecl;
32 import com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaException;
33 import com.sun.org.apache.xerces.internal.impl.xs.XSConstraints;
34
35 import java.util.Vector;
36 import java.util.ArrayList;
37 import java.util.HashMap;
38
39 /**
40 * DFAContentModel is the implementation of XSCMValidator that does
41 * all of the non-trivial element content validation. This class does
42 * the conversion from the regular expression to the DFA that
43 * it then uses in its validation algorithm.
44 *
45 * @xerces.internal
46 *
47 * @author Neil Graham, IBM
48 */
49 public class XSDFACM
50 implements XSCMValidator {
51
52 //
53 // Constants
54 //
55 private static final boolean DEBUG = false;
56
57 // special strings
58
59 // debugging
60
61 /** Set to true to debug content model validation. */
62 private static final boolean DEBUG_VALIDATE_CONTENT = false;
63
64 //
65 // Data
66 //
67
|