Methods Summary |
---|
public boolean | eqname(char[] qname)Compares two qualified names.
char len = (char)chars.length;
if (len == qname.length) {
for (char i = 0; i < len; i += 1) {
if (chars[i] != qname[i])
return false;
}
return true;
}
return false;
|
public boolean | eqpref(char[] qname)Compares two qualified name prefixes.
if (chars[0] == qname[0]) {
char len = chars[0];
for (char i = 1; i < len; i += 1) {
if (chars[i] != qname[i])
return false;
}
return true;
}
return false;
|
public java.lang.String | local()Creates a local name string from qualified name.
if (chars[0] != 0) {
return new String(chars, chars[0] + 1, chars.length - chars[0] - 1);
}
return new String(chars, 1, chars.length - 1);
|
public java.lang.String | pref()Creates a prefix string from qualified name.
if (chars[0] != 0) {
return new String(chars, 1, chars[0] - 1);
}
return "";
|
public java.lang.String | qname()Creates a qualified name string from qualified name.
return new String(chars, 1, chars.length - 1);
|