Ejemplo n.º 1
0
 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();
   fAnnotationDepth = -1;
   fInnerAnnotationDepth = -1;
   fDepth = -1;
   fLocator = locator;
   fNamespaceContext = namespaceContext;
   schemaDOM.setDocumentURI(locator.getExpandedSystemId());
 } // startDocument(XMLLocator,String,NamespaceContext, Augmentations)
Ejemplo n.º 2
0
 /**
  * Delegates to SchemaParsingConfig.getFeature
  *
  * @param featureId
  * @return boolean
  */
 public boolean getFeature(String featureId) {
   return config.getFeature(featureId);
 }
Ejemplo n.º 3
0
 /** Query the state of a feature. */
 public boolean getFeature(String featureId)
     throws SAXNotSupportedException, SAXNotRecognizedException {
   return fConfiguration.getFeature(featureId);
 }