QName.java
833 Bytes
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
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.internal.xmp.impl;
public class QName {
private String prefix;
private String localName;
public QName(String qname) {
int colon = qname.indexOf(58);
if (colon >= 0) {
this.prefix = qname.substring(0, colon);
this.localName = qname.substring(colon + 1);
} else {
this.prefix = "";
this.localName = qname;
}
}
public QName(String prefix, String localName) {
this.prefix = prefix;
this.localName = localName;
}
public boolean hasPrefix() {
return this.prefix != null && this.prefix.length() > 0;
}
public String getLocalName() {
return this.localName;
}
public String getPrefix() {
return this.prefix;
}
}