org.apache.woden.XMLElement.getAttributeValue()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(7.5k)|赞(0)|评价(0)|浏览(127)

本文整理了Java中org.apache.woden.XMLElement.getAttributeValue()方法的一些代码示例,展示了XMLElement.getAttributeValue()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLElement.getAttributeValue()方法的具体详情如下:
包路径:org.apache.woden.XMLElement
类名称:XMLElement
方法名:getAttributeValue

XMLElement.getAttributeValue介绍

[英]Returns the value of the specified attribute or null if it is not found.
[中]返回指定属性的值,如果找不到,则返回null。

代码示例

代码示例来源:origin: org.apache.woden/woden-impl-commons

httpHdr.setParentElement((WSDLElement)parent);
String name = extEl.getAttributeValue(Constants.ATTR_NAME);
httpHdr.setName(name);
String typeQN = extEl.getAttributeValue(Constants.ATTR_TYPE);
if(typeQN != null)
String required = extEl.getAttributeValue(Constants.ATTR_REQUIRED);
httpHdr.setRequired(new Boolean(required));

代码示例来源:origin: org.apache.woden/woden-impl-commons

private ImportElement parseImport(
    XMLElement importEl,
    DescriptionElement desc,
    Map wsdlModules) 
    throws WSDLException {
  ImportElement imp = desc.addImportElement();
  String namespaceURI = importEl.getAttributeValue(Constants.ATTR_NAMESPACE);
  String locationURI = importEl.getAttributeValue(Constants.ATTR_LOCATION);
  parseExtensionAttributes(importEl, ImportElement.class, imp, desc);
  if(namespaceURI != null) 
  {
    //TODO handle missing namespace attribute (REQUIRED attr)
    imp.setNamespace(getURI(namespaceURI));
  }
  if(locationURI != null)
  {
    //TODO handle missing locationURI (OPTIONAL attr)
    URI resolvedLocationURI = resolveURI(getURI(locationURI));
    imp.setLocation(resolvedLocationURI);
    DescriptionElement importedDesc = 
      getWSDLFromLocation(resolvedLocationURI.toString(), desc, wsdlModules);
    imp.setDescriptionElement(importedDesc);
  }
  return imp;
}

代码示例来源:origin: org.apache.woden/woden-core

private ImportElement parseImport(
    XMLElement importEl,
    DescriptionElement desc,
    Map wsdlModules) 
    throws WSDLException {
  ImportElement imp = desc.addImportElement();
  String namespaceURI = importEl.getAttributeValue(Constants.ATTR_NAMESPACE);
  String locationURI = importEl.getAttributeValue(Constants.ATTR_LOCATION);
  parseExtensionAttributes(importEl, ImportElement.class, imp, desc);
  if(namespaceURI != null) 
  {
    //TODO handle missing namespace attribute (REQUIRED attr)
    imp.setNamespace(getURI(namespaceURI));
  }
  if(locationURI != null)
  {
    //TODO handle missing locationURI (OPTIONAL attr)
    URI resolvedLocationURI = resolveURI(getURI(locationURI));
    imp.setLocation(resolvedLocationURI);
    DescriptionElement importedDesc = 
      getWSDLFromLocation(resolvedLocationURI.toString(), desc, wsdlModules);
    imp.setDescriptionElement(importedDesc);
  }
  return imp;
}

代码示例来源:origin: org.apache.woden/woden-core

httpHdr.setParentElement((WSDLElement)parent);
String name = extEl.getAttributeValue(Constants.ATTR_NAME);
httpHdr.setName(name);
String typeQN = extEl.getAttributeValue(Constants.ATTR_TYPE);
if(typeQN != null)
String required = extEl.getAttributeValue(Constants.ATTR_REQUIRED);
httpHdr.setRequired(new Boolean(required));

代码示例来源:origin: org.apache.woden/woden-impl-commons

private IncludeElement parseInclude(
    XMLElement includeEl,
    DescriptionElement desc,
    Map wsdlModules) 
    throws WSDLException {
  IncludeElement include = desc.addIncludeElement();
  String locationURI = includeEl.getAttributeValue(Constants.ATTR_LOCATION);
  parseExtensionAttributes(includeEl, IncludeElement.class, include, desc);
  if(locationURI != null)
  {
    URI resolvedLocationURI = resolveURI(getURI(locationURI));
    include.setLocation(resolvedLocationURI);
    DescriptionElement includedDesc = 
      getWSDLFromLocation(resolvedLocationURI.toString(), desc, wsdlModules);
    include.setDescriptionElement(includedDesc);
  }
  return include;
}

代码示例来源:origin: org.apache.woden/woden-core

private IncludeElement parseInclude(
    XMLElement includeEl,
    DescriptionElement desc,
    Map wsdlModules) 
    throws WSDLException {
  IncludeElement include = desc.addIncludeElement();
  String locationURI = includeEl.getAttributeValue(Constants.ATTR_LOCATION);
  parseExtensionAttributes(includeEl, IncludeElement.class, include, desc);
  if(locationURI != null)
  {
    URI resolvedLocationURI = resolveURI(getURI(locationURI));
    include.setLocation(resolvedLocationURI);
    DescriptionElement includedDesc = 
      getWSDLFromLocation(resolvedLocationURI.toString(), desc, wsdlModules);
    include.setDescriptionElement(includedDesc);
  }
  return include;
}

代码示例来源:origin: org.apache.woden/woden-core

soapMod.setParentElement((WSDLElement)parent);
String ref = el.getAttributeValue(Constants.ATTR_REF);
if(ref != null) 
String required = el.getAttributeValue(Constants.ATTR_REQUIRED);
soapMod.setRequired(new Boolean(required));

代码示例来源:origin: org.apache.woden/woden-impl-commons

soapMod.setParentElement((WSDLElement)parent);
String ref = el.getAttributeValue(Constants.ATTR_REF);
if(ref != null) 
String required = el.getAttributeValue(Constants.ATTR_REQUIRED);
soapMod.setRequired(new Boolean(required));

代码示例来源:origin: org.apache.woden/woden-impl-commons

soapHdr.setParentElement((WSDLElement)parent);
String elemDeclQN = extEl.getAttributeValue(Constants.ATTR_ELEMENT);
if(elemDeclQN != null)
String mustUnderstand = extEl.getAttributeValue(SOAPConstants.ATTR_MUSTUNDERSTAND);
soapHdr.setMustUnderstand(new Boolean(mustUnderstand));
String required = extEl.getAttributeValue(Constants.ATTR_REQUIRED);
soapHdr.setRequired(new Boolean(required));

代码示例来源:origin: org.apache.woden/woden-core

soapHdr.setParentElement((WSDLElement)parent);
String elemDeclQN = extEl.getAttributeValue(Constants.ATTR_ELEMENT);
if(elemDeclQN != null)
String mustUnderstand = extEl.getAttributeValue(SOAPConstants.ATTR_MUSTUNDERSTAND);
soapHdr.setMustUnderstand(new Boolean(mustUnderstand));
String required = extEl.getAttributeValue(Constants.ATTR_REQUIRED);
soapHdr.setRequired(new Boolean(required));

代码示例来源:origin: org.apache.woden/woden-core

String name = endpointEl.getAttributeValue(Constants.ATTR_NAME);
if(name != null)
String binding = endpointEl.getAttributeValue(Constants.ATTR_BINDING);
if(binding != null)
String address = endpointEl.getAttributeValue(Constants.ATTR_ADDRESS);

代码示例来源:origin: org.apache.woden/woden-core

String name = bindEl.getAttributeValue(Constants.ATTR_NAME);
if(name != null)
String intface = bindEl.getAttributeValue(Constants.ATTR_INTERFACE);
if(intface != null)
String type = bindEl.getAttributeValue(Constants.ATTR_TYPE);
if(type != null) {
  binding.setType(getURI(type));

代码示例来源:origin: org.apache.woden/woden-core

String name = faultEl.getAttributeValue(Constants.ATTR_NAME);
if(name != null)
String element = faultEl.getAttributeValue(Constants.ATTR_ELEMENT);
if(element != null)

代码示例来源:origin: org.apache.woden/woden-core

String name = serviceEl.getAttributeValue(Constants.ATTR_NAME);
if(name != null)
String intface = serviceEl.getAttributeValue(Constants.ATTR_INTERFACE);
if(intface != null)

代码示例来源:origin: org.apache.woden/woden-core

String msgLabel = msgRefEl.getAttributeValue(Constants.ATTR_MESSAGE_LABEL);
if(msgLabel != null)

代码示例来源:origin: org.apache.woden/woden-impl-om

schema.setXMLElement(schemaElement);
schema.setId(schemaElement.getAttributeValue(Constants.ATTR_ID));
String tns = schemaElement.getAttributeValue(Constants.ATTR_TARGET_NAMESPACE);
if(tns != null) {
  schema.setNamespace(getURI(tns));

代码示例来源:origin: org.apache.woden/woden-core

String ref = bindFaultEl.getAttributeValue(Constants.ATTR_REF);
if(ref != null)

代码示例来源:origin: org.apache.woden/woden-impl-commons

String ref = bindFaultEl.getAttributeValue(Constants.ATTR_REF);
if(ref != null)

代码示例来源:origin: org.apache.woden/woden-impl-dom

schema.setXMLElement(schemaEl);
schema.setId(schemaEl.getAttributeValue(SchemaConstants.ATTR_ID));
String tns = schemaEl.getAttributeValue(SchemaConstants.ATTR_TARGET_NAMESPACE);
if(tns != null) {
  schema.setNamespace(getURI(tns));

代码示例来源:origin: org.apache.woden/woden-core

schema.setXMLElement(schemaEl);
schema.setId(schemaEl.getAttributeValue(SchemaConstants.ATTR_ID));
String tns = schemaEl.getAttributeValue(SchemaConstants.ATTR_TARGET_NAMESPACE);
if(tns != null) {
  schema.setNamespace(getURI(tns));

相关文章