@Override public void addToSchemaElement(XmlSchemaElement schemaElement) { if (expectedContentTypes != null) { Map<String, Node> extAttrMap = new HashMap<>(); Attr theAttr = DOMUtils.getEmptyDocument().createAttributeNS(XML_MIME_NS, "xmime"); theAttr.setNodeValue(expectedContentTypes); extAttrMap.put("xmime", theAttr); schemaElement.addMetaInfo(Constants.MetaDataConstants.EXTERNAL_ATTRIBUTES, extAttrMap); } }
@Override public void addToSchemaElement(XmlSchemaElement schemaElement) { if (expectedContentTypes != null) { Map<String, Node> extAttrMap = new HashMap<>(); Attr theAttr = DOMUtils.getEmptyDocument().createAttributeNS(XML_MIME_NS, "xmime"); theAttr.setNodeValue(expectedContentTypes); extAttrMap.put("xmime", theAttr); schemaElement.addMetaInfo(Constants.MetaDataConstants.EXTERNAL_ATTRIBUTES, extAttrMap); } }
private void addMimeType(final XmlSchemaElement element, final Annotation[] annotations) { if (annotations != null) { for (Annotation annotation : annotations) { if (annotation instanceof XmlMimeType) { MimeAttribute attr = new MimeAttribute(); attr.setValue(((XmlMimeType)annotation).value()); element.addMetaInfo(MimeAttribute.MIME_QNAME, attr); } } } }
private void addMimeType(final XmlSchemaElement element, final Annotation[] annotations) { if (annotations != null) { for (Annotation annotation : annotations) { if (annotation instanceof XmlMimeType) { MimeAttribute attr = new MimeAttribute(); attr.setValue(((XmlMimeType)annotation).value()); element.addMetaInfo(MimeAttribute.MIME_QNAME, attr); } } } }
private void addMimeType(final XmlSchemaElement element, final Annotation[] annotations) { if (annotations != null) { for (Annotation annotation : annotations) { if (annotation instanceof XmlMimeType) { MimeAttribute attr = new MimeAttribute(); attr.setValue(((XmlMimeType)annotation).value()); element.addMetaInfo(MimeAttribute.MIME_QNAME, attr); } } } }
xsElt.addMetaInfo(SchemaConstants.SchemaCompilerInfoHolder.CLASSNAME_KEY, className); xsElt.addMetaInfo( SchemaConstants.SchemaCompilerInfoHolder.CLASSNAME_KEY, className); xsElt.addMetaInfo( SchemaConstants.SchemaCompilerInfoHolder.CLASSNAME_KEY, className); referencedElement.addMetaInfo(SchemaConstants.SchemaCompilerInfoHolder. CLASSNAME_KEY, javaClassName); xsElt.addMetaInfo(SchemaConstants.SchemaCompilerInfoHolder.CLASSNAME_KEY, javaClassName); referencedElement.addMetaInfo(SchemaConstants.SchemaCompilerInfoHolder.CLASSNAME_KEY, javaClassName); xsElt.addMetaInfo(SchemaConstants.SchemaCompilerInfoHolder.CLASSNAME_KEY, javaClassName); } else if (referencedElement.getSchemaTypeName() != null) { referencedElement.addMetaInfo(SchemaConstants.SchemaCompilerInfoHolder. CLASSNAME_KEY, javaClassName); xsElt.addMetaInfo(SchemaConstants.SchemaCompilerInfoHolder.CLASSNAME_KEY, javaClassName); } else {
xsElt.addMetaInfo(SchemaConstants.SchemaCompilerInfoHolder.CLASSNAME_KEY, className); xsElt.addMetaInfo( SchemaConstants.SchemaCompilerInfoHolder.CLASSNAME_KEY, className); xsElt.addMetaInfo( SchemaConstants.SchemaCompilerInfoHolder.CLASSNAME_KEY, className); referencedElement.addMetaInfo(SchemaConstants.SchemaCompilerInfoHolder. CLASSNAME_KEY, javaClassName); xsElt.addMetaInfo(SchemaConstants.SchemaCompilerInfoHolder.CLASSNAME_KEY, javaClassName); referencedElement.addMetaInfo(SchemaConstants.SchemaCompilerInfoHolder.CLASSNAME_KEY, javaClassName); xsElt.addMetaInfo(SchemaConstants.SchemaCompilerInfoHolder.CLASSNAME_KEY, javaClassName); } else if (referencedElement.getSchemaTypeName() != null) { referencedElement.addMetaInfo(SchemaConstants.SchemaCompilerInfoHolder. CLASSNAME_KEY, javaClassName); xsElt.addMetaInfo(SchemaConstants.SchemaCompilerInfoHolder.CLASSNAME_KEY, javaClassName); } else {
xsElt.addMetaInfo(SchemaConstants.SchemaCompilerInfoHolder.CLASSNAME_KEY, writtenClassName); processedElementMap.put(xsElt.getQName(), writtenClassName);
xsElt.addMetaInfo(SchemaConstants.SchemaCompilerInfoHolder.CLASSNAME_KEY, writtenClassName); processedElementMap.put(xsElt.getQName(), writtenClassName);