jaxp/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/xs/XSAttributeUseImpl.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 1999-2002,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, |
26 import com.sun.org.apache.xerces.internal.xs.XSAttributeDeclaration; |
27 import com.sun.org.apache.xerces.internal.xs.XSAttributeDeclaration; |
27 import com.sun.org.apache.xerces.internal.xs.XSAttributeUse; |
28 import com.sun.org.apache.xerces.internal.xs.XSAttributeUse; |
28 import com.sun.org.apache.xerces.internal.xs.XSConstants; |
29 import com.sun.org.apache.xerces.internal.xs.XSConstants; |
29 import com.sun.org.apache.xerces.internal.xs.XSNamespaceItem; |
30 import com.sun.org.apache.xerces.internal.xs.XSNamespaceItem; |
30 import com.sun.org.apache.xerces.internal.xs.XSObjectList; |
31 import com.sun.org.apache.xerces.internal.xs.XSObjectList; |
|
32 import com.sun.org.apache.xerces.internal.xs.XSValue; |
31 |
33 |
32 /** |
34 /** |
33 * The XML representation for an attribute use |
35 * The XML representation for an attribute use |
34 * schema component is a local <attribute> element information item |
36 * schema component is a local <attribute> element information item |
35 * |
37 * |
140 return getConstraintType() == XSConstants.VC_NONE ? |
142 return getConstraintType() == XSConstants.VC_NONE ? |
141 null : |
143 null : |
142 fDefault.itemValueTypes; |
144 fDefault.itemValueTypes; |
143 } |
145 } |
144 |
146 |
|
147 public XSValue getValueConstraintValue() { |
|
148 return fDefault; |
|
149 } |
|
150 |
145 /** |
151 /** |
146 * Optional. Annotations. |
152 * Optional. Annotations. |
147 */ |
153 */ |
148 public XSObjectList getAnnotations() { |
154 public XSObjectList getAnnotations() { |
149 return (fAnnotations != null) ? fAnnotations : XSObjectListImpl.EMPTY_LIST; |
155 return (fAnnotations != null) ? fAnnotations : XSObjectListImpl.EMPTY_LIST; |