@Override public void reset(XMLComponentManager componentManager) throws XMLConfigurationException {
  boolean parser_settings;
  try {
    parser_settings=componentManager.getFeature(PARSER_SETTINGS);
  }
 catch (  XMLConfigurationException e) {
    parser_settings=true;
  }
  if (!parser_settings) {
    reset();
    return;
  }
  try {
    fValidation=componentManager.getFeature(VALIDATION);
  }
 catch (  XMLConfigurationException e) {
    fValidation=false;
  }
  try {
    fExternalGeneralEntities=componentManager.getFeature(EXTERNAL_GENERAL_ENTITIES);
  }
 catch (  XMLConfigurationException e) {
    fExternalGeneralEntities=true;
  }
  try {
    fExternalParameterEntities=componentManager.getFeature(EXTERNAL_PARAMETER_ENTITIES);
  }
 catch (  XMLConfigurationException e) {
    fExternalParameterEntities=true;
  }
  try {
    fAllowJavaEncodings=componentManager.getFeature(ALLOW_JAVA_ENCODINGS);
  }
 catch (  XMLConfigurationException e) {
    fAllowJavaEncodings=false;
  }
  try {
    fWarnDuplicateEntityDef=componentManager.getFeature(WARN_ON_DUPLICATE_ENTITYDEF);
  }
 catch (  XMLConfigurationException e) {
    fWarnDuplicateEntityDef=false;
  }
  try {
    fStrictURI=componentManager.getFeature(STANDARD_URI_CONFORMANT);
  }
 catch (  XMLConfigurationException e) {
    fStrictURI=false;
  }
  fSymbolTable=(SymbolTable)componentManager.getProperty(SYMBOL_TABLE);
  fErrorReporter=(XMLErrorReporter)componentManager.getProperty(ERROR_REPORTER);
  try {
    fEntityResolver=(XMLEntityResolver)componentManager.getProperty(ENTITY_RESOLVER);
  }
 catch (  XMLConfigurationException e) {
    fEntityResolver=null;
  }
  try {
    fValidationManager=(ValidationManager)componentManager.getProperty(VALIDATION_MANAGER);
  }
 catch (  XMLConfigurationException e) {
    fValidationManager=null;
  }
  try {
    fSecurityManager=(SecurityManager)componentManager.getProperty(SECURITY_MANAGER);
  }
 catch (  XMLConfigurationException e) {
    fSecurityManager=null;
  }
  reset();
}

@ Override public void reset ( XMLComponentManager componentManager ) throws XMLConfigurationException { boolean parser_settings ; try { parser_settings = componentManager . getFeature ( PARSER_SETTINGS ) ; } catch ( XMLConfigurationException e ) { parser_settings = true ; } if ( ! parser_settings ) { reset ( ) ; return ; } try { fValidation = componentManager . getFeature ( VALIDATION ) ; } catch ( XMLConfigurationException e ) { fValidation = false ; } try { fExternalGeneralEntities = componentManager . getFeature ( EXTERNAL_GENERAL_ENTITIES ) ; } catch ( XMLConfigurationException e ) { fExternalGeneralEntities = true ; } try { fExternalParameterEntities = componentManager . getFeature ( EXTERNAL_PARAMETER_ENTITIES ) ; } catch ( XMLConfigurationException e ) { fExternalParameterEntities = true ; } try { fAllowJavaEncodings = componentManager . getFeature ( ALLOW_JAVA_ENCODINGS ) ; } catch ( XMLConfigurationException e ) { fAllowJavaEncodings = false ; } try { fWarnDuplicateEntityDef = componentManager . getFeature ( WARN_ON_DUPLICATE_ENTITYDEF ) ; } catch ( XMLConfigurationException e ) { fWarnDuplicateEntityDef = false ; } try { fStrictURI = componentManager . getFeature ( STANDARD_URI_CONFORMANT ) ; } catch ( XMLConfigurationException e ) { fStrictURI = false ; } fSymbolTable = ( SymbolTable ) componentManager . getProperty ( SYMBOL_TABLE ) ; fErrorReporter = ( XMLErrorReporter ) componentManager . getProperty ( ERROR_REPORTER ) ; try { fEntityResolver = ( XMLEntityResolver ) componentManager . getProperty ( ENTITY_RESOLVER ) ; } catch ( XMLConfigurationException e ) { fEntityResolver = null ; } try { fValidationManager = ( ValidationManager ) componentManager . getProperty ( VALIDATION_MANAGER ) ; } catch ( XMLConfigurationException e ) { fValidationManager = null ; } try { fSecurityManager = ( SecurityManager ) componentManager . getProperty ( SECURITY_MANAGER ) ; } catch ( XMLConfigurationException e ) { fSecurityManager = null ; } reset ( ) ; }
resets the component . the component can query the component manager about any features and properties that affect the operation of the component .
