Lines Matching refs:prefix

373     * @return the prefix of the current event, or null if the event does
374 * not have a prefix. For START_ELEMENT and END_ELEMENT, return
375 * XMLConstants.DEFAULT_NS_PREFIX when no prefix is available.
379 String prefix = fScanner.getElementQName().prefix;
380 return prefix == null ? XMLConstants.DEFAULT_NS_PREFIX : prefix;
664 //xxx: recognize SAX properties namespace, namespace-prefix to get XML Namespace declarations
728 /** Returns the prefix of this attribute at the
731 * @return the prefix of the attribute
969 /** Returns the prefix for the namespace declared at the
974 * @return returns the namespace prefix
980 String prefix = fScanner.getNamespaceContext().getDeclaredPrefixAt(index) ;
981 return prefix.equals("") ? null : prefix ;
1275 //xxx: prefix definition ?
1276 if(qname.prefix == null){
1279 return new javax.xml.namespace.QName(qname.uri, qname.localpart, qname.prefix) ;
1283 /** Return the uri for the given prefix.
1286 * <p><strong>NOTE:</strong>The 'xml' prefix is bound as defined in
1290 * <p><strong>NOTE:</strong> The 'xmlns' prefix must be resolved to following namespace
1292 * @return the uri bound to the given prefix or null if it is not bound
1293 * @param prefix The prefix to lookup, may not be null
1294 * @throws IllegalStateException - if the prefix is null
1296 public String getNamespaceURI(String prefix) {
1297 if(prefix == null) throw new java.lang.IllegalArgumentException("prefix cannot be null.") ;
1300 return fScanner.getNamespaceContext().getURI(fSymbolTable.addSymbol(prefix)) ;