Interface IXMLDeclarationStructureHandler
-
- All Known Implementing Classes:
XMLDeclarationStructureHandler
public interface IXMLDeclarationStructureHandlerStructure handler class meant to be used by
IXMLDeclarationProcessorimplementations.Structure handlers allow processors to instruct the engine to perform a series of actions that cannot be done directly from the processors themselves, usually because these actions are applied or have effects on scopes broader than the processed events themselves.
- Since:
- 3.0.0
- Author:
- Daniel Fernández
- See Also:
IXMLDeclarationProcessor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidremoveXMLDeclaration()Instructs the engine to remove the entire event that is being processed.voidreplaceWith(IModel model, boolean processable)Instructs the engine to replace the current event with the specified model (aIModel).voidreset()Resets all actions specified so far for the current processor execution.voidsetXMLDeclaration(String keyword, String version, String encoding, String standalone)Instructs the engine to set new values into the properties of the XMLDeclaration event being processed.
-
-
-
Method Detail
-
reset
void reset()
Resets all actions specified so far for the current processor execution.
-
setXMLDeclaration
void setXMLDeclaration(String keyword, String version, String encoding, String standalone)
Instructs the engine to set new values into the properties of the XMLDeclaration event being processed.
- Parameters:
keyword- the new keyword valueversion- the new version value (might be null)encoding- the new encoding value (might be null)standalone- the new standalone value (might be null)
-
replaceWith
void replaceWith(IModel model, boolean processable)
Instructs the engine to replace the current event with the specified model (a
IModel).- Parameters:
model- the model to be used as a replacement.processable- whether the model should be considered processable or not.
-
removeXMLDeclaration
void removeXMLDeclaration()
Instructs the engine to remove the entire event that is being processed.
-
-