GenericAttribute.java
1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.xfa;
import com.adobe.xfa.Attribute;
public final class GenericAttribute
extends Attribute {
private final String mNS;
public GenericAttribute(String NS, String localName, String qName, String value) {
this(NS, localName, qName, value, true);
}
protected GenericAttribute(String name, String value) {
super(name, value);
this.mNS = null;
}
GenericAttribute(String NS, String localName, String qName, String value, boolean internSymbols) {
super(NS, localName, qName, value, internSymbols);
if (internSymbols && NS != null) {
NS = NS.intern();
}
this.mNS = NS;
}
@Override
public boolean isSchemaAttr() {
return false;
}
@Override
public String getNS() {
return this.mNS;
}
@Override
public Attribute newAttribute(String NS, String localName, String qName, String value) {
return this.newAttribute(NS, localName, qName, value, true);
}
@Override
public Attribute newAttribute(String NS, String localName, String qName, String value, boolean internSymbols) {
return new GenericAttribute(NS, localName, qName, value, internSymbols);
}
@Override
public Attribute newAttribute(String value) {
return this.newAttribute(this.getNS(), this.getLocalName(), this.getQName(), value, false);
}
}