📄 attributewriter.java
字号:
package org.codehaus.xfire.aegis.jdom;import javax.xml.namespace.QName;import org.codehaus.xfire.aegis.AbstractMessageWriter;import org.codehaus.xfire.aegis.MessageWriter;import org.jdom.Attribute;public class AttributeWriter extends AbstractMessageWriter{ private Attribute att; public AttributeWriter(Attribute att) { this.att = att; } public void writeValue(Object value) { att.setValue(value.toString()); } public MessageWriter getAttributeWriter(String name) { throw new IllegalStateException(); } public MessageWriter getAttributeWriter(String name, String namespace) { throw new IllegalStateException(); } public MessageWriter getAttributeWriter(QName qname) { throw new IllegalStateException(); } public MessageWriter getElementWriter(String name) { throw new IllegalStateException(); } public MessageWriter getElementWriter(String name, String namespace) { throw new IllegalStateException(); } public MessageWriter getElementWriter(QName qname) { throw new IllegalStateException(); } public String getPrefixForNamespace( String namespace ) { throw new IllegalStateException(); } public String getPrefixForNamespace(String namespace, String hint) { throw new IllegalStateException(); } public void close() { }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -