public String namespace() { return core.namespace(); }
XmlType annotation = outputClass.getAnnotation(XmlType.class); localPart = annotation.name(); namespaceUri = annotation.namespace();
XmlType annotation = outputClass.getAnnotation(XmlType.class); localPart = annotation.name(); namespaceUri = annotation.namespace();
String local="##default"; if(t!=null) { nsUri = t.namespace(); local = t.name();
public String namespace() { return core.namespace(); }
String local="##default"; if(t!=null) { nsUri = t.namespace(); local = t.name();
public String namespace() { return core.namespace(); }
public String namespace() { return core.namespace(); }
/** * The namespace of the xml type element. * * @return The namespace of the xml type element. */ public String getNamespace() { String namespace = getPackage().getNamespace(); if ((xmlType != null) && (!"##default".equals(xmlType.namespace()))) { namespace = xmlType.namespace(); } return namespace; }
/** * The namespace of the xml type element. * * @return The namespace of the xml type element. */ public String getNamespace() { String namespace = getPackage().getNamespace(); if ((xmlType != null) && (!"##default".equals(xmlType.namespace()))) { namespace = xmlType.namespace(); } return namespace; }
/** * The namespace of the xml type element. * * @return The namespace of the xml type element. */ public String getNamespace() { String namespace = getPackage().getNamespace(); if ((xmlType != null) && (!"##default".equals(xmlType.namespace()))) { namespace = xmlType.namespace(); } return namespace; }
/** * The namespace of the xml type element. * * @return The namespace of the xml type element. */ public String getNamespace() { String namespace = getPackage().getNamespace(); if ((xmlType != null) && (!"##default".equals(xmlType.namespace()))) { namespace = xmlType.namespace(); } return namespace; }
private static String getNamespaceUri(final Class<?> boundClass) { final XmlRootElement elementAnnotation = boundClass.getAnnotation(XmlRootElement.class); if (elementAnnotation != null && !"##default".equals(elementAnnotation.namespace())) { return elementAnnotation.namespace(); } else { final XmlType xmlTypeAnnotation = boundClass.getAnnotation(XmlType.class); if (xmlTypeAnnotation != null && !"##default".equals(xmlTypeAnnotation.namespace())) { return xmlTypeAnnotation.namespace(); } else { return getNamespaceUri(boundClass.getPackage()); } } }
private String determineNamespaceUncached(Class<?> beanClass) { XmlType xmlType = beanClass.getAnnotation(XmlType.class); if (xmlType == null) { return null; } String namespace = xmlType.namespace(); if (BeanMarshaller.DEFAULT_PLACEHOLDER.equals(namespace)) { XmlSchema xmlSchema = beanClass.getPackage().getAnnotation(XmlSchema.class); namespace = xmlSchema.namespace(); } if (StringUtils.isBlank(namespace) || BeanMarshaller.DEFAULT_PLACEHOLDER.equals(namespace)) { return null; } return namespace; }
protected QName getJaxbQName(Class<?> cls, Type type, Object object, boolean pluralName) throws Exception { if (cls == JAXBElement.class) { return object != null ? ((JAXBElement<?>)object).getName() : null; } XmlRootElement root = cls.getAnnotation(XmlRootElement.class); if (root != null) { return getQNameFromNamespaceAndName(root.namespace(), root.name(), cls, pluralName); } else if (isXmlType(cls)) { XmlType xmlType = cls.getAnnotation(XmlType.class); return getQNameFromNamespaceAndName(xmlType.namespace(), xmlType.name(), cls, pluralName); } else { return new QName(getPackageNamespace(cls), cls.getSimpleName()); } }
protected QName getJaxbQName(Class<?> cls, Type type, Object object, boolean pluralName) throws Exception { if (cls == JAXBElement.class) { return object != null ? ((JAXBElement<?>)object).getName() : null; } XmlRootElement root = cls.getAnnotation(XmlRootElement.class); if (root != null) { return getQNameFromNamespaceAndName(root.namespace(), root.name(), cls, pluralName); } else if (isXmlType(cls)) { XmlType xmlType = cls.getAnnotation(XmlType.class); return getQNameFromNamespaceAndName(xmlType.namespace(), xmlType.name(), cls, pluralName); } else { return new QName(getPackageNamespace(cls), cls.getSimpleName()); } }