jaxws/src/share/jaxws_classes/com/sun/tools/internal/xjc/model/CPropertyInfo.java
equal
deleted
inserted
replaced
27 |
27 |
28 import java.lang.annotation.Annotation; |
28 import java.lang.annotation.Annotation; |
29 import java.util.Collection; |
29 import java.util.Collection; |
30 import java.util.Map; |
30 import java.util.Map; |
31 |
31 |
|
32 import javax.xml.XMLConstants; |
32 import javax.xml.bind.annotation.XmlTransient; |
33 import javax.xml.bind.annotation.XmlTransient; |
33 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
34 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
34 import javax.xml.namespace.QName; |
35 import javax.xml.namespace.QName; |
35 |
36 |
36 import com.sun.codemodel.internal.JClass; |
37 import com.sun.codemodel.internal.JClass; |
296 protected static boolean needsExplicitTypeName(TypeUse type, QName typeName) { |
297 protected static boolean needsExplicitTypeName(TypeUse type, QName typeName) { |
297 if(typeName==null) |
298 if(typeName==null) |
298 // this is anonymous type. can't have @XmlSchemaType |
299 // this is anonymous type. can't have @XmlSchemaType |
299 return false; |
300 return false; |
300 |
301 |
301 if(!typeName.getNamespaceURI().equals(WellKnownNamespace.XML_SCHEMA)) |
302 if(!XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(typeName.getNamespaceURI())) |
302 // if we put application-defined type name, it will be undefined |
303 // if we put application-defined type name, it will be undefined |
303 // by the time we generate a schema. |
304 // by the time we generate a schema. |
304 return false; |
305 return false; |
305 |
306 |
306 if(type.isCollection()) |
307 if(type.isCollection()) |