Top Description Methods
com.ctc.wstx.sr

public Interface NsDefaultProvider

Known Direct Implementers
com.ctc.wstx.dtd.DTDValidatorBase
Imports
javax.xml.stream.XMLStreamException

Interface only used by Woodstox core. The main reason for the interface is to reduce coupling with the input element stack and dtd validator instances: while dtd validator needs to be able to inject namespace declarations based on attribute default values, it should not have to know too much about element stack implementation, and vice versa. As a result, this interface defines API input element stack calls on the dtd validator instance. Validator instance then refers to the input element stack base class to do callbacks if and as necessary.

Method Summary

Modifier and TypeMethod and Description
public void
checkNsDefaults(InputElementStack nsStack)

Method called by the input element stack to indicate that it has just added local namespace declarations from the current element, and is about to start resolving element and attribute namespace bindings.

public boolean
mayHaveNsDefaults(String elemPrefix, String elemLN)

Method Detail

checkNsDefaultsback to summary
public void checkNsDefaults(InputElementStack nsStack) throws XMLStreamException

Method called by the input element stack to indicate that it has just added local namespace declarations from the current element, and is about to start resolving element and attribute namespace bindings. This provider instance is to add namespace declarations from attribute defaults, if any, using callbacks to the input element stack.

mayHaveNsDefaultsback to summary
public boolean mayHaveNsDefaults(String elemPrefix, String elemLN)