@Override public void handleOpenElement(final IOpenElementTag openElementTag) { this.events.add(OpenElementTag.asEngineOpenElementTag(openElementTag)); // The engine event we might have created is not forwarded - this makes cache creating transparent to the handler chain super.handleOpenElement(openElementTag); }
private IOpenElementTag removeAttribute(final IOpenElementTag openElementTag, final String prefix, final String name) { if (!(openElementTag instanceof OpenElementTag)) { return removeAttribute(OpenElementTag.asEngineOpenElementTag(openElementTag), prefix, name); } return ((OpenElementTag) openElementTag).removeAttribute(prefix, name); }
private IOpenElementTag replaceAttribute(final IOpenElementTag openElementTag, final AttributeName oldAttributeName, final String attributeName, final String attributeValue, final AttributeValueQuotes attributeValueQuotes) { if (!(openElementTag instanceof OpenElementTag)) { return replaceAttribute(OpenElementTag.asEngineOpenElementTag(openElementTag), oldAttributeName, attributeName, attributeValue, attributeValueQuotes); } return ((OpenElementTag) openElementTag).replaceAttribute(this.attributeDefinitions, oldAttributeName, null, attributeName, attributeValue, attributeValueQuotes); }
private IOpenElementTag removeAttribute(final IOpenElementTag openElementTag, final AttributeName attributeName) { if (!(openElementTag instanceof OpenElementTag)) { return removeAttribute(OpenElementTag.asEngineOpenElementTag(openElementTag), attributeName); } return ((OpenElementTag) openElementTag).removeAttribute(attributeName); }
private IOpenElementTag setAttribute(final IOpenElementTag openElementTag, final String attributeName, final String attributeValue) { if (!(openElementTag instanceof OpenElementTag)) { return setAttribute(OpenElementTag.asEngineOpenElementTag(openElementTag), attributeName, attributeValue); } return ((OpenElementTag) openElementTag).setAttribute(this.attributeDefinitions, null, attributeName, attributeValue, null); }
private IOpenElementTag setAttribute(final IOpenElementTag openElementTag, final String attributeName, final String attributeValue, final AttributeValueQuotes attributeValueQuotes) { if (!(openElementTag instanceof OpenElementTag)) { return setAttribute(OpenElementTag.asEngineOpenElementTag(openElementTag), attributeName, attributeValue, attributeValueQuotes); } return ((OpenElementTag) openElementTag).setAttribute(this.attributeDefinitions, null, attributeName, attributeValue, attributeValueQuotes); }
private IOpenElementTag replaceAttribute(final IOpenElementTag openElementTag, final AttributeName oldAttributeName, final String attributeName, final String attributeValue) { if (!(openElementTag instanceof OpenElementTag)) { return replaceAttribute(OpenElementTag.asEngineOpenElementTag(openElementTag), oldAttributeName, attributeName, attributeValue); } return ((OpenElementTag) openElementTag).replaceAttribute(this.attributeDefinitions, oldAttributeName, null, attributeName, attributeValue, null); }
private IOpenElementTag removeAttribute(final IOpenElementTag openElementTag, final String attributeName) { if (!(openElementTag instanceof OpenElementTag)) { return removeAttribute(OpenElementTag.asEngineOpenElementTag(openElementTag), attributeName); } return ((OpenElementTag) openElementTag).removeAttribute(attributeName); }
return OpenElementTag.asEngineOpenElementTag((IOpenElementTag) event);
OpenElementTag openElementTag = OpenElementTag.asEngineOpenElementTag(iopenElementTag);