/** * Exclude a series of namespaces given by a list of whitespace * separated namespace prefixes. */ public void excludeNamespaces(String prefixes) { if (prefixes != null) { StringTokenizer tokens = new StringTokenizer(prefixes); while (tokens.hasMoreTokens()) { final String prefix = tokens.nextToken(); final String uri; if (prefix.equals("#default")) uri = lookupNamespace(Constants.EMPTYSTRING); else uri = lookupNamespace(prefix); if (uri != null) excludeURI(uri); } } }
/** * Turn of namespace declaration exclusion */ public void unExcludeNamespaces(String prefixes) { if (_excludedURI == null) return; if (prefixes != null) { StringTokenizer tokens = new StringTokenizer(prefixes); while (tokens.hasMoreTokens()) { final String prefix = tokens.nextToken(); final String uri; if (prefix.equals("#default")) uri = lookupNamespace(Constants.EMPTYSTRING); else uri = lookupNamespace(prefix); Integer refcnt = (Integer)_excludedURI.get(uri); if (refcnt != null) _excludedURI.put(uri, new Integer(refcnt.intValue() - 1)); } } }
public QName getQNameSafe(final String stringRep) { // parse and retrieve namespace final int colon = stringRep.lastIndexOf(':'); if (colon != -1) { final String prefix = stringRep.substring(0, colon); final String localname = stringRep.substring(colon + 1); String namespace = null; // Get the namespace uri from the symbol table if (prefix.equals(XMLNS_PREFIX) == false) { namespace = _symbolTable.lookupNamespace(prefix); if (namespace == null) namespace = EMPTYSTRING; } return getQName(namespace, prefix, localname); } else { final String uri = stringRep.equals(XMLNS_PREFIX) ? null : _symbolTable.lookupNamespace(EMPTYSTRING); return getQName(uri, null, stringRep); } }
namespace = _symbolTable.lookupNamespace(prefix); if (namespace == null && reportError) { final int line = getLineNumber(); : _symbolTable.lookupNamespace(EMPTYSTRING); return getQName(defURI, null, stringRep);
namespace = parser._symbolTable.lookupNamespace(prefix);
/** * Exclude a series of namespaces given by a list of whitespace * separated namespace prefixes. */ public void excludeNamespaces(String prefixes) { if (prefixes != null) { StringTokenizer tokens = new StringTokenizer(prefixes); while (tokens.hasMoreTokens()) { final String prefix = tokens.nextToken(); final String uri; if (prefix.equals("#default")) uri = lookupNamespace(Constants.EMPTYSTRING); else uri = lookupNamespace(prefix); if (uri != null) excludeURI(uri); } } }
/** * Exclude a series of namespaces given by a list of whitespace * separated namespace prefixes. */ public void excludeNamespaces(String prefixes) { if (prefixes != null) { StringTokenizer tokens = new StringTokenizer(prefixes); while (tokens.hasMoreTokens()) { final String prefix = tokens.nextToken(); final String uri; if (prefix.equals("#default")) uri = lookupNamespace(Constants.EMPTYSTRING); else uri = lookupNamespace(prefix); if (uri != null) excludeURI(uri); } } }
/** * Turn of namespace declaration exclusion */ public void unExcludeNamespaces(String prefixes) { if (_excludedURI == null) return; if (prefixes != null) { StringTokenizer tokens = new StringTokenizer(prefixes); while (tokens.hasMoreTokens()) { final String prefix = tokens.nextToken(); final String uri; if (prefix.equals("#default")) uri = lookupNamespace(Constants.EMPTYSTRING); else uri = lookupNamespace(prefix); Integer refcnt = (Integer)_excludedURI.get(uri); if (refcnt != null) _excludedURI.put(uri, new Integer(refcnt.intValue() - 1)); } } }
/** * Turn of namespace declaration exclusion */ public void unExcludeNamespaces(String prefixes) { if (_excludedURI == null) return; if (prefixes != null) { StringTokenizer tokens = new StringTokenizer(prefixes); while (tokens.hasMoreTokens()) { final String prefix = tokens.nextToken(); final String uri; if (prefix.equals("#default")) uri = lookupNamespace(Constants.EMPTYSTRING); else uri = lookupNamespace(prefix); Integer refcnt = (Integer)_excludedURI.get(uri); if (refcnt != null) _excludedURI.put(uri, new Integer(refcnt.intValue() - 1)); } } }
/** * Turn of namespace declaration exclusion */ public void unExcludeNamespaces(String prefixes) { if (_excludedURI == null) return; if (prefixes != null) { StringTokenizer tokens = new StringTokenizer(prefixes); while (tokens.hasMoreTokens()) { final String prefix = tokens.nextToken(); final String uri; if (prefix.equals("#default")) uri = lookupNamespace(Constants.EMPTYSTRING); else uri = lookupNamespace(prefix); Integer refcnt = (Integer)_excludedURI.get(uri); if (refcnt != null) _excludedURI.put(uri, new Integer(refcnt.intValue() - 1)); } } }
/** * Exclude a series of namespaces given by a list of whitespace * separated namespace prefixes. */ public void excludeNamespaces(String prefixes) { if (prefixes != null) { StringTokenizer tokens = new StringTokenizer(prefixes); while (tokens.hasMoreTokens()) { final String prefix = tokens.nextToken(); final String uri; if (prefix.equals("#default")) uri = lookupNamespace(Constants.EMPTYSTRING); else uri = lookupNamespace(prefix); if (uri != null) excludeURI(uri); } } }
public QName getQNameSafe(final String stringRep) { // parse and retrieve namespace final int colon = stringRep.lastIndexOf(':'); if (colon != -1) { final String prefix = stringRep.substring(0, colon); final String localname = stringRep.substring(colon + 1); String namespace = null; // Get the namespace uri from the symbol table if (prefix.equals(XMLNS_PREFIX) == false) { namespace = _symbolTable.lookupNamespace(prefix); if (namespace == null) namespace = EMPTYSTRING; } return getQName(namespace, prefix, localname); } else { final String uri = stringRep.equals(XMLNS_PREFIX) ? null : _symbolTable.lookupNamespace(EMPTYSTRING); return getQName(uri, null, stringRep); } }
public QName getQNameSafe(final String stringRep) { // parse and retrieve namespace final int colon = stringRep.lastIndexOf(':'); if (colon != -1) { final String prefix = stringRep.substring(0, colon); final String localname = stringRep.substring(colon + 1); String namespace = null; // Get the namespace uri from the symbol table if (prefix.equals(XMLNS_PREFIX) == false) { namespace = _symbolTable.lookupNamespace(prefix); if (namespace == null) namespace = EMPTYSTRING; } return getQName(namespace, prefix, localname); } else { final String uri = stringRep.equals(XMLNS_PREFIX) ? null : _symbolTable.lookupNamespace(EMPTYSTRING); return getQName(uri, null, stringRep); } }
public QName getQNameSafe(final String stringRep) { // parse and retrieve namespace final int colon = stringRep.lastIndexOf(':'); if (colon != -1) { final String prefix = stringRep.substring(0, colon); final String localname = stringRep.substring(colon + 1); String namespace = null; // Get the namespace uri from the symbol table if (prefix.equals(XMLNS_PREFIX) == false) { namespace = _symbolTable.lookupNamespace(prefix); if (namespace == null) namespace = EMPTYSTRING; } return getQName(namespace, prefix, localname); } else { final String uri = stringRep.equals(XMLNS_PREFIX) ? null : _symbolTable.lookupNamespace(EMPTYSTRING); return getQName(uri, null, stringRep); } }
namespace = _symbolTable.lookupNamespace(prefix); if (namespace == null && reportError) { final int line = getLineNumber(); : _symbolTable.lookupNamespace(EMPTYSTRING); return getQName(defURI, null, stringRep);
namespace = _symbolTable.lookupNamespace(prefix); if (namespace == null && reportError) { final int line = getLineNumber(); : _symbolTable.lookupNamespace(EMPTYSTRING); return getQName(defURI, null, stringRep);
namespace = _symbolTable.lookupNamespace(prefix); if (namespace == null && reportError) { final int line = getLineNumber(); : _symbolTable.lookupNamespace(EMPTYSTRING); return getQName(defURI, null, stringRep);
namespace = parser._symbolTable.lookupNamespace(prefix);
namespace = parser._symbolTable.lookupNamespace(prefix);
namespace = parser._symbolTable.lookupNamespace(prefix);