Class TextContent


  • public class TextContent
    extends java.lang.Object
    • Method Detail

      • of

        public static TextContent of​(java.lang.String content)
      • ofList

        public static TextContent ofList​(java.util.List<java.lang.String> content)
      • ofBoolean

        public static TextContent ofBoolean​(java.lang.Boolean content)
      • ofBooleanList

        public static TextContent ofBooleanList​(java.util.List<java.lang.Boolean> content)
      • ofDouble

        public static TextContent ofDouble​(java.lang.Double content)
      • ofDoubleList

        public static TextContent ofDoubleList​(java.util.List<java.lang.Double> content)
      • ofInteger

        public static TextContent ofInteger​(java.lang.Integer content)
      • ofIntegerList

        public static TextContent ofIntegerList​(java.util.List<java.lang.Integer> content)
      • ofDuration

        public static TextContent ofDuration​(javax.xml.datatype.Duration content)
      • ofDurationList

        public static TextContent ofDurationList​(java.util.List<javax.xml.datatype.Duration> content)
      • ofDateTime

        public static TextContent ofDateTime​(java.time.OffsetDateTime content,
                                             boolean withOffset)
      • ofDateTime

        public static TextContent ofDateTime​(java.time.OffsetDateTime content)
      • ofDateTimeList

        public static TextContent ofDateTimeList​(java.util.List<java.time.OffsetDateTime> content,
                                                 boolean withOffset)
      • ofDateTimeList

        public static TextContent ofDateTimeList​(java.util.List<java.time.OffsetDateTime> content)
      • ofTime

        public static TextContent ofTime​(java.time.OffsetDateTime content,
                                         boolean withOffset)
      • ofTime

        public static TextContent ofTime​(java.time.OffsetDateTime content)
      • ofTimeList

        public static TextContent ofTimeList​(java.util.List<java.time.OffsetDateTime> content,
                                             boolean withOffset)
      • ofTimeList

        public static TextContent ofTimeList​(java.util.List<java.time.OffsetDateTime> content)
      • ofDate

        public static TextContent ofDate​(java.time.OffsetDateTime content,
                                         boolean withOffset)
      • ofDate

        public static TextContent ofDate​(java.time.OffsetDateTime content)
      • ofDateList

        public static TextContent ofDateList​(java.util.List<java.time.OffsetDateTime> content,
                                             boolean withOffset)
      • ofDateList

        public static TextContent ofDateList​(java.util.List<java.time.OffsetDateTime> content)
      • ofGYearMonth

        public static TextContent ofGYearMonth​(java.time.OffsetDateTime content,
                                               boolean withOffset)
      • ofGYearMonth

        public static TextContent ofGYearMonth​(java.time.OffsetDateTime content)
      • ofGYearMonthList

        public static TextContent ofGYearMonthList​(java.util.List<java.time.OffsetDateTime> content,
                                                   boolean withOffset)
      • ofGYearMonthList

        public static TextContent ofGYearMonthList​(java.util.List<java.time.OffsetDateTime> content)
      • ofGMonthDay

        public static TextContent ofGMonthDay​(java.time.OffsetDateTime content,
                                              boolean withOffset)
      • ofGMonthDay

        public static TextContent ofGMonthDay​(java.time.OffsetDateTime content)
      • ofGMonthDayList

        public static TextContent ofGMonthDayList​(java.util.List<java.time.OffsetDateTime> content,
                                                  boolean withOffset)
      • ofGMonthDayList

        public static TextContent ofGMonthDayList​(java.util.List<java.time.OffsetDateTime> content)
      • ofGDay

        public static TextContent ofGDay​(java.time.OffsetDateTime content,
                                         boolean withOffset)
      • ofGDay

        public static TextContent ofGDay​(java.time.OffsetDateTime content)
      • ofGDayList

        public static TextContent ofGDayList​(java.util.List<java.time.OffsetDateTime> content,
                                             boolean withOffset)
      • ofGDayList

        public static TextContent ofGDayList​(java.util.List<java.time.OffsetDateTime> content)
      • ofGMonth

        public static TextContent ofGMonth​(java.time.OffsetDateTime content,
                                           boolean withOffset)
      • ofGMonth

        public static TextContent ofGMonth​(java.time.OffsetDateTime content)
      • ofGMonthList

        public static TextContent ofGMonthList​(java.util.List<java.time.OffsetDateTime> content,
                                               boolean withOffset)
      • ofGMonthList

        public static TextContent ofGMonthList​(java.util.List<java.time.OffsetDateTime> content)
      • ofGYear

        public static TextContent ofGYear​(java.time.OffsetDateTime content,
                                          boolean withOffset)
      • ofGYear

        public static TextContent ofGYear​(java.time.OffsetDateTime content)
      • ofGYearList

        public static TextContent ofGYearList​(java.util.List<java.time.OffsetDateTime> content,
                                              boolean withOffset)
      • ofGYearList

        public static TextContent ofGYearList​(java.util.List<java.time.OffsetDateTime> content)
      • isEmpty

        public boolean isEmpty()
      • get

        public java.lang.String get()
      • isPresent

        public boolean isPresent()
      • ifPresent

        public void ifPresent​(java.util.function.Consumer<java.lang.String> action)
      • getAsList

        public java.util.List<java.lang.String> getAsList()
      • isList

        public boolean isList()
      • ifList

        public void ifList​(java.util.function.Consumer<java.util.List<java.lang.String>> action)
      • getAsBoolean

        public java.lang.Boolean getAsBoolean()
      • isBoolean

        public boolean isBoolean()
      • ifBoolean

        public void ifBoolean​(java.util.function.Consumer<java.lang.Boolean> action)
      • getAsBooleanList

        public java.util.List<java.lang.Boolean> getAsBooleanList()
      • isBooleanList

        public boolean isBooleanList()
      • ifBooleanList

        public void ifBooleanList​(java.util.function.Consumer<java.util.List<java.lang.Boolean>> action)
      • getAsDouble

        public java.lang.Double getAsDouble()
      • isDouble

        public boolean isDouble()
      • ifDouble

        public void ifDouble​(java.util.function.Consumer<java.lang.Double> action)
      • getAsDoubleList

        public java.util.List<java.lang.Double> getAsDoubleList()
      • isDoubleList

        public boolean isDoubleList()
      • ifDoubleList

        public void ifDoubleList​(java.util.function.Consumer<java.util.List<java.lang.Double>> action)
      • getAsInteger

        public java.lang.Integer getAsInteger()
      • isInteger

        public boolean isInteger()
      • ifInteger

        public void ifInteger​(java.util.function.Consumer<java.lang.Integer> action)
      • getAsIntegerList

        public java.util.List<java.lang.Integer> getAsIntegerList()
      • isIntegerList

        public boolean isIntegerList()
      • ifIntegerList

        public void ifIntegerList​(java.util.function.Consumer<java.util.List<java.lang.Integer>> action)
      • getAsDuration

        public javax.xml.datatype.Duration getAsDuration()
      • isDuration

        public boolean isDuration()
      • ifDuration

        public void ifDuration​(java.util.function.Consumer<javax.xml.datatype.Duration> action)
      • getAsDurationList

        public java.util.List<javax.xml.datatype.Duration> getAsDurationList()
      • isDurationList

        public boolean isDurationList()
      • ifDurationList

        public void ifDurationList​(java.util.function.Consumer<java.util.List<javax.xml.datatype.Duration>> action)
      • getAsDateTime

        public java.time.OffsetDateTime getAsDateTime()
      • isDateTime

        public boolean isDateTime()
      • ifDateTime

        public void ifDateTime​(java.util.function.Consumer<java.time.OffsetDateTime> action)
      • getAsDateTimeList

        public java.util.List<java.time.OffsetDateTime> getAsDateTimeList()
      • isDateTimeList

        public boolean isDateTimeList()
      • ifDateTimeList

        public void ifDateTimeList​(java.util.function.Consumer<java.util.List<java.time.OffsetDateTime>> action)
      • getAsTime

        public java.time.OffsetDateTime getAsTime()
      • isTime

        public boolean isTime()
      • ifTime

        public void ifTime​(java.util.function.Consumer<java.time.OffsetDateTime> action)
      • getAsTimeList

        public java.util.List<java.time.OffsetDateTime> getAsTimeList()
      • isTimeList

        public boolean isTimeList()
      • ifTimeList

        public void ifTimeList​(java.util.function.Consumer<java.util.List<java.time.OffsetDateTime>> action)
      • getAsDate

        public java.time.OffsetDateTime getAsDate()
      • isDate

        public boolean isDate()
      • ifDate

        public void ifDate​(java.util.function.Consumer<java.time.OffsetDateTime> action)
      • getAsDateList

        public java.util.List<java.time.OffsetDateTime> getAsDateList()
      • isDateList

        public boolean isDateList()
      • ifDateList

        public void ifDateList​(java.util.function.Consumer<java.util.List<java.time.OffsetDateTime>> action)
      • getAsGYearMonth

        public java.time.OffsetDateTime getAsGYearMonth()
      • isGYearMonth

        public boolean isGYearMonth()
      • ifGYearMonth

        public void ifGYearMonth​(java.util.function.Consumer<java.time.OffsetDateTime> action)
      • getAsGYearMonthList

        public java.util.List<java.time.OffsetDateTime> getAsGYearMonthList()
      • isGYearMonthList

        public boolean isGYearMonthList()
      • ifGYearMonthList

        public void ifGYearMonthList​(java.util.function.Consumer<java.util.List<java.time.OffsetDateTime>> action)
      • getAsGMonthDay

        public java.time.OffsetDateTime getAsGMonthDay()
      • isGMonthDay

        public boolean isGMonthDay()
      • ifGMonthDay

        public void ifGMonthDay​(java.util.function.Consumer<java.time.OffsetDateTime> action)
      • getAsGMonthDayList

        public java.util.List<java.time.OffsetDateTime> getAsGMonthDayList()
      • isGMonthDayList

        public boolean isGMonthDayList()
      • ifGMonthDayList

        public void ifGMonthDayList​(java.util.function.Consumer<java.util.List<java.time.OffsetDateTime>> action)
      • getAsGDay

        public java.time.OffsetDateTime getAsGDay()
      • isGDay

        public boolean isGDay()
      • ifGDay

        public void ifGDay​(java.util.function.Consumer<java.time.OffsetDateTime> action)
      • getAsGDayList

        public java.util.List<java.time.OffsetDateTime> getAsGDayList()
      • isGDayList

        public boolean isGDayList()
      • ifGDayList

        public void ifGDayList​(java.util.function.Consumer<java.util.List<java.time.OffsetDateTime>> action)
      • getAsGMonth

        public java.time.OffsetDateTime getAsGMonth()
      • isGMonth

        public boolean isGMonth()
      • ifGMonth

        public void ifGMonth​(java.util.function.Consumer<java.time.OffsetDateTime> action)
      • getAsGMonthList

        public java.util.List<java.time.OffsetDateTime> getAsGMonthList()
      • isGMonthList

        public boolean isGMonthList()
      • ifGMonthList

        public void ifGMonthList​(java.util.function.Consumer<java.util.List<java.time.OffsetDateTime>> action)
      • getAsGYear

        public java.time.OffsetDateTime getAsGYear()
      • isGYear

        public boolean isGYear()
      • ifGYear

        public void ifGYear​(java.util.function.Consumer<java.time.OffsetDateTime> action)
      • getAsGYearList

        public java.util.List<java.time.OffsetDateTime> getAsGYearList()
      • isGYearList

        public boolean isGYearList()
      • ifGYearList

        public void ifGYearList​(java.util.function.Consumer<java.util.List<java.time.OffsetDateTime>> action)
      • withZoneOffsetProvider

        public TextContent withZoneOffsetProvider​(java.util.function.Function<java.time.LocalDateTime,​java.time.ZoneOffset> zoneOffsetProvider)
      • setZoneOffsetProvider

        public static void setZoneOffsetProvider​(java.util.function.Function<java.time.LocalDateTime,​java.time.ZoneOffset> zoneOffsetProvider)
      • serializeTimeWithOffset

        public static void serializeTimeWithOffset​(boolean useTimeOffset)
      • serializeDateWithOffset

        public static void serializeDateWithOffset​(boolean useDateOffset)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object