本文整理了Java中org.dom4j.Attribute.getQualifiedName()
方法的一些代码示例,展示了Attribute.getQualifiedName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Attribute.getQualifiedName()
方法的具体详情如下:
包路径:org.dom4j.Attribute
类名称:Attribute
方法名:getQualifiedName
[英]Returns the fully qualified name of this element. This will be the same as the value returned from Node#getName()if this element has no namespace attached to this element or an expression of the form
getNamespacePrefix() + ":" + getName()
will be returned.
[中]返回此元素的完全限定名。如果此元素没有附加到该元素的命名空间,或者将返回形式为
getNamespacePrefix() + ":" + getName()
的表达式,则该值将与从节点#getName()返回的值相同。
代码示例来源:origin: jaxen/jaxen
public String getAttributeQName(Object obj)
{
Attribute attr = (Attribute) obj;
return attr.getQualifiedName();
}
代码示例来源:origin: igniterealtime/Openfire
protected void writeAttribute(Attribute attribute) throws IOException {
writer.write(" ");
writer.write(attribute.getQualifiedName());
writer.write("=");
char quote = format.getAttributeQuoteCharacter();
writer.write(quote);
writeEscapeAttributeEntities(attribute.getValue());
writer.write(quote);
lastOutputNodeType = Node.ATTRIBUTE_NODE;
}
代码示例来源:origin: com.thoughtworks.xstream/xstream
public String getAttributeName(int index) {
return decodeAttribute(currentElement.attribute(index).getQualifiedName());
}
代码示例来源:origin: igniterealtime/Openfire
char quote = format.getAttributeQuoteCharacter();
writer.write(" ");
writer.write(attribute.getQualifiedName());
writer.write("=");
writer.write(quote);
代码示例来源:origin: org.dom4j/dom4j
public String getAttributeRawName(int index) {
if (element != null) {
Attribute attribute = element.attribute(index);
if (attribute != null) {
return attribute.getQualifiedName();
}
}
return null;
}
代码示例来源:origin: org.dom4j/dom4j
public String getAttributeValueFromRawName(String rawName) {
if (element != null) {
for (Iterator<Attribute> iter = element.attributeIterator(); iter.hasNext();) {
Attribute attribute = iter.next();
if (rawName.equals(attribute.getQualifiedName())) {
return attribute.getValue();
}
}
}
return null;
}
代码示例来源:origin: org.dom4j/dom4j
protected void writeAttribute(Attribute attribute) throws IOException {
writer.write(" ");
writer.write(attribute.getQualifiedName());
writer.write("=");
char quote = format.getAttributeQuoteCharacter();
writer.write(quote);
writeEscapeAttributeEntities(attribute.getValue());
writer.write(quote);
lastOutputNodeType = Node.ATTRIBUTE_NODE;
}
代码示例来源:origin: org.dom4j/dom4j
protected Attributes createAttributes(Element element,
Attributes namespaceAttributes) throws SAXException {
attributes.clear();
if (namespaceAttributes != null) {
attributes.setAttributes(namespaceAttributes);
}
for (Iterator<Attribute> iter = element.attributeIterator(); iter.hasNext();) {
Attribute attribute = iter.next();
attributes.addAttribute(attribute.getNamespaceURI(), attribute
.getName(), attribute.getQualifiedName(), "CDATA",
attribute.getValue());
}
return attributes;
}
代码示例来源:origin: org.dom4j/dom4j
char quote = format.getAttributeQuoteCharacter();
writer.write(" ");
writer.write(attribute.getQualifiedName());
writer.write("=");
writer.write(quote);
代码示例来源:origin: webx/citrus
schemaLocation = attr.getText();
} else {
otherAttrs.put(attr.getQualifiedName(), attr);
代码示例来源:origin: webx/citrus
String name = ((Attribute) attr).getQualifiedName();
String value = ((Attribute) attr).getValue();
代码示例来源:origin: webx/citrus
schemaLocation = attr.getText();
} else {
otherAttrs.put(attr.getQualifiedName(), attr);
代码示例来源:origin: webx/citrus
schemaLocation = attr.getText();
} else {
otherAttrs.put(attr.getQualifiedName(), attr);
代码示例来源:origin: webx/citrus
String name = ((Attribute) attr).getQualifiedName();
String value = ((Attribute) attr).getValue();
代码示例来源:origin: org.dom4j/dom4j
String attName = attribute.getQualifiedName();
String value = attribute.getValue();
domElement.setAttributeNS(attUri, attName, value);
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j
public String getAttributeRawName(int index) {
if (element != null) {
Attribute attribute = element.attribute(index);
if (attribute != null) {
return attribute.getQualifiedName();
}
}
return null;
}
代码示例来源:origin: org.dom4j/com.springsource.org.dom4j
public String getAttributeRawName(int index) {
if (element != null) {
Attribute attribute = element.attribute(index);
if (attribute != null) {
return attribute.getQualifiedName();
}
}
return null;
}
代码示例来源:origin: dom4j/dom4j
public String getAttributeValueFromRawName(String rawName) {
if (element != null) {
for (Iterator<Attribute> iter = element.attributeIterator(); iter.hasNext();) {
Attribute attribute = iter.next();
if (rawName.equals(attribute.getQualifiedName())) {
return attribute.getValue();
}
}
}
return null;
}
代码示例来源:origin: dom4j/dom4j
protected void writeAttribute(Attribute attribute) throws IOException {
writer.write(" ");
writer.write(attribute.getQualifiedName());
writer.write("=");
char quote = format.getAttributeQuoteCharacter();
writer.write(quote);
writeEscapeAttributeEntities(attribute.getValue());
writer.write(quote);
lastOutputNodeType = Node.ATTRIBUTE_NODE;
}
代码示例来源:origin: org.dom4j/com.springsource.org.dom4j
protected void writeAttribute(Attribute attribute) throws IOException {
writer.write(" ");
writer.write(attribute.getQualifiedName());
writer.write("=");
char quote = format.getAttributeQuoteCharacter();
writer.write(quote);
writeEscapeAttributeEntities(attribute.getValue());
writer.write(quote);
lastOutputNodeType = Node.ATTRIBUTE_NODE;
}
内容来源于网络,如有侵权,请联系作者删除!