127 lines
3.3 KiB
Java
127 lines
3.3 KiB
Java
package org.simpleframework.xml.stream;
|
|
|
|
/* loaded from: classes.dex */
|
|
class OutputAttribute implements OutputNode {
|
|
private String name;
|
|
private String reference;
|
|
private NamespaceMap scope;
|
|
private OutputNode source;
|
|
private String value;
|
|
|
|
@Override // org.simpleframework.xml.stream.OutputNode
|
|
public void commit() {
|
|
}
|
|
|
|
@Override // org.simpleframework.xml.stream.OutputNode
|
|
public OutputNode getChild(String str) {
|
|
return null;
|
|
}
|
|
|
|
@Override // org.simpleframework.xml.stream.OutputNode
|
|
public String getComment() {
|
|
return null;
|
|
}
|
|
|
|
@Override // org.simpleframework.xml.stream.OutputNode
|
|
public boolean isCommitted() {
|
|
return true;
|
|
}
|
|
|
|
@Override // org.simpleframework.xml.stream.OutputNode
|
|
public boolean isRoot() {
|
|
return false;
|
|
}
|
|
|
|
@Override // org.simpleframework.xml.stream.OutputNode
|
|
public void remove() {
|
|
}
|
|
|
|
@Override // org.simpleframework.xml.stream.OutputNode
|
|
public OutputNode setAttribute(String str, String str2) {
|
|
return null;
|
|
}
|
|
|
|
@Override // org.simpleframework.xml.stream.OutputNode
|
|
public void setComment(String str) {
|
|
}
|
|
|
|
@Override // org.simpleframework.xml.stream.OutputNode
|
|
public void setData(boolean z) {
|
|
}
|
|
|
|
@Override // org.simpleframework.xml.stream.OutputNode
|
|
public void setMode(Mode mode) {
|
|
}
|
|
|
|
public OutputAttribute(OutputNode outputNode, String str, String str2) {
|
|
this.scope = outputNode.getNamespaces();
|
|
this.source = outputNode;
|
|
this.value = str2;
|
|
this.name = str;
|
|
}
|
|
|
|
@Override // org.simpleframework.xml.stream.OutputNode
|
|
public NodeMap<OutputNode> getAttributes() {
|
|
return new OutputNodeMap(this);
|
|
}
|
|
|
|
@Override // org.simpleframework.xml.stream.OutputNode
|
|
public Mode getMode() {
|
|
return Mode.INHERIT;
|
|
}
|
|
|
|
@Override // org.simpleframework.xml.stream.OutputNode
|
|
public String getPrefix() {
|
|
return this.scope.getPrefix(this.reference);
|
|
}
|
|
|
|
@Override // org.simpleframework.xml.stream.OutputNode
|
|
public String getPrefix(boolean z) {
|
|
return this.scope.getPrefix(this.reference);
|
|
}
|
|
|
|
public String toString() {
|
|
return String.format("attribute %s='%s'", this.name, this.value);
|
|
}
|
|
|
|
@Override // org.simpleframework.xml.stream.OutputNode
|
|
public void setValue(String str) {
|
|
this.value = str;
|
|
}
|
|
|
|
@Override // org.simpleframework.xml.stream.OutputNode
|
|
public void setReference(String str) {
|
|
this.reference = str;
|
|
}
|
|
|
|
@Override // org.simpleframework.xml.stream.OutputNode
|
|
public void setName(String str) {
|
|
this.name = str;
|
|
}
|
|
|
|
@Override // org.simpleframework.xml.stream.Node
|
|
public String getValue() {
|
|
return this.value;
|
|
}
|
|
|
|
@Override // org.simpleframework.xml.stream.OutputNode
|
|
public String getReference() {
|
|
return this.reference;
|
|
}
|
|
|
|
@Override // org.simpleframework.xml.stream.Node
|
|
public OutputNode getParent() {
|
|
return this.source;
|
|
}
|
|
|
|
@Override // org.simpleframework.xml.stream.OutputNode
|
|
public NamespaceMap getNamespaces() {
|
|
return this.scope;
|
|
}
|
|
|
|
@Override // org.simpleframework.xml.stream.Node
|
|
public String getName() {
|
|
return this.name;
|
|
}
|
|
}
|