Attributes removeAttribute(final TemplateMode templateMode, final String completeName) { if (this.attributes == null) { // We have no attribute array, nothing to remove return this; } final int attrIdx = searchAttribute(templateMode, completeName); if (attrIdx < 0) { // Attribute does not exist. Just exit return this; } return removeAttribute(attrIdx); }
StandaloneElementTag removeAttribute(final String prefix, final String name) { final Attributes oldAttributes = (this.attributes != null? this.attributes : Attributes.EMPTY_ATTRIBUTES); final Attributes newAttributes = oldAttributes.removeAttribute(this.templateMode, prefix, name); if (oldAttributes == newAttributes) { return this; } return new StandaloneElementTag(this.templateMode, this.elementDefinition, this.elementCompleteName, newAttributes, this.synthetic, this.minimized, this.templateName, this.line, this.col); }
Attributes removeAttribute(final TemplateMode templateMode, final String prefix, final String name) { if (this.attributes == null) { // We have no attribute array, nothing to remove return this; } final int attrIdx = searchAttribute(templateMode, prefix, name); if (attrIdx < 0) { // Attribute does not exist. Just exit return this; } return removeAttribute(attrIdx); }
OpenElementTag removeAttribute(final String prefix, final String name) { final Attributes oldAttributes = (this.attributes != null? this.attributes : Attributes.EMPTY_ATTRIBUTES); final Attributes newAttributes = oldAttributes.removeAttribute(this.templateMode, prefix, name); if (oldAttributes == newAttributes) { return this; } return new OpenElementTag(this.templateMode, this.elementDefinition, this.elementCompleteName, newAttributes, this.synthetic, this.templateName, this.line, this.col); }
OpenElementTag removeAttribute(final String completeName) { final Attributes oldAttributes = (this.attributes != null? this.attributes : Attributes.EMPTY_ATTRIBUTES); final Attributes newAttributes = oldAttributes.removeAttribute(this.templateMode, completeName); if (oldAttributes == newAttributes) { return this; } return new OpenElementTag(this.templateMode, this.elementDefinition, this.elementCompleteName, newAttributes, this.synthetic, this.templateName, this.line, this.col); }
OpenElementTag removeAttribute(final AttributeName attributeName) { final Attributes oldAttributes = (this.attributes != null? this.attributes : Attributes.EMPTY_ATTRIBUTES); final Attributes newAttributes = oldAttributes.removeAttribute(attributeName); if (oldAttributes == newAttributes) { return this; } return new OpenElementTag(this.templateMode, this.elementDefinition, this.elementCompleteName, newAttributes, this.synthetic, this.templateName, this.line, this.col); }
StandaloneElementTag removeAttribute(final String completeName) { final Attributes oldAttributes = (this.attributes != null? this.attributes : Attributes.EMPTY_ATTRIBUTES); final Attributes newAttributes = oldAttributes.removeAttribute(this.templateMode, completeName); if (oldAttributes == newAttributes) { return this; } return new StandaloneElementTag(this.templateMode, this.elementDefinition, this.elementCompleteName, newAttributes, this.synthetic, this.minimized, this.templateName, this.line, this.col); }
StandaloneElementTag removeAttribute(final AttributeName attributeName) { final Attributes oldAttributes = (this.attributes != null? this.attributes : Attributes.EMPTY_ATTRIBUTES); final Attributes newAttributes = oldAttributes.removeAttribute(attributeName); if (oldAttributes == newAttributes) { return this; } return new StandaloneElementTag(this.templateMode, this.elementDefinition, this.elementCompleteName, newAttributes, this.synthetic, this.minimized, this.templateName, this.line, this.col); }
Attributes removeAttribute(final AttributeName attributeName) { if (this.attributes == null) { // We have no attribute array, nothing to remove return this; } final int attrIdx = searchAttribute(attributeName); if (attrIdx < 0) { // Attribute does not exist. Just exit return this; } return removeAttribute(attrIdx); }