setName(pQName);
if (pJAXBClassOwner == null) {
throw new NullPointerException("The XSObject argument must not be null.");
}
JAXBClassOwner jaxbClassOwner = null;
JAXBSchemaBindings schemaBindings = null;
if (pJAXBClassOwner instanceof JAXBClassOwner) {
jaxbClassOwner = (JAXBClassOwner) pJAXBClassOwner;
schemaBindings = jaxbClassOwner.getJAXBSchemaBindings();
}
String packageName = pSchemaSG.getFactory().getGenerator().getProperty("jaxme.package.name");
if (packageName == null) {
if (schemaBindings != null) {
JAXBSchemaBindings.Package jaxbPackage = schemaBindings.getPackage();
if (jaxbPackage != null) {
packageName = jaxbPackage.getName();
}
}
}
if (packageName == null) {
packageName = getPackageNameFromURI(pJAXBClassOwner.getLocator(), pQName.getNamespaceURI());
}
String className = null, implementationName = null;
JAXBClass jaxbClass = (jaxbClassOwner == null) ? null : jaxbClassOwner.getJAXBClass();
if (jaxbClass != null) {
className = jaxbClass.getName();
implementationName = jaxbClass.getImplClass();
}