Home » Xerces-J-src.2.9.1 » org.apache.xerces » xni » parser » [javadoc | source]
org.apache.xerces.xni.parser
public interface: XMLComponent [javadoc | source]

All Known Implementing Classes:
    XMLNamespaceBinder, XMLDTDLoader, XMLDTDValidator, XMLNSDocumentScannerImpl, XIncludeHandler, XMLEntityManager, XMLDTDScannerImpl, XML11NamespaceBinder, XMLNSDTDValidator, XML11DTDValidator, XML11NSDocumentScannerImpl, XML11DocumentScannerImpl, XML11NSDTDValidator, XPointerHandler, XMLSchemaLoader, PSVIWriter, XML11DTDScannerImpl, XMLScanner, XMLErrorReporter, JAXPValidatorComponent, XMLDocumentScannerImpl, XMLDTDProcessor, XMLSchemaValidator, XMLDocumentFragmentScannerImpl, XML11DTDProcessor

The component interface defines methods that must be implemented by components in a parser configuration. The component methods allow the component manager to initialize the component state and notify the component when feature and property values change.
Method from org.apache.xerces.xni.parser.XMLComponent Summary:
getFeatureDefault,   getPropertyDefault,   getRecognizedFeatures,   getRecognizedProperties,   reset,   setFeature,   setProperty
Method from org.apache.xerces.xni.parser.XMLComponent Detail:
 public Boolean getFeatureDefault(String featureId)
    Returns the default state for a feature, or null if this component does not want to report a default value for this feature.
 public Object getPropertyDefault(String propertyId)
    Returns the default state for a property, or null if this component does not want to report a default value for this property.
 public String[] getRecognizedFeatures()
    Returns a list of feature identifiers that are recognized by this component. This method may return null if no features are recognized by this component.
 public String[] getRecognizedProperties()
    Returns a list of property identifiers that are recognized by this component. This method may return null if no properties are recognized by this component.
 public  void reset(XMLComponentManager componentManager) throws XMLConfigurationException
    Resets the component. The component can query the component manager about any features and properties that affect the operation of the component.
 public  void setFeature(String featureId,
    boolean state) throws XMLConfigurationException
    Sets the state of a feature. This method is called by the component manager any time after reset when a feature changes state.

    Note: Components should silently ignore features that do not affect the operation of the component.

 public  void setProperty(String propertyId,
    Object value) throws XMLConfigurationException
    Sets the value of a property. This method is called by the component manager any time after reset when a property changes value.

    Note: Components should silently ignore properties that do not affect the operation of the component.