本文整理了Java中org.apache.ws.commons.schema.XmlSchemaObject.getMetaInfoMap()
方法的一些代码示例,展示了XmlSchemaObject.getMetaInfoMap()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlSchemaObject.getMetaInfoMap()
方法的具体详情如下:
包路径:org.apache.ws.commons.schema.XmlSchemaObject
类名称:XmlSchemaObject
方法名:getMetaInfoMap
[英]returns the metainfo map. may be null if not utilized
[中]返回元信息映射。如果未使用,则可能为空
代码示例来源:origin: apache/cxf
public void serialize(XmlSchemaObject schemaObject,
@SuppressWarnings("rawtypes") Class classOfType, Node domNode) {
Map<Object, Object> metaInfoMap = schemaObject.getMetaInfoMap();
MimeAttribute mimeType = (MimeAttribute)metaInfoMap.get(MimeAttribute.MIME_QNAME);
Element elt = (Element)domNode;
Attr att1 = elt.getOwnerDocument().createAttributeNS(MimeAttribute.MIME_QNAME.getNamespaceURI(),
MimeAttribute.MIME_QNAME.getLocalPart());
att1.setValue(mimeType.getValue());
elt.setAttributeNodeNS(att1);
}
代码示例来源:origin: org.apache.cxf/cxf-core
public void serialize(XmlSchemaObject schemaObject,
@SuppressWarnings("rawtypes") Class classOfType, Node domNode) {
Map<Object, Object> metaInfoMap = schemaObject.getMetaInfoMap();
MimeAttribute mimeType = (MimeAttribute)metaInfoMap.get(MimeAttribute.MIME_QNAME);
Element elt = (Element)domNode;
Attr att1 = elt.getOwnerDocument().createAttributeNS(MimeAttribute.MIME_QNAME.getNamespaceURI(),
MimeAttribute.MIME_QNAME.getLocalPart());
att1.setValue(mimeType.getValue());
elt.setAttributeNodeNS(att1);
}
代码示例来源:origin: org.apache.cxf/cxf-rt-core
public void serialize(XmlSchemaObject schemaObject,
@SuppressWarnings("rawtypes") Class classOfType, Node domNode) {
Map<Object, Object> metaInfoMap = schemaObject.getMetaInfoMap();
MimeAttribute mimeType = (MimeAttribute)metaInfoMap.get(MimeAttribute.MIME_QNAME);
Element elt = (Element)domNode;
Attr att1 = elt.getOwnerDocument().createAttributeNS(MimeAttribute.MIME_QNAME.getNamespaceURI(),
MimeAttribute.MIME_QNAME.getLocalPart());
att1.setValue(mimeType.getValue());
elt.setAttributeNodeNS(att1);
}
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
public void serialize(XmlSchemaObject schemaObject,
@SuppressWarnings("rawtypes") Class classOfType, Node domNode) {
Map<Object, Object> metaInfoMap = schemaObject.getMetaInfoMap();
MimeAttribute mimeType = (MimeAttribute)metaInfoMap.get(MimeAttribute.MIME_QNAME);
Element elt = (Element)domNode;
Attr att1 = elt.getOwnerDocument().createAttributeNS(MimeAttribute.MIME_QNAME.getNamespaceURI(),
MimeAttribute.MIME_QNAME.getLocalPart());
att1.setValue(mimeType.getValue());
elt.setAttributeNodeNS(att1);
}
代码示例来源:origin: org.apache.ws.schema/XmlSchema
/**
* A generic method to process the extra attributes and the extra
* elements present within the schema.
* What are considered extensions are child elements with non schema namespace
* and child attributes with any namespace.
* @param schemaObject
* @param parentElement
*/
private void processExtensibilityComponents(XmlSchemaObject schemaObject, Element parentElement) {
if (extReg!=null){
Map metaInfoMap = schemaObject.getMetaInfoMap();
if (metaInfoMap!=null && !metaInfoMap.isEmpty()) {
//get the extra objects and call the respective deserializers
Iterator keysIt = metaInfoMap.keySet().iterator();
while (keysIt.hasNext()) {
Object key = keysIt.next();
extReg.serializeExtension(schemaObject,metaInfoMap.get(key).getClass(),parentElement);
}
}
}
}
代码示例来源:origin: org.apache.ws.commons.schema/XmlSchema
/**
* A generic method to process the extra attributes and the extra
* elements present within the schema.
* What are considered extensions are child elements with non schema namespace
* and child attributes with any namespace.
* @param schemaObject
* @param parentElement
*/
private void processExtensibilityComponents(XmlSchemaObject schemaObject, Element parentElement) {
if (extReg!=null){
Map metaInfoMap = schemaObject.getMetaInfoMap();
if (metaInfoMap!=null && !metaInfoMap.isEmpty()) {
//get the extra objects and call the respective deserializers
Iterator keysIt = metaInfoMap.keySet().iterator();
while (keysIt.hasNext()) {
Object key = keysIt.next();
extReg.serializeExtension(schemaObject,metaInfoMap.get(key).getClass(),parentElement);
}
}
}
}
代码示例来源:origin: org.apache.ws/com.springsource.org.apache.ws.commons.schema
/**
* A generic method to process the extra attributes and the the extra
* elements present within the schema.
* What are considered extensions are child elements with non schema namespace
* and child attributes with any namespace
* @param schemaObject
* @param parentElement
*/
private void processExtensibilityComponents(XmlSchemaObject schemaObject,Element parentElement){
if (extReg!=null){
Map metaInfoMap = schemaObject.getMetaInfoMap();
if (metaInfoMap!=null && !metaInfoMap.isEmpty()) {
//get the extra objects and call the respective deserializers
Iterator keysIt = metaInfoMap.keySet().iterator();
while (keysIt.hasNext()) {
Object key = keysIt.next();
extReg.serializeExtension(schemaObject,metaInfoMap.get(key).getClass(),parentElement);
}
}
}
}
代码示例来源:origin: org.apache.ws.schema/XmlSchema
Map metaInfoMap = schemaObject.getMetaInfoMap();
Document parentDoc = node.getOwnerDocument();
if (metaInfoMap.containsKey(Constants.MetaDataConstants.EXTERNAL_ATTRIBUTES)){
代码示例来源:origin: org.apache.ws.commons.schema/XmlSchema
Map metaInfoMap = schemaObject.getMetaInfoMap();
Document parentDoc = node.getOwnerDocument();
if (metaInfoMap.containsKey(Constants.MetaDataConstants.EXTERNAL_ATTRIBUTES)){
代码示例来源:origin: org.apache.ws/com.springsource.org.apache.ws.commons.schema
Map metaInfoMap = schemaObject.getMetaInfoMap();
Document parentDoc = node.getOwnerDocument();
if (metaInfoMap.containsKey(Constants.MetaDataConstants.EXTERNAL_ATTRIBUTES)){
代码示例来源:origin: org.apache.ws.commons.schema/XmlSchema
Map metaInfoMap = schemaObject.getMetaInfoMap();
if (metaInfoMap==null){
metaInfoMap = new HashMap();
Map metaInfoMapFromSchemaElement = schemaObject.getMetaInfoMap();
if (metaInfoMapFromSchemaElement==null){
schemaObject.setMetaInfoMap(metaInfoMap);
代码示例来源:origin: org.apache.ws.schema/XmlSchema
Map metaInfoMap = schemaObject.getMetaInfoMap();
if (metaInfoMap==null){
metaInfoMap = new HashMap();
Map metaInfoMapFromSchemaElement = schemaObject.getMetaInfoMap();
if (metaInfoMapFromSchemaElement==null){
schemaObject.setMetaInfoMap(metaInfoMap);
代码示例来源:origin: org.apache.ws/com.springsource.org.apache.ws.commons.schema
Map metaInfoMapFromSchemaElement = schemaObject.getMetaInfoMap();
if (metaInfoMapFromSchemaElement==null){
schemaObject.setMetaInfoMap(metaInfoMap);
代码示例来源:origin: apache/cxf
Map<Object, Object> metaInfoMap = schemaObject.getMetaInfoMap();
if (metaInfoMap != null) {
Map<?, ?> attribMap = (Map<?, ?>)metaInfoMap.get(Constants.MetaDataConstants.EXTERNAL_ATTRIBUTES);
内容来源于网络,如有侵权,请联系作者删除!