http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Tbody.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Tbody.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Tbody.java new file mode 100644 index 0000000..60dc549 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Tbody.java @@ -0,0 +1,46 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/tabular-data.html#the-tbody-element'><tbody></a> element. + * <p> + */ +@Bean(typeName="tbody") +@SuppressWarnings("hiding") +public class Tbody extends HtmlElementContainer { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public Tbody children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElement */ + public final Tbody _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Tbody id(String id) { + super.id(id); + return this; + } +}
http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Td.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Td.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Td.java new file mode 100644 index 0000000..26b79e9 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Td.java @@ -0,0 +1,85 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/tabular-data.html#the-td-element'><td></a> element. + * <p> + */ +@Bean(typeName="td") +@SuppressWarnings("hiding") +public class Td extends HtmlElementMixed { + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/tabular-data.html#attr-tdth-colspan'>colspan</a> attribute. + * Number of columns that the cell is to span. + * @param colspan - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Td colspan(String colspan) { + attrs.put("colspan", colspan); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/tabular-data.html#attr-tdth-headers'>headers</a> attribute. + * The header cells for this cell. + * @param headers - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Td headers(String headers) { + attrs.put("headers", headers); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/tabular-data.html#attr-tdth-rowspan'>rowspan</a> attribute. + * Number of rows that the cell is to span. + * @param rowspan - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Td rowspan(String rowspan) { + attrs.put("rowspan", rowspan); + return this; + } + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Td _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Td id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Td children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Td child(Object child) { + this.children.add(child); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Template.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Template.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Template.java new file mode 100644 index 0000000..a3d914a --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Template.java @@ -0,0 +1,52 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/scripting-1.html#the-template-element'><template></a> element. + * <p> + */ +@Bean(typeName="template") +@SuppressWarnings("hiding") +public class Template extends HtmlElementMixed { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Template _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Template id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Template children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Template child(Object child) { + this.children.add(child); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Textarea.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Textarea.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Textarea.java new file mode 100644 index 0000000..ec4819a --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Textarea.java @@ -0,0 +1,210 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/forms.html#the-textarea-element'><textarea></a> element. + * <p> + */ +@Bean(typeName="textarea") +public class Textarea extends HtmlElementText { + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-fe-autocomplete'>autocomplete</a> attribute. + * Hint for form autofill feature. + * @param autocomplete - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Textarea autocomplete(String autocomplete) { + attrs.put("autocomplete", autocomplete); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-fe-autofocus'>autofocus</a> attribute. + * Automatically focus the form control when the page is loaded. + * @param autofocus - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Textarea autofocus(String autofocus) { + attrs.put("autofocus", autofocus); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-textarea-cols'>cols</a> attribute. + * Maximum number of characters per line. + * @param cols - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Textarea cols(String cols) { + attrs.put("cols", cols); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-fe-dirname'>dirname</a> attribute. + * Name of form field to use for sending the element's directionality in form submission. + * @param dirname - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Textarea dirname(String dirname) { + attrs.put("dirname", dirname); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-fe-disabled'>disabled</a> attribute. + * Whether the form control is disabled. + * @param disabled - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Textarea disabled(String disabled) { + attrs.put("disabled", disabled); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-fae-form'>form</a> attribute. + * Associates the control with a form element. + * @param form - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Textarea form(String form) { + attrs.put("form", form); + return this; + } + + /** + * <a class='doclink' href='-'>inputmode</a> attribute. + * Hint for selecting an input modality. + * @param inputmode - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Textarea inputmode(String inputmode) { + attrs.put("inputmode", inputmode); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-textarea-maxlength'>maxlength</a> attribute. + * Maximum length of value. + * @param maxlength - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Textarea maxlength(String maxlength) { + attrs.put("maxlength", maxlength); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-textarea-minlength'>minlength</a> attribute. + * Minimum length of value. + * @param minlength - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Textarea minlength(String minlength) { + attrs.put("minlength", minlength); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-fe-name'>name</a> attribute. + * Name of form control to use for form submission and in the form.elements API. + * @param name - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Textarea name(String name) { + attrs.put("name", name); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-textarea-placeholder'>placeholder</a> attribute. + * User-visible label to be placed within the form control. + * @param placeholder - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Textarea placeholder(String placeholder) { + attrs.put("placeholder", placeholder); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-textarea-readonly'>readonly</a> attribute. + * Whether to allow the value to be edited by the user. + * @param readonly - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Textarea readonly(String readonly) { + attrs.put("readonly", readonly); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-textarea-required'>required</a> attribute. + * Whether the control is required for form submission. + * @param required - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Textarea required(String required) { + attrs.put("required", required); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-textarea-rows'>rows</a> attribute. + * Number of lines to show. + * @param rows - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Textarea rows(String rows) { + attrs.put("rows", rows); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-textarea-wrap'>wrap</a> attribute. + * How the value of the form control is to be wrapped for form submission. + * @param wrap - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Textarea wrap(String wrap) { + attrs.put("wrap", wrap); + return this; + } + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Textarea _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Textarea id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementText */ + public Textarea text(Object text) { + super.text(text); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Tfoot.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Tfoot.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Tfoot.java new file mode 100644 index 0000000..a34478d --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Tfoot.java @@ -0,0 +1,46 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/tabular-data.html#the-tfoot-element'><tfoot></a> element. + * <p> + */ +@Bean(typeName="tfoot") +@SuppressWarnings("hiding") +public class Tfoot extends HtmlElementContainer { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public Tfoot children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElement */ + public final Tfoot _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Tfoot id(String id) { + super.id(id); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Th.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Th.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Th.java new file mode 100644 index 0000000..b05af38 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Th.java @@ -0,0 +1,118 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/tabular-data.html#the-th-element'><th></a> element. + * <p> + */ +@Bean(typeName="th") +@SuppressWarnings("hiding") +public class Th extends HtmlElementMixed { + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/tabular-data.html#attr-th-abbr'>abbr</a> attribute. + * Alternative label to use for the header cell when referencing the cell in other contexts. + * @param abbr - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Th abbr(String abbr) { + attrs.put("abbr", abbr); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/tabular-data.html#attr-tdth-colspan'>colspan</a> attribute. + * Number of columns that the cell is to span. + * @param colspan - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Th colspan(String colspan) { + attrs.put("colspan", colspan); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/tabular-data.html#attr-tdth-headers'>headers</a> attribute. + * The headers for this cell. + * @param headers - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Th headers(String headers) { + attrs.put("headers", headers); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/tabular-data.html#attr-tdth-rowspan'>rowspan</a> attribute. + * Number of rows that the cell is to span. + * @param rowspan - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Th rowspan(String rowspan) { + attrs.put("rowspan", rowspan); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/tabular-data.html#attr-th-scope'>scope</a> attribute. + * Specifies which cells the header cell applies to. + * @param scope - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Th scope(String scope) { + attrs.put("scope", scope); + return this; + } + + /** + * <a class='doclink' href='-'>sorted</a> attribute. + * Column sort direction and ordinality. + * @param sorted - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Th sorted(String sorted) { + attrs.put("sorted", sorted); + return this; + } + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Th _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Th id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Th children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Th child(Object child) { + this.children.add(child); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Thead.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Thead.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Thead.java new file mode 100644 index 0000000..26cf935 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Thead.java @@ -0,0 +1,46 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/tabular-data.html#the-thead-element'><thead></a> element. + * <p> + */ +@Bean(typeName="thead") +@SuppressWarnings("hiding") +public class Thead extends HtmlElementContainer { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public Thead children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElement */ + public final Thead _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Thead id(String id) { + super.id(id); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Time.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Time.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Time.java new file mode 100644 index 0000000..48a736e --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Time.java @@ -0,0 +1,63 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/text-level-semantics.html#the-time-element'><time></a> element. + * <p> + */ +@Bean(typeName="time") +@SuppressWarnings("hiding") +public class Time extends HtmlElementMixed { + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/text-level-semantics.html#attr-time-datetime'>datetime</a> attribute. + * Machine-readable value. + * @param datetime - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Time datetime(String datetime) { + attrs.put("datetime", datetime); + return this; + } + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Time _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Time id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Time children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Time child(Object child) { + this.children.add(child); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Title.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Title.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Title.java new file mode 100644 index 0000000..114db20 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Title.java @@ -0,0 +1,45 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/document-metadata.html#the-title-element'><title></a> element. + * <p> + */ +@Bean(typeName="title") +public class Title extends HtmlElementText { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Title _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Title id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementText */ + public Title text(Object text) { + super.text(text); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Tr.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Tr.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Tr.java new file mode 100644 index 0000000..4a0dd10 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Tr.java @@ -0,0 +1,46 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/tabular-data.html#the-tr-element'><tr></a> element. + * <p> + */ +@Bean(typeName="tr") +@SuppressWarnings("hiding") +public class Tr extends HtmlElementContainer { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public Tr children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElement */ + public final Tr _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Tr id(String id) { + super.id(id); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Track.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Track.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Track.java new file mode 100644 index 0000000..fc10b7d --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Track.java @@ -0,0 +1,94 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/embedded-content-0.html#the-track-element'><track></a> element. + * <p> + */ +@Bean(typeName="track") +public class Track extends HtmlElementEmpty { + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-track-default'>default</a> attribute. + * Enable the track if no other text track is more suitable. + * @param _default - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Track _default(String _default) { + attrs.put("default", _default); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-track-kind'>kind</a> attribute. + * The type of text track. + * @param kind - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Track kind(String kind) { + attrs.put("kind", kind); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-track-label'>label</a> attribute. + * User-visible label. + * @param label - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Track label(String label) { + attrs.put("label", label); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-track-src'>src</a> attribute. + * Address of the resource. + * @param src - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Track src(String src) { + attrs.put("src", src); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-track-srclang'>srclang</a> attribute. + * Language of the text track. + * @param srclang - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Track srclang(String srclang) { + attrs.put("srclang", srclang); + return this; + } + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Track _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Track id(String id) { + super.id(id); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/U.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/U.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/U.java new file mode 100644 index 0000000..20b5c07 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/U.java @@ -0,0 +1,52 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/text-level-semantics.html#the-u-element'><u></a> element. + * <p> + */ +@Bean(typeName="u") +@SuppressWarnings("hiding") +public class U extends HtmlElementMixed { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final U _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final U id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public U children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public U child(Object child) { + this.children.add(child); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Ul.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Ul.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Ul.java new file mode 100644 index 0000000..014254f --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Ul.java @@ -0,0 +1,52 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/grouping-content.html#the-ul-element'><ul></a> element. + * <p> + */ +@Bean(typeName="ul") +@SuppressWarnings("hiding") +public class Ul extends HtmlElementMixed { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Ul _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Ul id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Ul children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Ul child(Object child) { + this.children.add(child); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Var.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Var.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Var.java new file mode 100644 index 0000000..11464f2 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Var.java @@ -0,0 +1,52 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/text-level-semantics.html#the-var-element'><var></a> element. + * <p> + */ +@Bean(typeName="var") +@SuppressWarnings("hiding") +public class Var extends HtmlElementMixed { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Var _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Var id(String id) { + super.id(id); + return this; + } + + @Override /* HtmlElementMixed */ + public Var children(Object...children) { + super.children(children); + return this; + } + + @Override /* HtmlElementMixed */ + public Var child(Object child) { + this.children.add(child); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Video.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Video.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Video.java new file mode 100644 index 0000000..f92ccd4 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Video.java @@ -0,0 +1,160 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/embedded-content-0.html#the-video-element'><video></a> element. + * <p> + */ +@Bean(typeName="video") +public class Video extends HtmlElement { + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-media-autoplay'>autoplay</a> attribute. + * Hint that the media resource can be started automatically when the page is loaded. + * @param autoplay - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Video autoplay(String autoplay) { + attrs.put("autoplay", autoplay); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-media-controls'>controls</a> attribute. + * Show user agent controls. + * @param controls - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Video controls(String controls) { + attrs.put("controls", controls); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-media-crossorigin'>crossorigin</a> attribute. + * How the element handles crossorigin requests. + * @param crossorigin - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Video crossorigin(String crossorigin) { + attrs.put("crossorigin", crossorigin); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-dim-height'>height</a> attribute. + * Vertical dimension. + * @param height - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Video height(String height) { + attrs.put("height", height); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-media-loop'>loop</a> attribute. + * Whether to loop the media resource. + * @param loop - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Video loop(String loop) { + attrs.put("loop", loop); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-media-mediagroup'>mediagroup</a> attribute. + * Groups media elements together with an implicit MediaController. + * @param mediagroup - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Video mediagroup(String mediagroup) { + attrs.put("mediagroup", mediagroup); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-media-muted'>muted</a> attribute. + * Whether to mute the media resource by default. + * @param muted - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Video muted(String muted) { + attrs.put("muted", muted); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-video-poster'>poster</a> attribute. + * Poster frame to show prior to video playback. + * @param poster - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Video poster(String poster) { + attrs.put("poster", poster); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-media-preload'>preload</a> attribute. + * Hints how much buffering the media resource will likely need. + * @param preload - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Video preload(String preload) { + attrs.put("preload", preload); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-media-src'>src</a> attribute. + * Address of the resource. + * @param src - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Video src(String src) { + attrs.put("src", src); + return this; + } + + /** + * <a class='doclink' href='https://www.w3.org/TR/html5/embedded-content-0.html#attr-dim-width'>width</a> attribute. + * Horizontal dimension. + * @param width - The new value for this attribute. + * @return This object (for method chaining). + */ + public final Video width(String width) { + attrs.put("width", width); + return this; + } + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Video _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Video id(String id) { + super.id(id); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Wbr.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Wbr.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Wbr.java new file mode 100644 index 0000000..ceb8868 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Wbr.java @@ -0,0 +1,39 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** +package org.apache.juneau.dto.html5; + +import org.apache.juneau.annotation.*; + +/** + * DTO for an HTML <a href='https://www.w3.org/TR/html5/text-level-semantics.html#the-wbr-element'><wbr></a> element. + * <p> + */ +@Bean(typeName="wbr") +public class Wbr extends HtmlElementEmpty { + + //-------------------------------------------------------------------------------- + // Overridden methods + //-------------------------------------------------------------------------------- + + @Override /* HtmlElement */ + public final Wbr _class(String _class) { + super._class(_class); + return this; + } + + @Override /* HtmlElement */ + public final Wbr id(String id) { + super.id(id); + return this; + } +} http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/package.html ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/package.html b/juneau-core/src/main/java/org/apache/juneau/dto/html5/package.html new file mode 100644 index 0000000..a721d71 --- /dev/null +++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/package.html @@ -0,0 +1,41 @@ +<!DOCTYPE HTML> +<!-- +/*************************************************************************************************************************** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * + ***************************************************************************************************************************/ + --> +<html> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <style type="text/css"> + /* For viewing in Page Designer */ + @IMPORT url("../../../../../../../javadoc.css"); + + /* For viewing in REST interface */ + @IMPORT url("../htdocs/javadoc.css"); + body { + margin: 20px; + } + </style> + <script> + /* Replace all @code and @link tags. */ + window.onload = function() { + document.body.innerHTML = document.body.innerHTML.replace(/\{\@code ([^\}]+)\}/g, '<code>$1</code>'); + document.body.innerHTML = document.body.innerHTML.replace(/\{\@link (([^\}]+)\.)?([^\.\}]+)\}/g, '<code>$3</code>'); + } + </script> +</head> +<body> +<p>HTML Data Transfer Objects</p> +</body> +</html> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/jsonschema/Schema.java ---------------------------------------------------------------------- diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/jsonschema/Schema.java b/juneau-core/src/main/java/org/apache/juneau/dto/jsonschema/Schema.java index 8d6193c..6418c62 100644 --- a/juneau-core/src/main/java/org/apache/juneau/dto/jsonschema/Schema.java +++ b/juneau-core/src/main/java/org/apache/juneau/dto/jsonschema/Schema.java @@ -1065,6 +1065,7 @@ public class Schema { * @return This object (for method chaining). * @throws BeanRuntimeException If invalid object type passed in. */ + @BeanProperty(beanDictionary={Schema.class}) public Schema setAdditionalProperties(Object additionalProperties) { this.additionalPropertiesBoolean = null; this.additionalPropertiesSchema = null;
