You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juneau.apache.org by ja...@apache.org on 2017/01/21 22:25:17 UTC
[18/21] incubator-juneau git commit: HTML and XML serialization
support improvements.
http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/4fb01038/juneau-core/src/main/java/org/apache/juneau/dto/html5/Fieldset.java
----------------------------------------------------------------------
diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Fieldset.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Fieldset.java
new file mode 100644
index 0000000..4a9bfad
--- /dev/null
+++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Fieldset.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/forms.html#the-fieldset-element'><fieldset></a> element.
+ * <p>
+ */
+@Bean(typeName="fieldset")
+@SuppressWarnings("hiding")
+public class Fieldset extends HtmlElementMixed {
+
+ /**
+ * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-fieldset-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 Fieldset 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 Fieldset form(String form) {
+ attrs.put("form", form);
+ 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 Fieldset name(String name) {
+ attrs.put("name", name);
+ return this;
+ }
+
+ //--------------------------------------------------------------------------------
+ // Overridden methods
+ //--------------------------------------------------------------------------------
+
+ @Override /* HtmlElement */
+ public final Fieldset _class(String _class) {
+ super._class(_class);
+ return this;
+ }
+
+ @Override /* HtmlElement */
+ public final Fieldset id(String id) {
+ super.id(id);
+ return this;
+ }
+
+ @Override /* HtmlElementMixed */
+ public Fieldset children(Object...children) {
+ super.children(children);
+ return this;
+ }
+
+ @Override /* HtmlElementMixed */
+ public Fieldset 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/Figcaption.java
----------------------------------------------------------------------
diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Figcaption.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Figcaption.java
new file mode 100644
index 0000000..9dafbaa
--- /dev/null
+++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Figcaption.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-figcaption-element'><figcaption></a> element.
+ * <p>
+ */
+@Bean(typeName="figcaption")
+@SuppressWarnings("hiding")
+public class Figcaption extends HtmlElementMixed {
+
+ //--------------------------------------------------------------------------------
+ // Overridden methods
+ //--------------------------------------------------------------------------------
+
+ @Override /* HtmlElement */
+ public final Figcaption _class(String _class) {
+ super._class(_class);
+ return this;
+ }
+
+ @Override /* HtmlElement */
+ public final Figcaption id(String id) {
+ super.id(id);
+ return this;
+ }
+
+ @Override /* HtmlElementMixed */
+ public Figcaption children(Object...children) {
+ super.children(children);
+ return this;
+ }
+
+ @Override /* HtmlElementMixed */
+ public Figcaption 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/Figure.java
----------------------------------------------------------------------
diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Figure.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Figure.java
new file mode 100644
index 0000000..102b0d1
--- /dev/null
+++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Figure.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/grouping-content.html#the-figure-element'><figure></a> element.
+ * <p>
+ */
+@Bean(typeName="figure")
+@SuppressWarnings("hiding")
+public class Figure extends HtmlElementContainer {
+
+ //--------------------------------------------------------------------------------
+ // Overridden methods
+ //--------------------------------------------------------------------------------
+
+ @Override /* HtmlElement */
+ public final Figure children(Object...children) {
+ super.children(children);
+ return this;
+ }
+
+ @Override /* HtmlElement */
+ public final Figure _class(String _class) {
+ super._class(_class);
+ return this;
+ }
+
+ @Override /* HtmlElement */
+ public final Figure 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/Footer.java
----------------------------------------------------------------------
diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Footer.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Footer.java
new file mode 100644
index 0000000..b2844c0
--- /dev/null
+++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Footer.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/sections.html#the-footer-element'><footer></a> element.
+ * <p>
+ */
+@Bean(typeName="footer")
+@SuppressWarnings("hiding")
+public class Footer extends HtmlElementMixed {
+
+ //--------------------------------------------------------------------------------
+ // Overridden methods
+ //--------------------------------------------------------------------------------
+
+ @Override /* HtmlElement */
+ public final Footer _class(String _class) {
+ super._class(_class);
+ return this;
+ }
+
+ @Override /* HtmlElement */
+ public final Footer id(String id) {
+ super.id(id);
+ return this;
+ }
+
+ @Override /* HtmlElementMixed */
+ public Footer children(Object...children) {
+ super.children(children);
+ return this;
+ }
+
+ @Override /* HtmlElementMixed */
+ public Footer 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/Form.java
----------------------------------------------------------------------
diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Form.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Form.java
new file mode 100644
index 0000000..6e04499
--- /dev/null
+++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Form.java
@@ -0,0 +1,141 @@
+// ***************************************************************************************************************************
+// * 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-form-element'><form></a> element.
+ * <p>
+ */
+@Bean(typeName="form")
+@SuppressWarnings("hiding")
+public class Form extends HtmlElementMixed {
+
+ /**
+ * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-form-accept-charset'>accept-charset</a> attribute.
+ * Character encodings to use for form submission.
+ * @param acceptcharset - The new value for this attribute.
+ * @return This object (for method chaining).
+ */
+ public final Form acceptcharset(String acceptcharset) {
+ attrs.put("accept-charset", acceptcharset);
+ return this;
+ }
+
+ /**
+ * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-fs-action'>action</a> attribute.
+ * URL to use for form submission.
+ * @param action - The new value for this attribute.
+ * @return This object (for method chaining).
+ */
+ public final Form action(String action) {
+ attrs.put("action", action);
+ return this;
+ }
+
+ /**
+ * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-form-autocomplete'>autocomplete</a> attribute.
+ * Default setting for autofill feature for controls in the form.
+ * @param autocomplete - The new value for this attribute.
+ * @return This object (for method chaining).
+ */
+ public final Form autocomplete(String autocomplete) {
+ attrs.put("autocomplete", autocomplete);
+ return this;
+ }
+
+ /**
+ * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-fs-enctype'>enctype</a> attribute.
+ * Form data set encoding type to use for form submission.
+ * @param enctype - The new value for this attribute.
+ * @return This object (for method chaining).
+ */
+ public final Form enctype(String enctype) {
+ attrs.put("enctype", enctype);
+ return this;
+ }
+
+ /**
+ * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-fs-method'>method</a> attribute.
+ * HTTP method to use for form submission.
+ * @param method - The new value for this attribute.
+ * @return This object (for method chaining).
+ */
+ public final Form method(String method) {
+ attrs.put("method", method);
+ return this;
+ }
+
+ /**
+ * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-form-name'>name</a> attribute.
+ * Name of form to use in the document.forms API.
+ * @param name - The new value for this attribute.
+ * @return This object (for method chaining).
+ */
+ public final Form name(String name) {
+ attrs.put("name", name);
+ return this;
+ }
+
+ /**
+ * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-fs-novalidate'>novalidate</a> attribute.
+ * Bypass form control validation for form submission.
+ * @param novalidate - The new value for this attribute.
+ * @return This object (for method chaining).
+ */
+ public final Form novalidate(String novalidate) {
+ attrs.put("novalidate", novalidate);
+ return this;
+ }
+
+ /**
+ * <a class='doclink' href='https://www.w3.org/TR/html5/forms.html#attr-fs-target'>target</a> attribute.
+ * Browsing context for form submission.
+ * @param target - The new value for this attribute.
+ * @return This object (for method chaining).
+ */
+ public final Form target(String target) {
+ attrs.put("target", target);
+ return this;
+ }
+
+ //--------------------------------------------------------------------------------
+ // Overridden methods
+ //--------------------------------------------------------------------------------
+
+
+ @Override /* HtmlElement */
+ public final Form _class(String _class) {
+ super._class(_class);
+ return this;
+ }
+
+ @Override /* HtmlElement */
+ public final Form id(String id) {
+ super.id(id);
+ return this;
+ }
+
+ @Override /* HtmlElementMixed */
+ public Form children(Object...children) {
+ super.children(children);
+ return this;
+ }
+
+ @Override /* HtmlElementMixed */
+ public Form 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/H1.java
----------------------------------------------------------------------
diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/H1.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/H1.java
new file mode 100644
index 0000000..d2bf51f
--- /dev/null
+++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/H1.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/sections.html#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements'><h1></a> element.
+ * <p>
+ */
+@Bean(typeName="h1")
+@SuppressWarnings("hiding")
+public class H1 extends HtmlElementMixed {
+
+ //--------------------------------------------------------------------------------
+ // Overridden methods
+ //--------------------------------------------------------------------------------
+
+ @Override /* HtmlElement */
+ public final H1 _class(String _class) {
+ super._class(_class);
+ return this;
+ }
+
+ @Override /* HtmlElement */
+ public final H1 id(String id) {
+ super.id(id);
+ return this;
+ }
+
+ @Override /* HtmlElementMixed */
+ public H1 children(Object...children) {
+ super.children(children);
+ return this;
+ }
+
+ @Override /* HtmlElementMixed */
+ public H1 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/H2.java
----------------------------------------------------------------------
diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/H2.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/H2.java
new file mode 100644
index 0000000..9d9222d
--- /dev/null
+++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/H2.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/sections.html#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements'><h2></a> element.
+ * <p>
+ */
+@Bean(typeName="h2")
+@SuppressWarnings("hiding")
+public class H2 extends HtmlElementMixed {
+
+ //--------------------------------------------------------------------------------
+ // Overridden methods
+ //--------------------------------------------------------------------------------
+
+ @Override /* HtmlElement */
+ public final H2 _class(String _class) {
+ super._class(_class);
+ return this;
+ }
+
+ @Override /* HtmlElement */
+ public final H2 id(String id) {
+ super.id(id);
+ return this;
+ }
+
+ @Override /* HtmlElementMixed */
+ public H2 children(Object...children) {
+ super.children(children);
+ return this;
+ }
+
+ @Override /* HtmlElementMixed */
+ public H2 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/H3.java
----------------------------------------------------------------------
diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/H3.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/H3.java
new file mode 100644
index 0000000..dda0bfb
--- /dev/null
+++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/H3.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/sections.html#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements'><h3></a> element.
+ * <p>
+ */
+@Bean(typeName="h3")
+@SuppressWarnings("hiding")
+public class H3 extends HtmlElementMixed {
+
+ //--------------------------------------------------------------------------------
+ // Overridden methods
+ //--------------------------------------------------------------------------------
+
+ @Override /* HtmlElement */
+ public final H3 _class(String _class) {
+ super._class(_class);
+ return this;
+ }
+
+ @Override /* HtmlElement */
+ public final H3 id(String id) {
+ super.id(id);
+ return this;
+ }
+
+ @Override /* HtmlElementMixed */
+ public H3 children(Object...children) {
+ super.children(children);
+ return this;
+ }
+
+ @Override /* HtmlElementMixed */
+ public H3 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/H4.java
----------------------------------------------------------------------
diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/H4.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/H4.java
new file mode 100644
index 0000000..4e064f3
--- /dev/null
+++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/H4.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/sections.html#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements'><h4></a> element.
+ * <p>
+ */
+@Bean(typeName="h4")
+@SuppressWarnings("hiding")
+public class H4 extends HtmlElementMixed {
+
+ //--------------------------------------------------------------------------------
+ // Overridden methods
+ //--------------------------------------------------------------------------------
+
+ @Override /* HtmlElement */
+ public final H4 _class(String _class) {
+ super._class(_class);
+ return this;
+ }
+
+ @Override /* HtmlElement */
+ public final H4 id(String id) {
+ super.id(id);
+ return this;
+ }
+
+ @Override /* HtmlElementMixed */
+ public H4 children(Object...children) {
+ super.children(children);
+ return this;
+ }
+
+ @Override /* HtmlElementMixed */
+ public H4 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/H5.java
----------------------------------------------------------------------
diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/H5.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/H5.java
new file mode 100644
index 0000000..9a48c27
--- /dev/null
+++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/H5.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/sections.html#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements'><h5></a> element.
+ * <p>
+ */
+@Bean(typeName="h5")
+@SuppressWarnings("hiding")
+public class H5 extends HtmlElementMixed {
+
+ //--------------------------------------------------------------------------------
+ // Overridden methods
+ //--------------------------------------------------------------------------------
+
+ @Override /* HtmlElement */
+ public final H5 _class(String _class) {
+ super._class(_class);
+ return this;
+ }
+
+ @Override /* HtmlElement */
+ public final H5 id(String id) {
+ super.id(id);
+ return this;
+ }
+
+ @Override /* HtmlElementMixed */
+ public H5 children(Object...children) {
+ super.children(children);
+ return this;
+ }
+
+ @Override /* HtmlElementMixed */
+ public H5 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/H6.java
----------------------------------------------------------------------
diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/H6.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/H6.java
new file mode 100644
index 0000000..d86be21
--- /dev/null
+++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/H6.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/sections.html#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements'><h6></a> element.
+ * <p>
+ */
+@Bean(typeName="h6")
+@SuppressWarnings("hiding")
+public class H6 extends HtmlElementMixed {
+
+ //--------------------------------------------------------------------------------
+ // Overridden methods
+ //--------------------------------------------------------------------------------
+
+ @Override /* HtmlElement */
+ public final H6 _class(String _class) {
+ super._class(_class);
+ return this;
+ }
+
+ @Override /* HtmlElement */
+ public final H6 id(String id) {
+ super.id(id);
+ return this;
+ }
+
+ @Override /* HtmlElementMixed */
+ public H6 children(Object...children) {
+ super.children(children);
+ return this;
+ }
+
+ @Override /* HtmlElementMixed */
+ public H6 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/Head.java
----------------------------------------------------------------------
diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Head.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Head.java
new file mode 100644
index 0000000..4fbc1a6
--- /dev/null
+++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Head.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/document-metadata.html#the-head-element'><head></a> element.
+ * <p>
+ */
+@Bean(typeName="head")
+@SuppressWarnings("hiding")
+public class Head extends HtmlElementContainer {
+
+ //--------------------------------------------------------------------------------
+ // Overridden methods
+ //--------------------------------------------------------------------------------
+
+ @Override /* HtmlElement */
+ public Head children(Object...children) {
+ super.children(children);
+ return this;
+ }
+
+ @Override /* HtmlElement */
+ public final Head _class(String _class) {
+ super._class(_class);
+ return this;
+ }
+
+ @Override /* HtmlElement */
+ public final Head 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/Header.java
----------------------------------------------------------------------
diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Header.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Header.java
new file mode 100644
index 0000000..72c2bdd
--- /dev/null
+++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Header.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/sections.html#the-header-element'><header></a> element.
+ * <p>
+ */
+@Bean(typeName="header")
+@SuppressWarnings("hiding")
+public class Header extends HtmlElementMixed {
+
+ //--------------------------------------------------------------------------------
+ // Overridden methods
+ //--------------------------------------------------------------------------------
+
+ @Override /* HtmlElement */
+ public final Header _class(String _class) {
+ super._class(_class);
+ return this;
+ }
+
+ @Override /* HtmlElement */
+ public final Header id(String id) {
+ super.id(id);
+ return this;
+ }
+
+ @Override /* HtmlElementMixed */
+ public Header children(Object...children) {
+ super.children(children);
+ return this;
+ }
+
+ @Override /* HtmlElementMixed */
+ public Header 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/Hr.java
----------------------------------------------------------------------
diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Hr.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Hr.java
new file mode 100644
index 0000000..2ae6528
--- /dev/null
+++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Hr.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/grouping-content.html#the-hr-element'><hr></a> element.
+ * <p>
+ */
+@Bean(typeName="hr")
+public class Hr extends HtmlElementEmpty {
+
+ //--------------------------------------------------------------------------------
+ // Overridden methods
+ //--------------------------------------------------------------------------------
+
+ @Override /* HtmlElement */
+ public final Hr _class(String _class) {
+ super._class(_class);
+ return this;
+ }
+
+ @Override /* HtmlElement */
+ public final Hr 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/Html.java
----------------------------------------------------------------------
diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/Html.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Html.java
new file mode 100644
index 0000000..bdcc860
--- /dev/null
+++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/Html.java
@@ -0,0 +1,57 @@
+// ***************************************************************************************************************************
+// * 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/semantics.html#the-html-element'><html></a> element.
+ * <p>
+ */
+@Bean(typeName="html")
+@SuppressWarnings("hiding")
+public class Html extends HtmlElementContainer {
+
+ /**
+ * <a class='doclink' href='https://www.w3.org/TR/html5/semantics.html#attr-html-manifest'>manifest</a> attribute.
+ * Application cache manifest.
+ * @param manifest - The new value for this attribute.
+ * @return This object (for method chaining).
+ */
+ public final Html manifest(String manifest) {
+ attrs.put("manifest", manifest);
+ return this;
+ }
+
+ //--------------------------------------------------------------------------------
+ // Overridden methods
+ //--------------------------------------------------------------------------------
+
+ @Override /* HtmlElement */
+ public Html children(Object...children) {
+ super.children(children);
+ return this;
+ }
+
+ @Override /* HtmlElement */
+ public final Html _class(String _class) {
+ super._class(_class);
+ return this;
+ }
+
+ @Override /* HtmlElement */
+ public final Html 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/HtmlBeanDictionary.java
----------------------------------------------------------------------
diff --git a/juneau-core/src/main/java/org/apache/juneau/dto/html5/HtmlBeanDictionary.java b/juneau-core/src/main/java/org/apache/juneau/dto/html5/HtmlBeanDictionary.java
new file mode 100644
index 0000000..af301bc
--- /dev/null
+++ b/juneau-core/src/main/java/org/apache/juneau/dto/html5/HtmlBeanDictionary.java
@@ -0,0 +1,139 @@
+// ***************************************************************************************************************************
+// * 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.*;
+
+/**
+ * Defines the Java classes that make up the HTML DTO type dictionary.
+ * <p>
+ */
+public class HtmlBeanDictionary extends BeanDictionary {
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * Constructor.
+ */
+ public HtmlBeanDictionary() {
+ super(
+ A.class,
+ Abbr.class,
+ Address.class,
+ Area.class,
+ Article.class,
+ Aside.class,
+ Audio.class,
+ B.class,
+ Base.class,
+ Bdi.class,
+ Bdo.class,
+ Blockquote.class,
+ Body.class,
+ Br.class,
+ Button.class,
+ Canvas.class,
+ Caption.class,
+ Cite.class,
+ Code.class,
+ Col.class,
+ Colgroup.class,
+ Data.class,
+ Datalist.class,
+ Dd.class,
+ Del.class,
+ Dfn.class,
+ Div.class,
+ Dl.class,
+ Dt.class,
+ Em.class,
+ Embed.class,
+ Fieldset.class,
+ Figcaption.class,
+ Figure.class,
+ Footer.class,
+ Form.class,
+ H1.class,
+ H2.class,
+ H3.class,
+ H4.class,
+ H5.class,
+ H6.class,
+ Head.class,
+ Header.class,
+ Hr.class,
+ Html.class,
+ I.class,
+ Iframe.class,
+ Img.class,
+ Input.class,
+ Ins.class,
+ Kbd.class,
+ Keygen.class,
+ Label.class,
+ Legend.class,
+ Li.class,
+ Link.class,
+ Main.class,
+ Map.class,
+ Mark.class,
+ Meta.class,
+ Meter.class,
+ Nav.class,
+ Noscript.class,
+ Object2.class,
+ Ol.class,
+ Optgroup.class,
+ Option.class,
+ Output.class,
+ P.class,
+ Param.class,
+ Pre.class,
+ Progress.class,
+ Q.class,
+ Rb.class,
+ Rp.class,
+ Rt.class,
+ Rtc.class,
+ Ruby.class,
+ S.class,
+ Samp.class,
+ Script.class,
+ Section.class,
+ Select.class,
+ Small.class,
+ Source.class,
+ Span.class,
+ Strong.class,
+ Style.class,
+ Sub.class,
+ Sup.class,
+ Table.class,
+ Tbody.class,
+ Td.class,
+ Template.class,
+ Textarea.class,
+ Tfoot.class,
+ Th.class,
+ Thead.class,
+ Time.class,
+ Title.class,
+ Tr.class,
+ Track.class,
+ U.class,
+ Ul.class,
+ Var.class,
+ Video.class,
+ Wbr.class
+ );
+ }
+}