< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/dtd/XMLDTDValidator.java

Print this page


   1 /*
   2  * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
   3  * @LastModified: Oct 2017
   4  */
   5 /*
   6  * Licensed to the Apache Software Foundation (ASF) under one or more
   7  * contributor license agreements.  See the NOTICE file distributed with
   8  * this work for additional information regarding copyright ownership.
   9  * The ASF licenses this file to You under the Apache License, Version 2.0
  10  * (the "License"); you may not use this file except in compliance with
  11  * the License.  You may obtain a copy of the License at
  12  *
  13  *      http://www.apache.org/licenses/LICENSE-2.0
  14  *
  15  * Unless required by applicable law or agreed to in writing, software
  16  * distributed under the License is distributed on an "AS IS" BASIS,
  17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18  * See the License for the specific language governing permissions and
  19  * limitations under the License.
  20  */
  21 
  22 package com.sun.org.apache.xerces.internal.impl.dtd;
  23 


 463         fValidationManager= (ValidationManager)componentManager.getProperty(VALIDATION_MANAGER);
 464         fValidationManager.addValidationState(fValidationState);
 465         fValidationState.setUsingNamespaces(fNamespaces);
 466 
 467         // get needed components
 468         fErrorReporter = (XMLErrorReporter)componentManager.getProperty(Constants.XERCES_PROPERTY_PREFIX+Constants.ERROR_REPORTER_PROPERTY);
 469         fSymbolTable = (SymbolTable)componentManager.getProperty(Constants.XERCES_PROPERTY_PREFIX+Constants.SYMBOL_TABLE_PROPERTY);
 470         fGrammarPool= (XMLGrammarPool)componentManager.getProperty(GRAMMAR_POOL, null);
 471 
 472         fDatatypeValidatorFactory = (DTDDVFactory)componentManager.getProperty(Constants.XERCES_PROPERTY_PREFIX + Constants.DATATYPE_VALIDATOR_FACTORY_PROPERTY);
 473                 init();
 474 
 475     } // reset(XMLComponentManager)
 476 
 477     /**
 478      * Returns a list of feature identifiers that are recognized by
 479      * this component. This method may return null if no features
 480      * are recognized by this component.
 481      */
 482     public String[] getRecognizedFeatures() {
 483         return (String[])(RECOGNIZED_FEATURES.clone());
 484     } // getRecognizedFeatures():String[]
 485 
 486     /**
 487      * Sets the state of a feature. This method is called by the component
 488      * manager any time after reset when a feature changes state.
 489      * <p>
 490      * <strong>Note:</strong> Components should silently ignore features
 491      * that do not affect the operation of the component.
 492      *
 493      * @param featureId The feature identifier.
 494      * @param state     The state of the feature.
 495      *
 496      * @throws SAXNotRecognizedException The component should not throw
 497      *                                   this exception.
 498      * @throws SAXNotSupportedException The component should not throw
 499      *                                  this exception.
 500      */
 501     public void setFeature(String featureId, boolean state)
 502     throws XMLConfigurationException {
 503     } // setFeature(String,boolean)
 504 
 505     /**
 506      * Returns a list of property identifiers that are recognized by
 507      * this component. This method may return null if no properties
 508      * are recognized by this component.
 509      */
 510     public String[] getRecognizedProperties() {
 511         return (String[])(RECOGNIZED_PROPERTIES.clone());
 512     } // getRecognizedProperties():String[]
 513 
 514     /**
 515      * Sets the value of a property. This method is called by the component
 516      * manager any time after reset when a property changes value.
 517      * <p>
 518      * <strong>Note:</strong> Components should silently ignore properties
 519      * that do not affect the operation of the component.
 520      *
 521      * @param propertyId The property identifier.
 522      * @param value      The value of the property.
 523      *
 524      * @throws SAXNotRecognizedException The component should not throw
 525      *                                   this exception.
 526      * @throws SAXNotSupportedException The component should not throw
 527      *                                  this exception.
 528      */
 529     public void setProperty(String propertyId, Object value)
 530     throws XMLConfigurationException {
 531     } // setProperty(String,Object)


   1 /*
   2  * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
   3  * @LastModified: Nov 2017
   4  */
   5 /*
   6  * Licensed to the Apache Software Foundation (ASF) under one or more
   7  * contributor license agreements.  See the NOTICE file distributed with
   8  * this work for additional information regarding copyright ownership.
   9  * The ASF licenses this file to You under the Apache License, Version 2.0
  10  * (the "License"); you may not use this file except in compliance with
  11  * the License.  You may obtain a copy of the License at
  12  *
  13  *      http://www.apache.org/licenses/LICENSE-2.0
  14  *
  15  * Unless required by applicable law or agreed to in writing, software
  16  * distributed under the License is distributed on an "AS IS" BASIS,
  17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18  * See the License for the specific language governing permissions and
  19  * limitations under the License.
  20  */
  21 
  22 package com.sun.org.apache.xerces.internal.impl.dtd;
  23 


 463         fValidationManager= (ValidationManager)componentManager.getProperty(VALIDATION_MANAGER);
 464         fValidationManager.addValidationState(fValidationState);
 465         fValidationState.setUsingNamespaces(fNamespaces);
 466 
 467         // get needed components
 468         fErrorReporter = (XMLErrorReporter)componentManager.getProperty(Constants.XERCES_PROPERTY_PREFIX+Constants.ERROR_REPORTER_PROPERTY);
 469         fSymbolTable = (SymbolTable)componentManager.getProperty(Constants.XERCES_PROPERTY_PREFIX+Constants.SYMBOL_TABLE_PROPERTY);
 470         fGrammarPool= (XMLGrammarPool)componentManager.getProperty(GRAMMAR_POOL, null);
 471 
 472         fDatatypeValidatorFactory = (DTDDVFactory)componentManager.getProperty(Constants.XERCES_PROPERTY_PREFIX + Constants.DATATYPE_VALIDATOR_FACTORY_PROPERTY);
 473                 init();
 474 
 475     } // reset(XMLComponentManager)
 476 
 477     /**
 478      * Returns a list of feature identifiers that are recognized by
 479      * this component. This method may return null if no features
 480      * are recognized by this component.
 481      */
 482     public String[] getRecognizedFeatures() {
 483         return RECOGNIZED_FEATURES.clone();
 484     } // getRecognizedFeatures():String[]
 485 
 486     /**
 487      * Sets the state of a feature. This method is called by the component
 488      * manager any time after reset when a feature changes state.
 489      * <p>
 490      * <strong>Note:</strong> Components should silently ignore features
 491      * that do not affect the operation of the component.
 492      *
 493      * @param featureId The feature identifier.
 494      * @param state     The state of the feature.
 495      *
 496      * @throws SAXNotRecognizedException The component should not throw
 497      *                                   this exception.
 498      * @throws SAXNotSupportedException The component should not throw
 499      *                                  this exception.
 500      */
 501     public void setFeature(String featureId, boolean state)
 502     throws XMLConfigurationException {
 503     } // setFeature(String,boolean)
 504 
 505     /**
 506      * Returns a list of property identifiers that are recognized by
 507      * this component. This method may return null if no properties
 508      * are recognized by this component.
 509      */
 510     public String[] getRecognizedProperties() {
 511         return RECOGNIZED_PROPERTIES.clone();
 512     } // getRecognizedProperties():String[]
 513 
 514     /**
 515      * Sets the value of a property. This method is called by the component
 516      * manager any time after reset when a property changes value.
 517      * <p>
 518      * <strong>Note:</strong> Components should silently ignore properties
 519      * that do not affect the operation of the component.
 520      *
 521      * @param propertyId The property identifier.
 522      * @param value      The value of the property.
 523      *
 524      * @throws SAXNotRecognizedException The component should not throw
 525      *                                   this exception.
 526      * @throws SAXNotSupportedException The component should not throw
 527      *                                  this exception.
 528      */
 529     public void setProperty(String propertyId, Object value)
 530     throws XMLConfigurationException {
 531     } // setProperty(String,Object)


< prev index next >