org.apache.axiom.om.OMAttribute.getAttributeType()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(77)

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

OMAttribute.getAttributeType介绍

[英]Get the attribute type. For most attributes, the type is CDATA.
[中]获取属性类型。对于大多数属性,类型为[$0$]。

代码示例

代码示例来源:origin: org.apache.ws.commons.axiom/axiom-common-impl

/**
 * @param i
 * @return Returns String.
 * @see javax.xml.stream.XMLStreamReader#getAttributeType
 */
public String getAttributeType(int i) {
  String returnString = null;
  if (parser != null) {
    returnString = parser.getAttributeType(i);
  } else {
    if (isStartElement()) {
      loadAttributes();
      returnString = attributes[i].getAttributeType();
    } else {
      throw new IllegalStateException(
          "attribute type accessed in illegal event!");
    }
  }
  return returnString;
}

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

ns = attr.getNamespace();
if (ns == null) {
  processAttribute("", "", attr.getLocalName(), attr.getAttributeType(), attr.getAttributeValue());
} else {
  processAttribute(ns.getPrefix(), ns.getNamespaceURI(), attr.getLocalName(), attr.getAttributeType(), attr.getAttributeValue());

代码示例来源:origin: org.apache.ws.commons.axiom/om-aspects

ns = attr.getNamespace();
if (ns == null) {
  processAttribute("", "", attr.getLocalName(), attr.getAttributeType(), attr.getAttributeValue());
} else {
  processAttribute(ns.getPrefix(), ns.getNamespaceURI(), attr.getLocalName(), attr.getAttributeType(), attr.getAttributeValue());

相关文章