< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/dtd/XMLDTDProcessor.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 


 348 
 349         // datatype validators
 350         if (fValidation) {
 351 
 352             if (fNotationEnumVals == null) {
 353                 fNotationEnumVals = new HashMap<>();
 354             }
 355             fNotationEnumVals.clear();
 356 
 357             fTableOfIDAttributeNames = new HashMap<>();
 358             fTableOfNOTATIONAttributeNames = new HashMap<>();
 359         }
 360 
 361     }
 362     /**
 363      * Returns a list of feature identifiers that are recognized by
 364      * this component. This method may return null if no features
 365      * are recognized by this component.
 366      */
 367     public String[] getRecognizedFeatures() {
 368         return (String[])(RECOGNIZED_FEATURES.clone());
 369     } // getRecognizedFeatures():String[]
 370 
 371     /**
 372      * Sets the state of a feature. This method is called by the component
 373      * manager any time after reset when a feature changes state.
 374      * <p>
 375      * <strong>Note:</strong> Components should silently ignore features
 376      * that do not affect the operation of the component.
 377      *
 378      * @param featureId The feature identifier.
 379      * @param state     The state of the feature.
 380      *
 381      * @throws SAXNotRecognizedException The component should not throw
 382      *                                   this exception.
 383      * @throws SAXNotSupportedException The component should not throw
 384      *                                  this exception.
 385      */
 386     public void setFeature(String featureId, boolean state)
 387             throws XMLConfigurationException {
 388     } // setFeature(String,boolean)
 389 
 390     /**
 391      * Returns a list of property identifiers that are recognized by
 392      * this component. This method may return null if no properties
 393      * are recognized by this component.
 394      */
 395     public String[] getRecognizedProperties() {
 396         return (String[])(RECOGNIZED_PROPERTIES.clone());
 397     } // getRecognizedProperties():String[]
 398 
 399     /**
 400      * Sets the value of a property. This method is called by the component
 401      * manager any time after reset when a property changes value.
 402      * <p>
 403      * <strong>Note:</strong> Components should silently ignore properties
 404      * that do not affect the operation of the component.
 405      *
 406      * @param propertyId The property identifier.
 407      * @param value      The value of the property.
 408      *
 409      * @throws SAXNotRecognizedException The component should not throw
 410      *                                   this exception.
 411      * @throws SAXNotSupportedException The component should not throw
 412      *                                  this exception.
 413      */
 414     public void setProperty(String propertyId, Object value)
 415             throws XMLConfigurationException {
 416     } // 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 


 348 
 349         // datatype validators
 350         if (fValidation) {
 351 
 352             if (fNotationEnumVals == null) {
 353                 fNotationEnumVals = new HashMap<>();
 354             }
 355             fNotationEnumVals.clear();
 356 
 357             fTableOfIDAttributeNames = new HashMap<>();
 358             fTableOfNOTATIONAttributeNames = new HashMap<>();
 359         }
 360 
 361     }
 362     /**
 363      * Returns a list of feature identifiers that are recognized by
 364      * this component. This method may return null if no features
 365      * are recognized by this component.
 366      */
 367     public String[] getRecognizedFeatures() {
 368         return RECOGNIZED_FEATURES.clone();
 369     } // getRecognizedFeatures():String[]
 370 
 371     /**
 372      * Sets the state of a feature. This method is called by the component
 373      * manager any time after reset when a feature changes state.
 374      * <p>
 375      * <strong>Note:</strong> Components should silently ignore features
 376      * that do not affect the operation of the component.
 377      *
 378      * @param featureId The feature identifier.
 379      * @param state     The state of the feature.
 380      *
 381      * @throws SAXNotRecognizedException The component should not throw
 382      *                                   this exception.
 383      * @throws SAXNotSupportedException The component should not throw
 384      *                                  this exception.
 385      */
 386     public void setFeature(String featureId, boolean state)
 387             throws XMLConfigurationException {
 388     } // setFeature(String,boolean)
 389 
 390     /**
 391      * Returns a list of property identifiers that are recognized by
 392      * this component. This method may return null if no properties
 393      * are recognized by this component.
 394      */
 395     public String[] getRecognizedProperties() {
 396         return RECOGNIZED_PROPERTIES.clone();
 397     } // getRecognizedProperties():String[]
 398 
 399     /**
 400      * Sets the value of a property. This method is called by the component
 401      * manager any time after reset when a property changes value.
 402      * <p>
 403      * <strong>Note:</strong> Components should silently ignore properties
 404      * that do not affect the operation of the component.
 405      *
 406      * @param propertyId The property identifier.
 407      * @param value      The value of the property.
 408      *
 409      * @throws SAXNotRecognizedException The component should not throw
 410      *                                   this exception.
 411      * @throws SAXNotSupportedException The component should not throw
 412      *                                  this exception.
 413      */
 414     public void setProperty(String propertyId, Object value)
 415             throws XMLConfigurationException {
 416     } // setProperty(String,Object)


< prev index next >