jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/bind/v2/schemagen/XmlSchemaGenerator.java
changeset 32795 5a5710ee05a0
parent 25871 b80b84e87032
child 36263 d5333008e409
equal deleted inserted replaced
32712:f61a63b7d1e5 32795:5a5710ee05a0
   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          * &lt;element name='foo' type='t' /> to &lt;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;