Package com.ctc.wstx.sr
Interface NsDefaultProvider
-
- All Known Implementing Classes:
DTDTypingNonValidator
,DTDValidator
,DTDValidatorBase
public interface NsDefaultProvider
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.boolean
mayHaveNsDefaults(java.lang.String elemPrefix, java.lang.String elemLN)
-
-
-
Method Detail
-
mayHaveNsDefaults
boolean mayHaveNsDefaults(java.lang.String elemPrefix, java.lang.String elemLN)
-
checkNsDefaults
void checkNsDefaults(InputElementStack nsStack) throws javax.xml.stream.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.- Throws:
javax.xml.stream.XMLStreamException
-
-