src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/xs/models/XSCMValidator.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2006, 2009, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2006, 2017, Oracle and/or its affiliates. All rights reserved. |
|
3 * @LastModified: Oct 2017 |
3 */ |
4 */ |
4 /* |
5 /* |
5 * Licensed to the Apache Software Foundation (ASF) under one or more |
6 * Licensed to the Apache Software Foundation (ASF) under one or more |
6 * contributor license agreements. See the NOTICE file distributed with |
7 * contributor license agreements. See the NOTICE file distributed with |
7 * this work for additional information regarding copyright ownership. |
8 * this work for additional information regarding copyright ownership. |
18 * limitations under the License. |
19 * limitations under the License. |
19 */ |
20 */ |
20 |
21 |
21 package com.sun.org.apache.xerces.internal.impl.xs.models; |
22 package com.sun.org.apache.xerces.internal.impl.xs.models; |
22 |
23 |
23 import com.sun.org.apache.xerces.internal.xni.QName; |
|
24 import com.sun.org.apache.xerces.internal.impl.xs.SubstitutionGroupHandler; |
24 import com.sun.org.apache.xerces.internal.impl.xs.SubstitutionGroupHandler; |
25 import com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaException; |
25 import com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaException; |
26 import java.util.ArrayList; |
26 import com.sun.org.apache.xerces.internal.xni.QName; |
|
27 import java.util.List; |
27 |
28 |
28 /** |
29 /** |
29 * Note: State of the content model is stored in the validator |
30 * Note: State of the content model is stored in the validator |
30 * |
31 * |
31 * @xerces.internal |
32 * @xerces.internal |
86 * |
87 * |
87 * @param state the current state |
88 * @param state the current state |
88 * @return a list whose entries are instances of |
89 * @return a list whose entries are instances of |
89 * either XSWildcardDecl or XSElementDecl. |
90 * either XSWildcardDecl or XSElementDecl. |
90 */ |
91 */ |
91 public ArrayList whatCanGoHere(int[] state); |
92 public List<Object> whatCanGoHere(int[] state); |
92 |
93 |
93 /** |
94 /** |
94 * Used by constant space algorithm for a{n,m} for n > 1 and |
95 * Used by constant space algorithm for a{n,m} for n > 1 and |
95 * m <= unbounded. Called by a validator if validation of |
96 * m <= unbounded. Called by a validator if validation of |
96 * countent model succeeds after subsuming a{n,m} to a* |
97 * countent model succeeds after subsuming a{n,m} to a* |
102 * (used to look up properties) and odd entries are parameters |
103 * (used to look up properties) and odd entries are parameters |
103 * to be passed when formatting error message. Each parameter |
104 * to be passed when formatting error message. Each parameter |
104 * is associated with the error code that proceeds it in |
105 * is associated with the error code that proceeds it in |
105 * the list. |
106 * the list. |
106 */ |
107 */ |
107 public ArrayList checkMinMaxBounds(); |
108 public List<String> checkMinMaxBounds(); |
108 |
109 |
109 /** |
110 /** |
110 * <p>Returns an array containing information about the current repeating term |
111 * <p>Returns an array containing information about the current repeating term |
111 * or <code>null</code> if no occurrence counting was being performed at the |
112 * or <code>null</code> if no occurrence counting was being performed at the |
112 * current state.</p> |
113 * current state.</p> |