Class SectionalElement

    • Method Detail

      • type

        public final String type()

        The type of sectional element. Valid values are Heading, Text, and Divider .

        Returns:
        The type of sectional element. Valid values are Heading, Text, and Divider.
      • position

        public final FieldPosition position()

        Specifies the position of the text in a field for a Text sectional element.

        Returns:
        Specifies the position of the text in a field for a Text sectional element.
      • text

        public final String text()

        The text for a Text sectional element.

        Returns:
        The text for a Text sectional element.
      • level

        public final Integer level()

        Specifies the size of the font for a Heading sectional element. Valid values are 1 | 2 | 3 | 4 | 5 | 6.

        Returns:
        Specifies the size of the font for a Heading sectional element. Valid values are 1 | 2 | 3 | 4 | 5 | 6.
      • orientation

        public final String orientation()

        Specifies the orientation for a Divider sectional element. Valid values are horizontal or vertical.

        Returns:
        Specifies the orientation for a Divider sectional element. Valid values are horizontal or vertical.
      • excluded

        public final Boolean excluded()

        Excludes a sectional element that was generated by default for a specified data model.

        Returns:
        Excludes a sectional element that was generated by default for a specified data model.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)