jaxp/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/xs/XSElementDeclaration.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * reserved comment block |
2 * reserved comment block |
3 * DO NOT REMOVE OR ALTER! |
3 * DO NOT REMOVE OR ALTER! |
4 */ |
4 */ |
5 /* |
5 /* |
6 * Copyright 2003,2004 The Apache Software Foundation. |
6 * Licensed to the Apache Software Foundation (ASF) under one or more |
7 * |
7 * contributor license agreements. See the NOTICE file distributed with |
8 * Licensed under the Apache License, Version 2.0 (the "License"); |
8 * this work for additional information regarding copyright ownership. |
9 * you may not use this file except in compliance with the License. |
9 * The ASF licenses this file to You under the Apache License, Version 2.0 |
10 * You may obtain a copy of the License at |
10 * (the "License"); you may not use this file except in compliance with |
|
11 * the License. You may obtain a copy of the License at |
11 * |
12 * |
12 * http://www.apache.org/licenses/LICENSE-2.0 |
13 * http://www.apache.org/licenses/LICENSE-2.0 |
13 * |
14 * |
14 * Unless required by applicable law or agreed to in writing, software |
15 * Unless required by applicable law or agreed to in writing, software |
15 * distributed under the License is distributed on an "AS IS" BASIS, |
16 * distributed under the License is distributed on an "AS IS" BASIS, |
50 public short getConstraintType(); |
51 public short getConstraintType(); |
51 |
52 |
52 /** |
53 /** |
53 * [Value constraint]: the constraint value with respect to the [type |
54 * [Value constraint]: the constraint value with respect to the [type |
54 * definition], otherwise <code>null</code>. |
55 * definition], otherwise <code>null</code>. |
|
56 * |
|
57 * @deprecated Use getValueConstraintValue().getNormalizedValue() instead |
55 */ |
58 */ |
56 public String getConstraintValue(); |
59 public String getConstraintValue(); |
57 |
60 |
58 /** |
61 /** |
59 * Value Constraint: Binding specific actual constraint value or |
62 * Value Constraint: Binding specific actual constraint value or |
60 * <code>null</code> if the value is in error or there is no value |
63 * <code>null</code> if the value is in error or there is no value |
61 * constraint. |
64 * constraint. |
62 * @exception XSException |
65 * @exception XSException |
63 * NOT_SUPPORTED_ERR: Raised if the implementation does not support this |
66 * NOT_SUPPORTED_ERR: Raised if the implementation does not support this |
64 * method. |
67 * method. |
|
68 * |
|
69 * @deprecated Use getValueConstraintValue().getActualValue() instead |
65 */ |
70 */ |
66 public Object getActualVC() |
71 public Object getActualVC() |
67 throws XSException; |
72 throws XSException; |
68 |
73 |
69 /** |
74 /** |
73 * <code>LIST_DT</code>. If the type definition of this value is a list |
78 * <code>LIST_DT</code>. If the type definition of this value is a list |
74 * type definition whose item type is a union type definition, this |
79 * type definition whose item type is a union type definition, this |
75 * method returns <code>LISTOFUNION_DT</code>. To query the actual |
80 * method returns <code>LISTOFUNION_DT</code>. To query the actual |
76 * constraint value of the list or list of union type definitions use |
81 * constraint value of the list or list of union type definitions use |
77 * <code>itemValueTypes</code>. If the <code>actualNormalizedValue</code> |
82 * <code>itemValueTypes</code>. If the <code>actualNormalizedValue</code> |
78 * is <code>null</code>, this method returns <code>UNAVAILABLE_DT</code> |
83 * is <code>null</code>, this method returns <code>UNAVAILABLE_DT</code>. |
79 * . |
|
80 * @exception XSException |
84 * @exception XSException |
81 * NOT_SUPPORTED_ERR: Raised if the implementation does not support this |
85 * NOT_SUPPORTED_ERR: Raised if the implementation does not support this |
82 * method. |
86 * method. |
|
87 * |
|
88 * @deprecated Use getValueConstraintValue().getActualValueType() instead |
83 */ |
89 */ |
84 public short getActualVCType() |
90 public short getActualVCType() |
85 throws XSException; |
91 throws XSException; |
86 |
92 |
87 /** |
93 /** |
94 * corresponding memberType kind. For examples, see |
100 * corresponding memberType kind. For examples, see |
95 * <code>ItemPSVI.itemValueTypes</code>. |
101 * <code>ItemPSVI.itemValueTypes</code>. |
96 * @exception XSException |
102 * @exception XSException |
97 * NOT_SUPPORTED_ERR: Raised if the implementation does not support this |
103 * NOT_SUPPORTED_ERR: Raised if the implementation does not support this |
98 * method. |
104 * method. |
|
105 * |
|
106 * @deprecated Use getValueConstraintValue().getListValueTypes() instead |
99 */ |
107 */ |
100 public ShortList getItemValueTypes() |
108 public ShortList getItemValueTypes() |
101 throws XSException; |
109 throws XSException; |
|
110 |
|
111 /** |
|
112 * The actual value of the default or fixed value constraint. |
|
113 */ |
|
114 public XSValue getValueConstraintValue(); |
102 |
115 |
103 /** |
116 /** |
104 * If nillable is true, then an element may also be valid if it carries |
117 * If nillable is true, then an element may also be valid if it carries |
105 * the namespace qualified attribute with local name <code>nil</code> |
118 * the namespace qualified attribute with local name <code>nil</code> |
106 * from namespace <code>http://www.w3.org/2001/XMLSchema-instance</code> |
119 * from namespace <code>http://www.w3.org/2001/XMLSchema-instance</code> |