/** Returns the pretty printed syntax. */ public String toSyntaxDescription(String prefix) { if (_except != null) { if (prefix.equals("")) return "<{" + _ns + "}:* -" + _except.toSyntaxDescription(" ") + ">"; else return prefix + "(" + "{" + _ns + "}:* -" + _except.toSyntaxDescription(" ") + ")"; } else if (prefix.equals("")) return "<{" + _ns + "}:*>"; else return prefix + "{" + _ns + "}:*"; }
public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof NsNameItem)) return false; NsNameItem name = (NsNameItem) o; if (!_ns.equals(name._ns)) return false; if (_except == null) return name._except == null; else return _except.equals(name._except); }
/** Returns true if the name matches. */ public boolean matches(QName name) { if (!_ns.equals(name.getNamespaceURI())) return false; else if (_except != null && _except.matches(name)) return false; else return true; }