本文整理了Java中org.apache.axiom.om.OMAttribute.getAttributeType()
方法的一些代码示例,展示了OMAttribute.getAttributeType()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OMAttribute.getAttributeType()
方法的具体详情如下:
包路径:org.apache.axiom.om.OMAttribute
类名称: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());
内容来源于网络,如有侵权,请联系作者删除!