Interface DomAttributes

All Known Implementing Classes:
DomElement

@DraftDocs("longer summary, non-default methods") @NoTests public interface DomAttributes
Strongly typed attribute setters and getters.
  • Method Details

    • set

      DomElement set(String name, String value)
    • set

      DomElement set(String name, boolean value)
    • set

      DomElement set(String name)
    • set

      DomElement set(String name, int value)
    • set

      DomElement set(String name, double value)
    • set

      DomElement set(DomAttribute attribute)
    • unset

      DomElement unset(String name)
    • attributes

      List<DomAttribute> attributes()
    • attribute

      DomAttribute attribute(String name)
    • attributeAsString

      String attributeAsString(String name)
    • attributeAsBoolean

      boolean attributeAsBoolean(String name)
    • attributeAsInt

      OptionalInt attributeAsInt(String name)
    • attributeAsDouble

      OptionalDouble attributeAsDouble(String name)
    • clazz

      default DomElement clazz(String... classes)
      Sets class attribute to an array of values. Array items are joined with spaces and the attribute is set to the resulting string. If classes is null or empty, the attribute is removed.
      Parameters:
      classes - list of classes
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • data

      default DomElement data(String key, String value)
      Sets data-* attribute. If value is null, the attribute is removed.
      Parameters:
      key - unprefixed name of the attribute, e.g. key hello for attribute data-hello
      value - new value of the data-* attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
      NullPointerException - if the key is null
    • data

      default String data(String key)
      Gets data-* attribute.
      Parameters:
      key - unprefixed name of the attribute, e.g. key hello for attribute data-hello
      Returns:
      value of the data-* attribute or null if the attribute is missing
      Throws:
      NullPointerException - if the key is null
    • accept

      default DomElement accept(String value)
      Sets HTML attribute accept. If value is null, the attribute is removed.
      Parameters:
      value - new value of the accept attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • accept

      default String accept()
      Gets HTML attribute accept.
      Returns:
      value of the accept attribute or null if the attribute is missing
    • acceptCharset

      default DomElement acceptCharset(String value)
      Sets HTML attribute accept-charset. If value is null, the attribute is removed.
      Parameters:
      value - new value of the accept-charset attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • acceptCharset

      default String acceptCharset()
      Gets HTML attribute accept-charset.
      Returns:
      value of the accept-charset attribute or null if the attribute is missing
    • accesskey

      default DomElement accesskey(String value)
      Sets HTML attribute accesskey. If value is null, the attribute is removed.
      Parameters:
      value - new value of the accesskey attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • accesskey

      default String accesskey()
      Gets HTML attribute accesskey.
      Returns:
      value of the accesskey attribute or null if the attribute is missing
    • accumulate

      default DomElement accumulate(String value)
      Sets SVG attribute accumulate. If value is null, the attribute is removed.
      Parameters:
      value - new value of the accumulate attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • accumulate

      default String accumulate()
      Gets SVG attribute accumulate.
      Returns:
      value of the accumulate attribute or null if the attribute is missing
    • action

      default DomElement action(String value)
      Sets HTML attribute action. If value is null, the attribute is removed.
      Parameters:
      value - new value of the action attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • action

      default String action()
      Gets HTML attribute action.
      Returns:
      value of the action attribute or null if the attribute is missing
    • additive

      default DomElement additive(String value)
      Sets SVG attribute additive. If value is null, the attribute is removed.
      Parameters:
      value - new value of the additive attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • additive

      default String additive()
      Gets SVG attribute additive.
      Returns:
      value of the additive attribute or null if the attribute is missing
    • alignmentBaseline

      default DomElement alignmentBaseline(String value)
      Sets SVG attribute alignment-baseline. If value is null, the attribute is removed.
      Parameters:
      value - new value of the alignment-baseline attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • alignmentBaseline

      default String alignmentBaseline()
      Gets SVG attribute alignment-baseline.
      Returns:
      value of the alignment-baseline attribute or null if the attribute is missing
    • allowfullscreen

      default DomElement allowfullscreen(String value)
      Sets HTML attribute allowfullscreen. If value is null, the attribute is removed.
      Parameters:
      value - new value of the allowfullscreen attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • allowfullscreen

      default String allowfullscreen()
      Gets HTML attribute allowfullscreen.
      Returns:
      value of the allowfullscreen attribute or null if the attribute is missing
    • alt

      default DomElement alt(String value)
      Sets HTML attribute alt. If value is null, the attribute is removed.
      Parameters:
      value - new value of the alt attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • alt

      default String alt()
      Gets HTML attribute alt.
      Returns:
      value of the alt attribute or null if the attribute is missing
    • amplitude

      default DomElement amplitude(String value)
      Sets SVG attribute amplitude. If value is null, the attribute is removed.
      Parameters:
      value - new value of the amplitude attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • amplitude

      default String amplitude()
      Gets SVG attribute amplitude.
      Returns:
      value of the amplitude attribute or null if the attribute is missing
    • amplitude

      default DomElement amplitude(double value)
      Sets SVG attribute amplitude to a floating-point value.
      Parameters:
      value - new value of the amplitude attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • amplitudeAsDouble

      default OptionalDouble amplitudeAsDouble()
      Gets SVG attribute amplitude as a floating-point value.
      Returns:
      this
      Throws:
      NumberFormatException - if the attribute is not a floating-point number
    • async

      default DomElement async()
      Adds boolean HTML attribute async. This method has no effect if the attribute is already present.
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • async

      default DomElement async(boolean present)
      Adds or removes boolean HTML attribute async.
      Parameters:
      present - true to add the attribute, false to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • asyncAsBoolean

      default boolean asyncAsBoolean()
      Gets boolean HTML attribute async.
      Returns:
      value of the async attribute or null if the attribute is missing
    • attributeName

      default DomElement attributeName(String value)
      Sets SVG attribute attributeName. If value is null, the attribute is removed.
      Parameters:
      value - new value of the attributeName attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • attributeName

      default String attributeName()
      Gets SVG attribute attributeName.
      Returns:
      value of the attributeName attribute or null if the attribute is missing
    • attributeType

      default DomElement attributeType(String value)
      Sets SVG attribute attributeType. If value is null, the attribute is removed.
      Parameters:
      value - new value of the attributeType attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • attributeType

      default String attributeType()
      Gets SVG attribute attributeType.
      Returns:
      value of the attributeType attribute or null if the attribute is missing
    • autocapitalize

      default DomElement autocapitalize(String value)
      Sets HTML attribute autocapitalize. If value is null, the attribute is removed.
      Parameters:
      value - new value of the autocapitalize attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • autocapitalize

      default String autocapitalize()
      Gets HTML attribute autocapitalize.
      Returns:
      value of the autocapitalize attribute or null if the attribute is missing
    • autocomplete

      default DomElement autocomplete(String value)
      Sets HTML attribute autocomplete. If value is null, the attribute is removed.
      Parameters:
      value - new value of the autocomplete attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • autocomplete

      default String autocomplete()
      Gets HTML attribute autocomplete.
      Returns:
      value of the autocomplete attribute or null if the attribute is missing
    • autofocus

      default DomElement autofocus()
      Adds boolean HTML attribute autofocus. This method has no effect if the attribute is already present.
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • autofocus

      default DomElement autofocus(boolean present)
      Adds or removes boolean HTML attribute autofocus.
      Parameters:
      present - true to add the attribute, false to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • autofocusAsBoolean

      default boolean autofocusAsBoolean()
      Gets boolean HTML attribute autofocus.
      Returns:
      value of the autofocus attribute or null if the attribute is missing
    • autoplay

      default DomElement autoplay()
      Adds boolean HTML attribute autoplay. This method has no effect if the attribute is already present.
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • autoplay

      default DomElement autoplay(boolean present)
      Adds or removes boolean HTML attribute autoplay.
      Parameters:
      present - true to add the attribute, false to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • autoplayAsBoolean

      default boolean autoplayAsBoolean()
      Gets boolean HTML attribute autoplay.
      Returns:
      value of the autoplay attribute or null if the attribute is missing
    • azimuth

      default DomElement azimuth(String value)
      Sets SVG attribute azimuth. If value is null, the attribute is removed.
      Parameters:
      value - new value of the azimuth attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • azimuth

      default String azimuth()
      Gets SVG attribute azimuth.
      Returns:
      value of the azimuth attribute or null if the attribute is missing
    • azimuth

      default DomElement azimuth(double value)
      Sets SVG attribute azimuth to a floating-point value.
      Parameters:
      value - new value of the azimuth attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • azimuthAsDouble

      default OptionalDouble azimuthAsDouble()
      Gets SVG attribute azimuth as a floating-point value.
      Returns:
      this
      Throws:
      NumberFormatException - if the attribute is not a floating-point number
    • baseFrequency

      default DomElement baseFrequency(String value)
      Sets SVG attribute baseFrequency. If value is null, the attribute is removed.
      Parameters:
      value - new value of the baseFrequency attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • baseFrequency

      default String baseFrequency()
      Gets SVG attribute baseFrequency.
      Returns:
      value of the baseFrequency attribute or null if the attribute is missing
    • baseFrequency

      default DomElement baseFrequency(double value)
      Sets SVG attribute baseFrequency to a floating-point value.
      Parameters:
      value - new value of the baseFrequency attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • baseFrequencyAsDouble

      default OptionalDouble baseFrequencyAsDouble()
      Gets SVG attribute baseFrequency as a floating-point value.
      Returns:
      this
      Throws:
      NumberFormatException - if the attribute is not a floating-point number
    • baselineShift

      default DomElement baselineShift(String value)
      Sets SVG attribute baseline-shift. If value is null, the attribute is removed.
      Parameters:
      value - new value of the baseline-shift attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • baselineShift

      default String baselineShift()
      Gets SVG attribute baseline-shift.
      Returns:
      value of the baseline-shift attribute or null if the attribute is missing
    • baselineShift

      default DomElement baselineShift(double value)
      Sets SVG attribute baseline-shift to a floating-point value.
      Parameters:
      value - new value of the baseline-shift attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • baselineShiftAsDouble

      default OptionalDouble baselineShiftAsDouble()
      Gets SVG attribute baseline-shift as a floating-point value.
      Returns:
      this
      Throws:
      NumberFormatException - if the attribute is not a floating-point number
    • begin

      default DomElement begin(String value)
      Sets SVG attribute begin. If value is null, the attribute is removed.
      Parameters:
      value - new value of the begin attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • begin

      default String begin()
      Gets SVG attribute begin.
      Returns:
      value of the begin attribute or null if the attribute is missing
    • bias

      default DomElement bias(String value)
      Sets SVG attribute bias. If value is null, the attribute is removed.
      Parameters:
      value - new value of the bias attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • bias

      default String bias()
      Gets SVG attribute bias.
      Returns:
      value of the bias attribute or null if the attribute is missing
    • bias

      default DomElement bias(double value)
      Sets SVG attribute bias to a floating-point value.
      Parameters:
      value - new value of the bias attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • biasAsDouble

      default OptionalDouble biasAsDouble()
      Gets SVG attribute bias as a floating-point value.
      Returns:
      this
      Throws:
      NumberFormatException - if the attribute is not a floating-point number
    • calcMode

      default DomElement calcMode(String value)
      Sets SVG attribute calcMode. If value is null, the attribute is removed.
      Parameters:
      value - new value of the calcMode attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • calcMode

      default String calcMode()
      Gets SVG attribute calcMode.
      Returns:
      value of the calcMode attribute or null if the attribute is missing
    • charset

      default DomElement charset(String value)
      Sets HTML attribute charset. If value is null, the attribute is removed.
      Parameters:
      value - new value of the charset attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • charset

      default String charset()
      Gets HTML attribute charset.
      Returns:
      value of the charset attribute or null if the attribute is missing
    • checked

      default DomElement checked()
      Adds boolean HTML attribute checked. This method has no effect if the attribute is already present.
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • checked

      default DomElement checked(boolean present)
      Adds or removes boolean HTML attribute checked.
      Parameters:
      present - true to add the attribute, false to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • checkedAsBoolean

      default boolean checkedAsBoolean()
      Gets boolean HTML attribute checked.
      Returns:
      value of the checked attribute or null if the attribute is missing
    • cite

      default DomElement cite(String value)
      Sets HTML attribute cite. If value is null, the attribute is removed.
      Parameters:
      value - new value of the cite attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • cite

      default String cite()
      Gets HTML attribute cite.
      Returns:
      value of the cite attribute or null if the attribute is missing
    • clazz

      default DomElement clazz(String value)
      Sets HTML/SVG attribute class. If value is null, the attribute is removed.
      Parameters:
      value - new value of the class attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • clazz

      default String clazz()
      Gets HTML/SVG attribute class.
      Returns:
      value of the class attribute or null if the attribute is missing
    • clipPath

      default DomElement clipPath(String value)
      Sets SVG attribute clip-path. If value is null, the attribute is removed.
      Parameters:
      value - new value of the clip-path attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • clipPath

      default String clipPath()
      Gets SVG attribute clip-path.
      Returns:
      value of the clip-path attribute or null if the attribute is missing
    • clipRule

      default DomElement clipRule(String value)
      Sets SVG attribute clip-rule. If value is null, the attribute is removed.
      Parameters:
      value - new value of the clip-rule attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • clipRule

      default String clipRule()
      Gets SVG attribute clip-rule.
      Returns:
      value of the clip-rule attribute or null if the attribute is missing
    • clipPathUnits

      default DomElement clipPathUnits(String value)
      Sets SVG attribute clipPathUnits. If value is null, the attribute is removed.
      Parameters:
      value - new value of the clipPathUnits attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • clipPathUnits

      default String clipPathUnits()
      Gets SVG attribute clipPathUnits.
      Returns:
      value of the clipPathUnits attribute or null if the attribute is missing
    • color

      default DomElement color(String value)
      Sets SVG attribute color. If value is null, the attribute is removed.
      Parameters:
      value - new value of the color attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • color

      default String color()
      Gets SVG attribute color.
      Returns:
      value of the color attribute or null if the attribute is missing
    • colorInterpolation

      default DomElement colorInterpolation(String value)
      Sets SVG attribute color-interpolation. If value is null, the attribute is removed.
      Parameters:
      value - new value of the color-interpolation attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • colorInterpolation

      default String colorInterpolation()
      Gets SVG attribute color-interpolation.
      Returns:
      value of the color-interpolation attribute or null if the attribute is missing
    • colorInterpolationFilters

      default DomElement colorInterpolationFilters(String value)
      Sets SVG attribute color-interpolation-filters. If value is null, the attribute is removed.
      Parameters:
      value - new value of the color-interpolation-filters attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • colorInterpolationFilters

      default String colorInterpolationFilters()
      Gets SVG attribute color-interpolation-filters.
      Returns:
      value of the color-interpolation-filters attribute or null if the attribute is missing
    • colorProfile

      default DomElement colorProfile(String value)
      Sets SVG attribute color-profile. If value is null, the attribute is removed.
      Parameters:
      value - new value of the color-profile attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • colorProfile

      default String colorProfile()
      Gets SVG attribute color-profile.
      Returns:
      value of the color-profile attribute or null if the attribute is missing
    • colorRendering

      default DomElement colorRendering(String value)
      Sets SVG attribute color-rendering. If value is null, the attribute is removed.
      Parameters:
      value - new value of the color-rendering attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • colorRendering

      default String colorRendering()
      Gets SVG attribute color-rendering.
      Returns:
      value of the color-rendering attribute or null if the attribute is missing
    • cols

      default DomElement cols(String value)
      Sets HTML attribute cols. If value is null, the attribute is removed.
      Parameters:
      value - new value of the cols attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • cols

      default String cols()
      Gets HTML attribute cols.
      Returns:
      value of the cols attribute or null if the attribute is missing
    • cols

      default DomElement cols(int value)
      Sets HTML attribute cols to an integer value.
      Parameters:
      value - new value of the cols attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • colsAsInt

      default OptionalInt colsAsInt()
      Gets HTML attribute cols as an integer value.
      Returns:
      this
      Throws:
      NumberFormatException - if the attribute is not an integer
    • colspan

      default DomElement colspan(String value)
      Sets HTML attribute colspan. If value is null, the attribute is removed.
      Parameters:
      value - new value of the colspan attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • colspan

      default String colspan()
      Gets HTML attribute colspan.
      Returns:
      value of the colspan attribute or null if the attribute is missing
    • colspan

      default DomElement colspan(int value)
      Sets HTML attribute colspan to an integer value.
      Parameters:
      value - new value of the colspan attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • colspanAsInt

      default OptionalInt colspanAsInt()
      Gets HTML attribute colspan as an integer value.
      Returns:
      this
      Throws:
      NumberFormatException - if the attribute is not an integer
    • content

      default DomElement content(String value)
      Sets HTML attribute content. If value is null, the attribute is removed.
      Parameters:
      value - new value of the content attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • content

      default String content()
      Gets HTML attribute content.
      Returns:
      value of the content attribute or null if the attribute is missing
    • contenteditable

      default DomElement contenteditable(String value)
      Sets HTML attribute contenteditable. If value is null, the attribute is removed.
      Parameters:
      value - new value of the contenteditable attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • contenteditable

      default String contenteditable()
      Gets HTML attribute contenteditable.
      Returns:
      value of the contenteditable attribute or null if the attribute is missing
    • contextmenu

      default DomElement contextmenu(String value)
      Sets HTML attribute contextmenu. If value is null, the attribute is removed.
      Parameters:
      value - new value of the contextmenu attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • contextmenu

      default String contextmenu()
      Gets HTML attribute contextmenu.
      Returns:
      value of the contextmenu attribute or null if the attribute is missing
    • controls

      default DomElement controls()
      Adds boolean HTML attribute controls. This method has no effect if the attribute is already present.
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • controls

      default DomElement controls(boolean present)
      Adds or removes boolean HTML attribute controls.
      Parameters:
      present - true to add the attribute, false to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • controlsAsBoolean

      default boolean controlsAsBoolean()
      Gets boolean HTML attribute controls.
      Returns:
      value of the controls attribute or null if the attribute is missing
    • coords

      default DomElement coords(String value)
      Sets HTML attribute coords. If value is null, the attribute is removed.
      Parameters:
      value - new value of the coords attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • coords

      default String coords()
      Gets HTML attribute coords.
      Returns:
      value of the coords attribute or null if the attribute is missing
    • crossorigin

      default DomElement crossorigin(String value)
      Sets HTML attribute crossorigin. If value is null, the attribute is removed.
      Parameters:
      value - new value of the crossorigin attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • crossorigin

      default String crossorigin()
      Gets HTML attribute crossorigin.
      Returns:
      value of the crossorigin attribute or null if the attribute is missing
    • cursor

      default DomElement cursor(String value)
      Sets SVG attribute cursor. If value is null, the attribute is removed.
      Parameters:
      value - new value of the cursor attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • cursor

      default String cursor()
      Gets SVG attribute cursor.
      Returns:
      value of the cursor attribute or null if the attribute is missing
    • cx

      default DomElement cx(String value)
      Sets SVG attribute cx. If value is null, the attribute is removed.
      Parameters:
      value - new value of the cx attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • cx

      default String cx()
      Gets SVG attribute cx.
      Returns:
      value of the cx attribute or null if the attribute is missing
    • cx

      default DomElement cx(double value)
      Sets SVG attribute cx to a floating-point value.
      Parameters:
      value - new value of the cx attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • cxAsDouble

      default OptionalDouble cxAsDouble()
      Gets SVG attribute cx as a floating-point value.
      Returns:
      this
      Throws:
      NumberFormatException - if the attribute is not a floating-point number
    • cy

      default DomElement cy(String value)
      Sets SVG attribute cy. If value is null, the attribute is removed.
      Parameters:
      value - new value of the cy attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • cy

      default String cy()
      Gets SVG attribute cy.
      Returns:
      value of the cy attribute or null if the attribute is missing
    • cy

      default DomElement cy(double value)
      Sets SVG attribute cy to a floating-point value.
      Parameters:
      value - new value of the cy attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • cyAsDouble

      default OptionalDouble cyAsDouble()
      Gets SVG attribute cy as a floating-point value.
      Returns:
      this
      Throws:
      NumberFormatException - if the attribute is not a floating-point number
    • d

      default DomElement d(String value)
      Sets SVG attribute d. If value is null, the attribute is removed.
      Parameters:
      value - new value of the d attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • d

      default String d()
      Gets SVG attribute d.
      Returns:
      value of the d attribute or null if the attribute is missing
    • plaindata

      default DomElement plaindata(String value)
      Sets HTML attribute data. If value is null, the attribute is removed.
      Parameters:
      value - new value of the data attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • plaindata

      default String plaindata()
      Gets HTML attribute data.
      Returns:
      value of the data attribute or null if the attribute is missing
    • datetime

      default DomElement datetime(String value)
      Sets HTML attribute datetime. If value is null, the attribute is removed.
      Parameters:
      value - new value of the datetime attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • datetime

      default String datetime()
      Gets HTML attribute datetime.
      Returns:
      value of the datetime attribute or null if the attribute is missing
    • defaults

      default DomElement defaults()
      Adds boolean HTML attribute default. This method has no effect if the attribute is already present.
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • defaults

      default DomElement defaults(boolean present)
      Adds or removes boolean HTML attribute default.
      Parameters:
      present - true to add the attribute, false to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • defaultsAsBoolean

      default boolean defaultsAsBoolean()
      Gets boolean HTML attribute default.
      Returns:
      value of the default attribute or null if the attribute is missing
    • defer

      default DomElement defer()
      Adds boolean HTML attribute defer. This method has no effect if the attribute is already present.
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • defer

      default DomElement defer(boolean present)
      Adds or removes boolean HTML attribute defer.
      Parameters:
      present - true to add the attribute, false to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • deferAsBoolean

      default boolean deferAsBoolean()
      Gets boolean HTML attribute defer.
      Returns:
      value of the defer attribute or null if the attribute is missing
    • diffuseConstant

      default DomElement diffuseConstant(String value)
      Sets SVG attribute diffuseConstant. If value is null, the attribute is removed.
      Parameters:
      value - new value of the diffuseConstant attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • diffuseConstant

      default String diffuseConstant()
      Gets SVG attribute diffuseConstant.
      Returns:
      value of the diffuseConstant attribute or null if the attribute is missing
    • diffuseConstant

      default DomElement diffuseConstant(double value)
      Sets SVG attribute diffuseConstant to a floating-point value.
      Parameters:
      value - new value of the diffuseConstant attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • diffuseConstantAsDouble

      default OptionalDouble diffuseConstantAsDouble()
      Gets SVG attribute diffuseConstant as a floating-point value.
      Returns:
      this
      Throws:
      NumberFormatException - if the attribute is not a floating-point number
    • dir

      default DomElement dir(String value)
      Sets HTML attribute dir. If value is null, the attribute is removed.
      Parameters:
      value - new value of the dir attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • dir

      default String dir()
      Gets HTML attribute dir.
      Returns:
      value of the dir attribute or null if the attribute is missing
    • direction

      default DomElement direction(String value)
      Sets SVG attribute direction. If value is null, the attribute is removed.
      Parameters:
      value - new value of the direction attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • direction

      default String direction()
      Gets SVG attribute direction.
      Returns:
      value of the direction attribute or null if the attribute is missing
    • disabled

      default DomElement disabled()
      Adds boolean HTML attribute disabled. This method has no effect if the attribute is already present.
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • disabled

      default DomElement disabled(boolean present)
      Adds or removes boolean HTML attribute disabled.
      Parameters:
      present - true to add the attribute, false to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • disabledAsBoolean

      default boolean disabledAsBoolean()
      Gets boolean HTML attribute disabled.
      Returns:
      value of the disabled attribute or null if the attribute is missing
    • display

      default DomElement display(String value)
      Sets SVG attribute display. If value is null, the attribute is removed.
      Parameters:
      value - new value of the display attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • display

      default String display()
      Gets SVG attribute display.
      Returns:
      value of the display attribute or null if the attribute is missing
    • divisor

      default DomElement divisor(String value)
      Sets SVG attribute divisor. If value is null, the attribute is removed.
      Parameters:
      value - new value of the divisor attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • divisor

      default String divisor()
      Gets SVG attribute divisor.
      Returns:
      value of the divisor attribute or null if the attribute is missing
    • divisor

      default DomElement divisor(double value)
      Sets SVG attribute divisor to a floating-point value.
      Parameters:
      value - new value of the divisor attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • divisorAsDouble

      default OptionalDouble divisorAsDouble()
      Gets SVG attribute divisor as a floating-point value.
      Returns:
      this
      Throws:
      NumberFormatException - if the attribute is not a floating-point number
    • dominantBaseline

      default DomElement dominantBaseline(String value)
      Sets SVG attribute dominant-baseline. If value is null, the attribute is removed.
      Parameters:
      value - new value of the dominant-baseline attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • dominantBaseline

      default String dominantBaseline()
      Gets SVG attribute dominant-baseline.
      Returns:
      value of the dominant-baseline attribute or null if the attribute is missing
    • download

      default DomElement download()
      Adds boolean HTML attribute download. This method has no effect if the attribute is already present.
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • download

      default DomElement download(boolean present)
      Adds or removes boolean HTML attribute download.
      Parameters:
      present - true to add the attribute, false to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • downloadAsBoolean

      default boolean downloadAsBoolean()
      Gets boolean HTML attribute download.
      Returns:
      value of the download attribute or null if the attribute is missing
    • draggable

      default DomElement draggable(String value)
      Sets HTML attribute draggable. If value is null, the attribute is removed.
      Parameters:
      value - new value of the draggable attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • draggable

      default String draggable()
      Gets HTML attribute draggable.
      Returns:
      value of the draggable attribute or null if the attribute is missing
    • dropzone

      default DomElement dropzone(String value)
      Sets HTML attribute dropzone. If value is null, the attribute is removed.
      Parameters:
      value - new value of the dropzone attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • dropzone

      default String dropzone()
      Gets HTML attribute dropzone.
      Returns:
      value of the dropzone attribute or null if the attribute is missing
    • dur

      default DomElement dur(String value)
      Sets SVG attribute dur. If value is null, the attribute is removed.
      Parameters:
      value - new value of the dur attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • dur

      default String dur()
      Gets SVG attribute dur.
      Returns:
      value of the dur attribute or null if the attribute is missing
    • dx

      default DomElement dx(String value)
      Sets SVG attribute dx. If value is null, the attribute is removed.
      Parameters:
      value - new value of the dx attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • dx

      default String dx()
      Gets SVG attribute dx.
      Returns:
      value of the dx attribute or null if the attribute is missing
    • dx

      default DomElement dx(double value)
      Sets SVG attribute dx to a floating-point value.
      Parameters:
      value - new value of the dx attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • dxAsDouble

      default OptionalDouble dxAsDouble()
      Gets SVG attribute dx as a floating-point value.
      Returns:
      this
      Throws:
      NumberFormatException - if the attribute is not a floating-point number
    • dy

      default DomElement dy(String value)
      Sets SVG attribute dy. If value is null, the attribute is removed.
      Parameters:
      value - new value of the dy attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • dy

      default String dy()
      Gets SVG attribute dy.
      Returns:
      value of the dy attribute or null if the attribute is missing
    • dy

      default DomElement dy(double value)
      Sets SVG attribute dy to a floating-point value.
      Parameters:
      value - new value of the dy attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • dyAsDouble

      default OptionalDouble dyAsDouble()
      Gets SVG attribute dy as a floating-point value.
      Returns:
      this
      Throws:
      NumberFormatException - if the attribute is not a floating-point number
    • edgeMode

      default DomElement edgeMode(String value)
      Sets SVG attribute edgeMode. If value is null, the attribute is removed.
      Parameters:
      value - new value of the edgeMode attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • edgeMode

      default String edgeMode()
      Gets SVG attribute edgeMode.
      Returns:
      value of the edgeMode attribute or null if the attribute is missing
    • elevation

      default DomElement elevation(String value)
      Sets SVG attribute elevation. If value is null, the attribute is removed.
      Parameters:
      value - new value of the elevation attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • elevation

      default String elevation()
      Gets SVG attribute elevation.
      Returns:
      value of the elevation attribute or null if the attribute is missing
    • elevation

      default DomElement elevation(double value)
      Sets SVG attribute elevation to a floating-point value.
      Parameters:
      value - new value of the elevation attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • elevationAsDouble

      default OptionalDouble elevationAsDouble()
      Gets SVG attribute elevation as a floating-point value.
      Returns:
      this
      Throws:
      NumberFormatException - if the attribute is not a floating-point number
    • enctype

      default DomElement enctype(String value)
      Sets HTML attribute enctype. If value is null, the attribute is removed.
      Parameters:
      value - new value of the enctype attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • enctype

      default String enctype()
      Gets HTML attribute enctype.
      Returns:
      value of the enctype attribute or null if the attribute is missing
    • end

      default DomElement end(String value)
      Sets SVG attribute end. If value is null, the attribute is removed.
      Parameters:
      value - new value of the end attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • end

      default String end()
      Gets SVG attribute end.
      Returns:
      value of the end attribute or null if the attribute is missing
    • externalResourcesRequired

      default DomElement externalResourcesRequired(String value)
      Sets SVG attribute externalResourcesRequired. If value is null, the attribute is removed.
      Parameters:
      value - new value of the externalResourcesRequired attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • externalResourcesRequired

      default String externalResourcesRequired()
      Gets SVG attribute externalResourcesRequired.
      Returns:
      value of the externalResourcesRequired attribute or null if the attribute is missing
    • fill

      default DomElement fill(String value)
      Sets SVG attribute fill. If value is null, the attribute is removed.
      Parameters:
      value - new value of the fill attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • fill

      default String fill()
      Gets SVG attribute fill.
      Returns:
      value of the fill attribute or null if the attribute is missing
    • fillOpacity

      default DomElement fillOpacity(String value)
      Sets SVG attribute fill-opacity. If value is null, the attribute is removed.
      Parameters:
      value - new value of the fill-opacity attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • fillOpacity

      default String fillOpacity()
      Gets SVG attribute fill-opacity.
      Returns:
      value of the fill-opacity attribute or null if the attribute is missing
    • fillOpacity

      default DomElement fillOpacity(double value)
      Sets SVG attribute fill-opacity to a floating-point value.
      Parameters:
      value - new value of the fill-opacity attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • fillOpacityAsDouble

      default OptionalDouble fillOpacityAsDouble()
      Gets SVG attribute fill-opacity as a floating-point value.
      Returns:
      this
      Throws:
      NumberFormatException - if the attribute is not a floating-point number
    • fillRule

      default DomElement fillRule(String value)
      Sets SVG attribute fill-rule. If value is null, the attribute is removed.
      Parameters:
      value - new value of the fill-rule attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • fillRule

      default String fillRule()
      Gets SVG attribute fill-rule.
      Returns:
      value of the fill-rule attribute or null if the attribute is missing
    • filter

      default DomElement filter(String value)
      Sets SVG attribute filter. If value is null, the attribute is removed.
      Parameters:
      value - new value of the filter attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • filter

      default String filter()
      Gets SVG attribute filter.
      Returns:
      value of the filter attribute or null if the attribute is missing
    • filterUnits

      default DomElement filterUnits(String value)
      Sets SVG attribute filterUnits. If value is null, the attribute is removed.
      Parameters:
      value - new value of the filterUnits attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • filterUnits

      default String filterUnits()
      Gets SVG attribute filterUnits.
      Returns:
      value of the filterUnits attribute or null if the attribute is missing
    • floodColor

      default DomElement floodColor(String value)
      Sets SVG attribute flood-color. If value is null, the attribute is removed.
      Parameters:
      value - new value of the flood-color attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • floodColor

      default String floodColor()
      Gets SVG attribute flood-color.
      Returns:
      value of the flood-color attribute or null if the attribute is missing
    • floodOpacity

      default DomElement floodOpacity(String value)
      Sets SVG attribute flood-opacity. If value is null, the attribute is removed.
      Parameters:
      value - new value of the flood-opacity attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • floodOpacity

      default String floodOpacity()
      Gets SVG attribute flood-opacity.
      Returns:
      value of the flood-opacity attribute or null if the attribute is missing
    • floodOpacity

      default DomElement floodOpacity(double value)
      Sets SVG attribute flood-opacity to a floating-point value.
      Parameters:
      value - new value of the flood-opacity attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • floodOpacityAsDouble

      default OptionalDouble floodOpacityAsDouble()
      Gets SVG attribute flood-opacity as a floating-point value.
      Returns:
      this
      Throws:
      NumberFormatException - if the attribute is not a floating-point number
    • fontFamily

      default DomElement fontFamily(String value)
      Sets SVG attribute font-family. If value is null, the attribute is removed.
      Parameters:
      value - new value of the font-family attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • fontFamily

      default String fontFamily()
      Gets SVG attribute font-family.
      Returns:
      value of the font-family attribute or null if the attribute is missing
    • fontSize

      default DomElement fontSize(String value)
      Sets SVG attribute font-size. If value is null, the attribute is removed.
      Parameters:
      value - new value of the font-size attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • fontSize

      default String fontSize()
      Gets SVG attribute font-size.
      Returns:
      value of the font-size attribute or null if the attribute is missing
    • fontSizeAdjust

      default DomElement fontSizeAdjust(String value)
      Sets SVG attribute font-size-adjust. If value is null, the attribute is removed.
      Parameters:
      value - new value of the font-size-adjust attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • fontSizeAdjust

      default String fontSizeAdjust()
      Gets SVG attribute font-size-adjust.
      Returns:
      value of the font-size-adjust attribute or null if the attribute is missing
    • fontSizeAdjust

      default DomElement fontSizeAdjust(double value)
      Sets SVG attribute font-size-adjust to a floating-point value.
      Parameters:
      value - new value of the font-size-adjust attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • fontSizeAdjustAsDouble

      default OptionalDouble fontSizeAdjustAsDouble()
      Gets SVG attribute font-size-adjust as a floating-point value.
      Returns:
      this
      Throws:
      NumberFormatException - if the attribute is not a floating-point number
    • fontStretch

      default DomElement fontStretch(String value)
      Sets SVG attribute font-stretch. If value is null, the attribute is removed.
      Parameters:
      value - new value of the font-stretch attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • fontStretch

      default String fontStretch()
      Gets SVG attribute font-stretch.
      Returns:
      value of the font-stretch attribute or null if the attribute is missing
    • fontVariant

      default DomElement fontVariant(String value)
      Sets SVG attribute font-variant. If value is null, the attribute is removed.
      Parameters:
      value - new value of the font-variant attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • fontVariant

      default String fontVariant()
      Gets SVG attribute font-variant.
      Returns:
      value of the font-variant attribute or null if the attribute is missing
    • fontWeight

      default DomElement fontWeight(String value)
      Sets SVG attribute font-weight. If value is null, the attribute is removed.
      Parameters:
      value - new value of the font-weight attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • fontWeight

      default String fontWeight()
      Gets SVG attribute font-weight.
      Returns:
      value of the font-weight attribute or null if the attribute is missing
    • fontWeight

      default DomElement fontWeight(int value)
      Sets SVG attribute font-weight to an integer value.
      Parameters:
      value - new value of the font-weight attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • fontWeightAsInt

      default OptionalInt fontWeightAsInt()
      Gets SVG attribute font-weight as an integer value.
      Returns:
      this
      Throws:
      NumberFormatException - if the attribute is not an integer
    • forid

      default DomElement forid(String value)
      Sets HTML attribute for. If value is null, the attribute is removed.
      Parameters:
      value - new value of the for attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • forid

      default String forid()
      Gets HTML attribute for.
      Returns:
      value of the for attribute or null if the attribute is missing
    • form

      default DomElement form(String value)
      Sets HTML attribute form. If value is null, the attribute is removed.
      Parameters:
      value - new value of the form attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • form

      default String form()
      Gets HTML attribute form.
      Returns:
      value of the form attribute or null if the attribute is missing
    • formaction

      default DomElement formaction(String value)
      Sets HTML attribute formaction. If value is null, the attribute is removed.
      Parameters:
      value - new value of the formaction attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • formaction

      default String formaction()
      Gets HTML attribute formaction.
      Returns:
      value of the formaction attribute or null if the attribute is missing
    • formmethod

      default DomElement formmethod(String value)
      Sets HTML attribute formmethod. If value is null, the attribute is removed.
      Parameters:
      value - new value of the formmethod attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • formmethod

      default String formmethod()
      Gets HTML attribute formmethod.
      Returns:
      value of the formmethod attribute or null if the attribute is missing
    • formnovalidate

      default DomElement formnovalidate()
      Adds boolean HTML attribute formnovalidate. This method has no effect if the attribute is already present.
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • formnovalidate

      default DomElement formnovalidate(boolean present)
      Adds or removes boolean HTML attribute formnovalidate.
      Parameters:
      present - true to add the attribute, false to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • formnovalidateAsBoolean

      default boolean formnovalidateAsBoolean()
      Gets boolean HTML attribute formnovalidate.
      Returns:
      value of the formnovalidate attribute or null if the attribute is missing
    • formtarget

      default DomElement formtarget(String value)
      Sets HTML attribute formtarget. If value is null, the attribute is removed.
      Parameters:
      value - new value of the formtarget attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • formtarget

      default String formtarget()
      Gets HTML attribute formtarget.
      Returns:
      value of the formtarget attribute or null if the attribute is missing
    • fr

      default DomElement fr(String value)
      Sets SVG attribute fr. If value is null, the attribute is removed.
      Parameters:
      value - new value of the fr attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • fr

      default String fr()
      Gets SVG attribute fr.
      Returns:
      value of the fr attribute or null if the attribute is missing
    • fr

      default DomElement fr(double value)
      Sets SVG attribute fr to a floating-point value.
      Parameters:
      value - new value of the fr attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • frAsDouble

      default OptionalDouble frAsDouble()
      Gets SVG attribute fr as a floating-point value.
      Returns:
      this
      Throws:
      NumberFormatException - if the attribute is not a floating-point number
    • from

      default DomElement from(String value)
      Sets SVG attribute from. If value is null, the attribute is removed.
      Parameters:
      value - new value of the from attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • from

      default String from()
      Gets SVG attribute from.
      Returns:
      value of the from attribute or null if the attribute is missing
    • fx

      default DomElement fx(String value)
      Sets SVG attribute fx. If value is null, the attribute is removed.
      Parameters:
      value - new value of the fx attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • fx

      default String fx()
      Gets SVG attribute fx.
      Returns:
      value of the fx attribute or null if the attribute is missing
    • fx

      default DomElement fx(double value)
      Sets SVG attribute fx to a floating-point value.
      Parameters:
      value - new value of the fx attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • fxAsDouble

      default OptionalDouble fxAsDouble()
      Gets SVG attribute fx as a floating-point value.
      Returns:
      this
      Throws:
      NumberFormatException - if the attribute is not a floating-point number
    • fy

      default DomElement fy(String value)
      Sets SVG attribute fy. If value is null, the attribute is removed.
      Parameters:
      value - new value of the fy attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • fy

      default String fy()
      Gets SVG attribute fy.
      Returns:
      value of the fy attribute or null if the attribute is missing
    • fy

      default DomElement fy(double value)
      Sets SVG attribute fy to a floating-point value.
      Parameters:
      value - new value of the fy attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • fyAsDouble

      default OptionalDouble fyAsDouble()
      Gets SVG attribute fy as a floating-point value.
      Returns:
      this
      Throws:
      NumberFormatException - if the attribute is not a floating-point number
    • gradientTransform

      default DomElement gradientTransform(String value)
      Sets SVG attribute gradientTransform. If value is null, the attribute is removed.
      Parameters:
      value - new value of the gradientTransform attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • gradientTransform

      default String gradientTransform()
      Gets SVG attribute gradientTransform.
      Returns:
      value of the gradientTransform attribute or null if the attribute is missing
    • gradientUnits

      default DomElement gradientUnits(String value)
      Sets SVG attribute gradientUnits. If value is null, the attribute is removed.
      Parameters:
      value - new value of the gradientUnits attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • gradientUnits

      default String gradientUnits()
      Gets SVG attribute gradientUnits.
      Returns:
      value of the gradientUnits attribute or null if the attribute is missing
    • headers

      default DomElement headers(String value)
      Sets HTML attribute headers. If value is null, the attribute is removed.
      Parameters:
      value - new value of the headers attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • headers

      default String headers()
      Gets HTML attribute headers.
      Returns:
      value of the headers attribute or null if the attribute is missing
    • height

      default DomElement height(String value)
      Sets HTML/SVG attribute height. If value is null, the attribute is removed.
      Parameters:
      value - new value of the height attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • height

      default String height()
      Gets HTML/SVG attribute height.
      Returns:
      value of the height attribute or null if the attribute is missing
    • height

      default DomElement height(int value)
      Sets HTML/SVG attribute height to an integer value.
      Parameters:
      value - new value of the height attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • heightAsInt

      default OptionalInt heightAsInt()
      Gets HTML/SVG attribute height as an integer value.
      Returns:
      this
      Throws:
      NumberFormatException - if the attribute is not an integer
    • height

      default DomElement height(double value)
      Sets HTML/SVG attribute height to a floating-point value.
      Parameters:
      value - new value of the height attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • heightAsDouble

      default OptionalDouble heightAsDouble()
      Gets HTML/SVG attribute height as a floating-point value.
      Returns:
      this
      Throws:
      NumberFormatException - if the attribute is not a floating-point number
    • hidden

      default DomElement hidden()
      Adds boolean HTML attribute hidden. This method has no effect if the attribute is already present.
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • hidden

      default DomElement hidden(boolean present)
      Adds or removes boolean HTML attribute hidden.
      Parameters:
      present - true to add the attribute, false to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • hiddenAsBoolean

      default boolean hiddenAsBoolean()
      Gets boolean HTML attribute hidden.
      Returns:
      value of the hidden attribute or null if the attribute is missing
    • high

      default DomElement high(String value)
      Sets HTML attribute high. If value is null, the attribute is removed.
      Parameters:
      value - new value of the high attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • high

      default String high()
      Gets HTML attribute high.
      Returns:
      value of the high attribute or null if the attribute is missing
    • high

      default DomElement high(double value)
      Sets HTML attribute high to a floating-point value.
      Parameters:
      value - new value of the high attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • highAsDouble

      default OptionalDouble highAsDouble()
      Gets HTML attribute high as a floating-point value.
      Returns:
      this
      Throws:
      NumberFormatException - if the attribute is not a floating-point number
    • href

      default DomElement href(String value)
      Sets HTML/SVG attribute href. If value is null, the attribute is removed.
      Parameters:
      value - new value of the href attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • href

      default String href()
      Gets HTML/SVG attribute href.
      Returns:
      value of the href attribute or null if the attribute is missing
    • hreflang

      default DomElement hreflang(String value)
      Sets HTML attribute hreflang. If value is null, the attribute is removed.
      Parameters:
      value - new value of the hreflang attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • hreflang

      default String hreflang()
      Gets HTML attribute hreflang.
      Returns:
      value of the hreflang attribute or null if the attribute is missing
    • httpEquiv

      default DomElement httpEquiv(String value)
      Sets HTML attribute http-equiv. If value is null, the attribute is removed.
      Parameters:
      value - new value of the http-equiv attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • httpEquiv

      default String httpEquiv()
      Gets HTML attribute http-equiv.
      Returns:
      value of the http-equiv attribute or null if the attribute is missing
    • icon

      default DomElement icon(String value)
      Sets HTML attribute icon. If value is null, the attribute is removed.
      Parameters:
      value - new value of the icon attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • icon

      default String icon()
      Gets HTML attribute icon.
      Returns:
      value of the icon attribute or null if the attribute is missing
    • imageRendering

      default DomElement imageRendering(String value)
      Sets SVG attribute image-rendering. If value is null, the attribute is removed.
      Parameters:
      value - new value of the image-rendering attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • imageRendering

      default String imageRendering()
      Gets SVG attribute image-rendering.
      Returns:
      value of the image-rendering attribute or null if the attribute is missing
    • in

      default DomElement in(String value)
      Sets SVG attribute in. If value is null, the attribute is removed.
      Parameters:
      value - new value of the in attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • in

      default String in()
      Gets SVG attribute in.
      Returns:
      value of the in attribute or null if the attribute is missing
    • in2

      default DomElement in2(String value)
      Sets SVG attribute in2. If value is null, the attribute is removed.
      Parameters:
      value - new value of the in2 attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • in2

      default String in2()
      Gets SVG attribute in2.
      Returns:
      value of the in2 attribute or null if the attribute is missing
    • inputmode

      default DomElement inputmode(String value)
      Sets HTML attribute inputmode. If value is null, the attribute is removed.
      Parameters:
      value - new value of the inputmode attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • inputmode

      default String inputmode()
      Gets HTML attribute inputmode.
      Returns:
      value of the inputmode attribute or null if the attribute is missing
    • integrity

      default DomElement integrity(String value)
      Sets HTML attribute integrity. If value is null, the attribute is removed.
      Parameters:
      value - new value of the integrity attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • integrity

      default String integrity()
      Gets HTML attribute integrity.
      Returns:
      value of the integrity attribute or null if the attribute is missing
    • ismap

      default DomElement ismap()
      Adds boolean HTML attribute ismap. This method has no effect if the attribute is already present.
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • ismap

      default DomElement ismap(boolean present)
      Adds or removes boolean HTML attribute ismap.
      Parameters:
      present - true to add the attribute, false to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • ismapAsBoolean

      default boolean ismapAsBoolean()
      Gets boolean HTML attribute ismap.
      Returns:
      value of the ismap attribute or null if the attribute is missing
    • k1

      default DomElement k1(String value)
      Sets SVG attribute k1. If value is null, the attribute is removed.
      Parameters:
      value - new value of the k1 attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • k1

      default String k1()
      Gets SVG attribute k1.
      Returns:
      value of the k1 attribute or null if the attribute is missing
    • k1

      default DomElement k1(double value)
      Sets SVG attribute k1 to a floating-point value.
      Parameters:
      value - new value of the k1 attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • k1AsDouble

      default OptionalDouble k1AsDouble()
      Gets SVG attribute k1 as a floating-point value.
      Returns:
      this
      Throws:
      NumberFormatException - if the attribute is not a floating-point number
    • k2

      default DomElement k2(String value)
      Sets SVG attribute k2. If value is null, the attribute is removed.
      Parameters:
      value - new value of the k2 attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • k2

      default String k2()
      Gets SVG attribute k2.
      Returns:
      value of the k2 attribute or null if the attribute is missing
    • k2

      default DomElement k2(double value)
      Sets SVG attribute k2 to a floating-point value.
      Parameters:
      value - new value of the k2 attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • k2AsDouble

      default OptionalDouble k2AsDouble()
      Gets SVG attribute k2 as a floating-point value.
      Returns:
      this
      Throws:
      NumberFormatException - if the attribute is not a floating-point number
    • k3

      default DomElement k3(String value)
      Sets SVG attribute k3. If value is null, the attribute is removed.
      Parameters:
      value - new value of the k3 attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • k3

      default String k3()
      Gets SVG attribute k3.
      Returns:
      value of the k3 attribute or null if the attribute is missing
    • k3

      default DomElement k3(double value)
      Sets SVG attribute k3 to a floating-point value.
      Parameters:
      value - new value of the k3 attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • k3AsDouble

      default OptionalDouble k3AsDouble()
      Gets SVG attribute k3 as a floating-point value.
      Returns:
      this
      Throws:
      NumberFormatException - if the attribute is not a floating-point number
    • k4

      default DomElement k4(String value)
      Sets SVG attribute k4. If value is null, the attribute is removed.
      Parameters:
      value - new value of the k4 attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • k4

      default String k4()
      Gets SVG attribute k4.
      Returns:
      value of the k4 attribute or null if the attribute is missing
    • k4

      default DomElement k4(double value)
      Sets SVG attribute k4 to a floating-point value.
      Parameters:
      value - new value of the k4 attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • k4AsDouble

      default OptionalDouble k4AsDouble()
      Gets SVG attribute k4 as a floating-point value.
      Returns:
      this
      Throws:
      NumberFormatException - if the attribute is not a floating-point number
    • kernelMatrix

      default DomElement kernelMatrix(String value)
      Sets SVG attribute kernelMatrix. If value is null, the attribute is removed.
      Parameters:
      value - new value of the kernelMatrix attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • kernelMatrix

      default String kernelMatrix()
      Gets SVG attribute kernelMatrix.
      Returns:
      value of the kernelMatrix attribute or null if the attribute is missing
    • kernelUnitLength

      default DomElement kernelUnitLength(String value)
      Sets SVG attribute kernelUnitLength. If value is null, the attribute is removed.
      Parameters:
      value - new value of the kernelUnitLength attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • kernelUnitLength

      default String kernelUnitLength()
      Gets SVG attribute kernelUnitLength.
      Returns:
      value of the kernelUnitLength attribute or null if the attribute is missing
    • kernelUnitLength

      default DomElement kernelUnitLength(double value)
      Sets SVG attribute kernelUnitLength to a floating-point value.
      Parameters:
      value - new value of the kernelUnitLength attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • kernelUnitLengthAsDouble

      default OptionalDouble kernelUnitLengthAsDouble()
      Gets SVG attribute kernelUnitLength as a floating-point value.
      Returns:
      this
      Throws:
      NumberFormatException - if the attribute is not a floating-point number
    • kerning

      default DomElement kerning(String value)
      Sets SVG attribute kerning. If value is null, the attribute is removed.
      Parameters:
      value - new value of the kerning attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • kerning

      default String kerning()
      Gets SVG attribute kerning.
      Returns:
      value of the kerning attribute or null if the attribute is missing
    • kerning

      default DomElement kerning(double value)
      Sets SVG attribute kerning to a floating-point value.
      Parameters:
      value - new value of the kerning attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • kerningAsDouble

      default OptionalDouble kerningAsDouble()
      Gets SVG attribute kerning as a floating-point value.
      Returns:
      this
      Throws:
      NumberFormatException - if the attribute is not a floating-point number
    • keySplines

      default DomElement keySplines(String value)
      Sets SVG attribute keySplines. If value is null, the attribute is removed.
      Parameters:
      value - new value of the keySplines attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • keySplines

      default String keySplines()
      Gets SVG attribute keySplines.
      Returns:
      value of the keySplines attribute or null if the attribute is missing
    • keyTimes

      default DomElement keyTimes(String value)
      Sets SVG attribute keyTimes. If value is null, the attribute is removed.
      Parameters:
      value - new value of the keyTimes attribute or null to remove the attribute
      Returns:
      this
      Throws:
      IllegalStateException - if the element is frozen
    • keyTimes

      default String keyTimes()
      Gets SVG attribute keyTimes.
      Returns:
      value of the keyTimes