jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/schemagen/XmlSchemaGenerator.java
equal
deleted
inserted
replaced
549 } |
549 } |
550 |
550 |
551 /** |
551 /** |
552 * Process the given PropertyInfo looking for references to namespaces that |
552 * Process the given PropertyInfo looking for references to namespaces that |
553 * are foreign to the given namespace. Any foreign namespace references |
553 * are foreign to the given namespace. Any foreign namespace references |
554 * found are added to the given namespaces dependency list and an <import> |
554 * found are added to the given namespaces dependency list and an {@code <import>} |
555 * is generated for it. |
555 * is generated for it. |
556 * |
556 * |
557 * @param p the PropertyInfo |
557 * @param p the PropertyInfo |
558 */ |
558 */ |
559 private void processForeignNamespaces(PropertyInfo<T, C> p, int processingDepth) { |
559 private void processForeignNamespaces(PropertyInfo<T, C> p, int processingDepth) { |
1138 } |
1138 } |
1139 } |
1139 } |
1140 |
1140 |
1141 /** |
1141 /** |
1142 * Checks if we can collapse |
1142 * Checks if we can collapse |
1143 * <element name='foo' type='t' /> to <element ref='foo' />. |
1143 * {@code <element name='foo' type='t' />} |
|
1144 * to {@code <element ref='foo' />}. |
1144 * |
1145 * |
1145 * This is possible if we already have such declaration to begin with. |
1146 * This is possible if we already have such declaration to begin with. |
1146 */ |
1147 */ |
1147 private boolean canBeDirectElementRef(TypeRef<T, C> t, QName tn, TypeInfo parentInfo) { |
1148 private boolean canBeDirectElementRef(TypeRef<T, C> t, QName tn, TypeInfo parentInfo) { |
1148 Element te = null; |
1149 Element te = null; |