思特奇智慧酒店云平台 v0.0.5版本的 MD5 值为:dedb172bb322639d79d7e0e26262fb5c
以下内容为反编译后的 PubSubNamespace.java 源代码,内容仅作参考
package org.jivesoftware.smackx.pubsub.packet;
public enum PubSubNamespace {
basic(null),
error("errors"),
event("event"),
owner("owner");
public final String fragment;
public final String fullNamespace;
PubSubNamespace(String str) {
this.fragment = str;
if (str != null) {
this.fullNamespace = "http://jabber.org/protocol/pubsub#" + str;
return;
}
this.fullNamespace = PubSub.NAMESPACE;
}
public static PubSubNamespace valueOfFromXmlns(String str) {
int lastIndexOf = str.lastIndexOf(35);
if (lastIndexOf != -1) {
if (lastIndexOf <= str.length()) {
return valueOf(str.substring(lastIndexOf + 1));
}
throw new IllegalArgumentException(str + " is not a valid PubSub namespace");
} else if (PubSub.NAMESPACE.equals(str)) {
return basic;
} else {
throw new IllegalArgumentException(str + " is not a valid PubSub namespace");
}
}
public String getFragment() {
return this.fragment;
}
public String getXmlns() {
return this.fullNamespace;
}
}