/** * @see org.apache.xerces.xni.parser.XMLParserConfiguration#getFeature(java.lang.String) */ @Override public boolean getFeature(String featureId) throws XMLConfigurationException { return config.getFeature(featureId); }
/** * Delegates to SchemaParsingConfig.getFeature * @param featureId * @return boolean */ public boolean getFeature(String featureId){ return config.getFeature(featureId); }
/** * Reset all components before parsing. * * @throws XNIException Thrown if an error occurs during initialization. */ public void reset() throws XNIException { super.reset(); // reset state fInDTD = false; fVersion = "1.0"; fStandalone = false; // features fNamespaces = fConfiguration.getFeature(NAMESPACES); fAugmentations = null; fDeclaredAttrs = null; } // reset()
fConfiguration.getFeature (CREATE_ENTITY_REF_NODES); fConfiguration.getFeature (INCLUDE_IGNORABLE_WHITESPACE); fConfiguration.getFeature (DEFER_NODE_EXPANSION); fNamespaceAware = fConfiguration.getFeature (NAMESPACES); fIncludeComments = fConfiguration.getFeature (INCLUDE_COMMENTS_FEATURE); fCreateCDATANodes = fConfiguration.getFeature (CREATE_CDATA_NODES_FEATURE);
return (fConfiguration.getFeature (INCLUDE_COMMENTS_FEATURE)) ? Boolean.TRUE : Boolean.FALSE; return (fConfiguration.getFeature (NORMALIZE_DATA)) ? Boolean.TRUE : Boolean.FALSE; return (fConfiguration.getFeature (CREATE_ENTITY_REF_NODES)) ? Boolean.TRUE : Boolean.FALSE; return (fConfiguration.getFeature (NAMESPACES)) ? Boolean.TRUE : Boolean.FALSE; return (fConfiguration.getFeature (VALIDATION_FEATURE)) ? Boolean.TRUE : Boolean.FALSE; return (fConfiguration.getFeature (DYNAMIC_VALIDATION)) ? Boolean.TRUE : Boolean.FALSE; return (fConfiguration.getFeature (INCLUDE_IGNORABLE_WHITESPACE)) ? Boolean.TRUE : Boolean.FALSE; return (fConfiguration.getFeature (DISALLOW_DOCTYPE_DECL_FEATURE))
/** * Resets the parser state. * * @throws SAXException Thrown on initialization error. */ public void reset () { super.reset(); // get state of namespace-declarations parameter. fNamespaceDeclarations = fConfiguration.getFeature(Constants.DOM_NAMESPACE_DECLARATIONS); // DOM Filter if (fNullFilterInUse) { fDOMFilter = null; fNullFilterInUse = false; } if (fSkippedElemStack != null) { fSkippedElemStack.removeAllElements(); } fRejectedElementDepth = 0; fFilterReject = false; fSchemaType = null; } // reset()
normalizedName = name.toLowerCase(Locale.ENGLISH); fConfiguration.getFeature(normalizedName); return true;
return fConfiguration.getFeature(featureId);
/** * Query the state of a feature. * <p> * Query the current state of any feature in a SAX2 parser. The parser might not recognize the * feature. * * @param featureId The unique identifier (URI) of the feature being set. * @return The current state of the feature. * @throws org.xml.sax.SAXNotRecognizedException If the requested feature is not known. * @throws SAXNotSupportedException If the requested feature is known but not supported. */ public boolean getFeature(String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { try { return fParserConfiguration.getFeature(featureId); } catch (XMLConfigurationException e) { String message = e.getMessage(); if (e.getType() == XMLConfigurationException.NOT_RECOGNIZED) { throw new SAXNotRecognizedException(message); } else { throw new SAXNotSupportedException(message); } } } // getFeature(String):boolean
/** * Query the state of a feature. * <p> * Query the current state of any feature in a SAX2 parser. The parser might not recognize the * feature. * * @param featureId The unique identifier (URI) of the feature being set. * @return The current state of the feature. * @throws org.xml.sax.SAXNotRecognizedException If the requested feature is not known. * @throws SAXNotSupportedException If the requested feature is known but not supported. */ public boolean getFeature(String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { try { return fParserConfiguration.getFeature(featureId); } catch (XMLConfigurationException e) { String message = e.getMessage(); if (e.getType() == XMLConfigurationException.NOT_RECOGNIZED) { throw new SAXNotRecognizedException(message); } else { throw new SAXNotSupportedException(message); } } } // getFeature(String):boolean
/** * Query the state of a feature. * * Query the current state of any feature in a SAX2 parser. The * parser might not recognize the feature. * * @param featureId The unique identifier (URI) of the feature * being set. * @return The current state of the feature. * @exception org.xml.sax.SAXNotRecognizedException If the * requested feature is not known. * @exception SAXNotSupportedException If the * requested feature is known but not supported. */ public boolean getFeature(String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { try { return fParserConfiguration.getFeature(featureId); } catch (XMLConfigurationException e) { String message = e.getMessage(); if (e.getType() == XMLConfigurationException.NOT_RECOGNIZED) { throw new SAXNotRecognizedException(message); } throw new SAXNotSupportedException(message); } } // getFeature(String):boolean
/** * Query the state of a feature. * * Query the current state of any feature in a SAX2 parser. The * parser might not recognize the feature. * * @param featureId The unique identifier (URI) of the feature * being set. * @return The current state of the feature. * @exception org.xml.sax.SAXNotRecognizedException If the * requested feature is not known. * @exception SAXNotSupportedException If the * requested feature is known but not supported. */ public boolean getFeature(String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { try { return fParserConfiguration.getFeature(featureId); } catch (final XMLConfigurationException e) { final String message = e.getMessage(); if (e.getType() == XMLConfigurationException.NOT_RECOGNIZED) { throw new SAXNotRecognizedException(message); } throw new SAXNotSupportedException(message); } }
/** * Query the state of a feature. * * Query the current state of any feature in a SAX2 parser. The * parser might not recognize the feature. * * @param featureId The unique identifier (URI) of the feature * being set. * @return The current state of the feature. * @exception org.xml.sax.SAXNotRecognizedException If the * requested feature is not known. * @exception SAXNotSupportedException If the * requested feature is known but not supported. */ public boolean getFeature(String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { try { return fParserConfiguration.getFeature(featureId); } catch (XMLConfigurationException e) { String message = e.getMessage(); if (e.getType() == XMLConfigurationException.NOT_RECOGNIZED) { throw new SAXNotRecognizedException(message); } else { throw new SAXNotSupportedException(message); } } } // getFeature(String):boolean
public void startDocument(XMLLocator locator, String encoding, NamespaceContext namespaceContext, Augmentations augs) throws XNIException { fErrorReporter = (XMLErrorReporter)config.getProperty(ERROR_REPORTER); fGenerateSyntheticAnnotation = config.getFeature(GENERATE_SYNTHETIC_ANNOTATION); fHasNonSchemaAttributes.clear(); fSawAnnotation.clear(); schemaDOM = new SchemaDOM(); fCurrentAnnotationElement = null; fAnnotationDepth = -1; fInnerAnnotationDepth = -1; fDepth = -1; fIgnoreDepth = -1; fLocator = locator; fNamespaceContext = namespaceContext; schemaDOM.setDocumentURI(locator.getExpandedSystemId()); } // startDocument(XMLLocator,String,NamespaceContext, Augmentations)
normalizedName = TOLERATE_DUPLICATES; fConfiguration.getFeature(normalizedName); throw newTypeMismatchError(name);
return fConfiguration.getFeature(featureId);