@Override public <T extends IProcessableElementTag> T removeAttribute(final T tag, final String attributeName) { if (tag == null) { return null; } if (tag instanceof IOpenElementTag) { return (T) removeAttribute((IOpenElementTag)tag, attributeName); } if (tag instanceof IStandaloneElementTag) { return (T) removeAttribute((IStandaloneElementTag)tag, attributeName); } throw new TemplateProcessingException("Unknown type of processable element tag: " + tag.getClass().getName()); }
@Override public <T extends IProcessableElementTag> T removeAttribute(final T tag, final String prefix, final String name) { if (tag == null) { return null; } if (tag instanceof IOpenElementTag) { return (T) removeAttribute((IOpenElementTag)tag, prefix, name); } if (tag instanceof IStandaloneElementTag) { return (T) removeAttribute((IStandaloneElementTag)tag, prefix, name); } throw new TemplateProcessingException("Unknown type of processable element tag: " + tag.getClass().getName()); }
@Override public <T extends IProcessableElementTag> T removeAttribute(final T tag, final AttributeName attributeName) { if (tag == null) { return null; } if (tag instanceof IOpenElementTag) { return (T) removeAttribute((IOpenElementTag)tag, attributeName); } if (tag instanceof IStandaloneElementTag) { return (T) removeAttribute((IStandaloneElementTag)tag, attributeName); } throw new TemplateProcessingException("Unknown type of processable element tag: " + tag.getClass().getName()); }
private IOpenElementTag removeAttribute(final IOpenElementTag openElementTag, final String attributeName) { if (!(openElementTag instanceof OpenElementTag)) { return removeAttribute(OpenElementTag.asEngineOpenElementTag(openElementTag), attributeName); } return ((OpenElementTag) openElementTag).removeAttribute(attributeName); }
private IStandaloneElementTag removeAttribute(final IStandaloneElementTag standaloneElementTag, final AttributeName attributeName) { if (!(standaloneElementTag instanceof StandaloneElementTag)) { return removeAttribute(StandaloneElementTag.asEngineStandaloneElementTag(standaloneElementTag), attributeName); } return ((StandaloneElementTag) standaloneElementTag).removeAttribute(attributeName); }
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 IStandaloneElementTag removeAttribute(final IStandaloneElementTag standaloneElementTag, final String attributeName) { if (!(standaloneElementTag instanceof StandaloneElementTag)) { return removeAttribute(StandaloneElementTag.asEngineStandaloneElementTag(standaloneElementTag), attributeName); } return ((StandaloneElementTag) standaloneElementTag).removeAttribute(attributeName); }
private IStandaloneElementTag removeAttribute(final IStandaloneElementTag standaloneElementTag, final String prefix, final String name) { if (!(standaloneElementTag instanceof StandaloneElementTag)) { return removeAttribute(StandaloneElementTag.asEngineStandaloneElementTag(standaloneElementTag), prefix, name); } return ((StandaloneElementTag) standaloneElementTag).removeAttribute(prefix, name); }
private IOpenElementTag removeAttribute(final IOpenElementTag openElementTag, final AttributeName attributeName) { if (!(openElementTag instanceof OpenElementTag)) { return removeAttribute(OpenElementTag.asEngineOpenElementTag(openElementTag), attributeName); } return ((OpenElementTag) openElementTag).removeAttribute(attributeName); }