All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.w3._1999.xhtml.ButtonContent Maven / Gradle / Ivy

Go to download

The quick library for the Clinical Quality Language Java reference implementation

There is a newer version: 3.18.0
Show newest version
//
// This file was generated by the Eclipse Implementation of JAXB, v3.0.2 
// See https://eclipse-ee4j.github.io/jaxb-ri 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2023.12.06 at 03:09:41 PM MST 
//


package org.w3._1999.xhtml;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElementRef;
import jakarta.xml.bind.annotation.XmlElementRefs;
import jakarta.xml.bind.annotation.XmlMixed;
import jakarta.xml.bind.annotation.XmlSeeAlso;
import jakarta.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;


/**
 * 
 * 				button uses "Flow" but excludes a, form and form controls
 * 			
 * 
 * 

Java class for button.content complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="button.content">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <choice maxOccurs="unbounded" minOccurs="0">
 *           <element ref="{http://www.w3.org/1999/xhtml}p"/>
 *           <choice>
 *             <element ref="{http://www.w3.org/1999/xhtml}h1"/>
 *             <element ref="{http://www.w3.org/1999/xhtml}h2"/>
 *             <element ref="{http://www.w3.org/1999/xhtml}h3"/>
 *             <element ref="{http://www.w3.org/1999/xhtml}h4"/>
 *             <element ref="{http://www.w3.org/1999/xhtml}h5"/>
 *             <element ref="{http://www.w3.org/1999/xhtml}h6"/>
 *           </choice>
 *           <element ref="{http://www.w3.org/1999/xhtml}div"/>
 *           <choice>
 *             <element ref="{http://www.w3.org/1999/xhtml}ul"/>
 *             <element ref="{http://www.w3.org/1999/xhtml}ol"/>
 *             <element ref="{http://www.w3.org/1999/xhtml}dl"/>
 *           </choice>
 *           <choice>
 *             <element ref="{http://www.w3.org/1999/xhtml}pre"/>
 *             <element ref="{http://www.w3.org/1999/xhtml}hr"/>
 *             <element ref="{http://www.w3.org/1999/xhtml}blockquote"/>
 *             <element ref="{http://www.w3.org/1999/xhtml}address"/>
 *           </choice>
 *           <element ref="{http://www.w3.org/1999/xhtml}table"/>
 *           <choice>
 *             <choice>
 *               <element ref="{http://www.w3.org/1999/xhtml}br"/>
 *               <element ref="{http://www.w3.org/1999/xhtml}span"/>
 *               <element ref="{http://www.w3.org/1999/xhtml}bdo"/>
 *               <element ref="{http://www.w3.org/1999/xhtml}map"/>
 *             </choice>
 *             <element ref="{http://www.w3.org/1999/xhtml}object"/>
 *             <element ref="{http://www.w3.org/1999/xhtml}img"/>
 *           </choice>
 *           <choice>
 *             <element ref="{http://www.w3.org/1999/xhtml}tt"/>
 *             <element ref="{http://www.w3.org/1999/xhtml}i"/>
 *             <element ref="{http://www.w3.org/1999/xhtml}b"/>
 *             <element ref="{http://www.w3.org/1999/xhtml}big"/>
 *             <element ref="{http://www.w3.org/1999/xhtml}small"/>
 *           </choice>
 *           <choice>
 *             <element ref="{http://www.w3.org/1999/xhtml}em"/>
 *             <element ref="{http://www.w3.org/1999/xhtml}strong"/>
 *             <element ref="{http://www.w3.org/1999/xhtml}dfn"/>
 *             <element ref="{http://www.w3.org/1999/xhtml}code"/>
 *             <element ref="{http://www.w3.org/1999/xhtml}q"/>
 *             <element ref="{http://www.w3.org/1999/xhtml}samp"/>
 *             <element ref="{http://www.w3.org/1999/xhtml}kbd"/>
 *             <element ref="{http://www.w3.org/1999/xhtml}var"/>
 *             <element ref="{http://www.w3.org/1999/xhtml}cite"/>
 *             <element ref="{http://www.w3.org/1999/xhtml}abbr"/>
 *             <element ref="{http://www.w3.org/1999/xhtml}acronym"/>
 *             <element ref="{http://www.w3.org/1999/xhtml}sub"/>
 *             <element ref="{http://www.w3.org/1999/xhtml}sup"/>
 *           </choice>
 *           <choice>
 *             <element ref="{http://www.w3.org/1999/xhtml}noscript"/>
 *             <choice>
 *               <element ref="{http://www.w3.org/1999/xhtml}ins"/>
 *               <element ref="{http://www.w3.org/1999/xhtml}del"/>
 *               <element ref="{http://www.w3.org/1999/xhtml}script"/>
 *             </choice>
 *           </choice>
 *         </choice>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "button.content", propOrder = { "content" }) @XmlSeeAlso({ Button.class }) public class ButtonContent implements Equals2, HashCode2, ToString2 { @XmlElementRefs({ @XmlElementRef(name = "p", namespace = "http://www.w3.org/1999/xhtml", type = P.class, required = false), @XmlElementRef(name = "h1", namespace = "http://www.w3.org/1999/xhtml", type = H1 .class, required = false), @XmlElementRef(name = "h2", namespace = "http://www.w3.org/1999/xhtml", type = H2 .class, required = false), @XmlElementRef(name = "h3", namespace = "http://www.w3.org/1999/xhtml", type = H3 .class, required = false), @XmlElementRef(name = "h4", namespace = "http://www.w3.org/1999/xhtml", type = H4 .class, required = false), @XmlElementRef(name = "h5", namespace = "http://www.w3.org/1999/xhtml", type = H5 .class, required = false), @XmlElementRef(name = "h6", namespace = "http://www.w3.org/1999/xhtml", type = H6 .class, required = false), @XmlElementRef(name = "div", namespace = "http://www.w3.org/1999/xhtml", type = Div.class, required = false), @XmlElementRef(name = "ul", namespace = "http://www.w3.org/1999/xhtml", type = Ul.class, required = false), @XmlElementRef(name = "ol", namespace = "http://www.w3.org/1999/xhtml", type = Ol.class, required = false), @XmlElementRef(name = "dl", namespace = "http://www.w3.org/1999/xhtml", type = Dl.class, required = false), @XmlElementRef(name = "pre", namespace = "http://www.w3.org/1999/xhtml", type = Pre.class, required = false), @XmlElementRef(name = "hr", namespace = "http://www.w3.org/1999/xhtml", type = Hr.class, required = false), @XmlElementRef(name = "blockquote", namespace = "http://www.w3.org/1999/xhtml", type = Blockquote.class, required = false), @XmlElementRef(name = "address", namespace = "http://www.w3.org/1999/xhtml", type = Address.class, required = false), @XmlElementRef(name = "table", namespace = "http://www.w3.org/1999/xhtml", type = Table.class, required = false), @XmlElementRef(name = "br", namespace = "http://www.w3.org/1999/xhtml", type = Br.class, required = false), @XmlElementRef(name = "span", namespace = "http://www.w3.org/1999/xhtml", type = Span.class, required = false), @XmlElementRef(name = "bdo", namespace = "http://www.w3.org/1999/xhtml", type = Bdo.class, required = false), @XmlElementRef(name = "map", namespace = "http://www.w3.org/1999/xhtml", type = Map.class, required = false), @XmlElementRef(name = "object", namespace = "http://www.w3.org/1999/xhtml", type = org.w3._1999.xhtml.Object.class, required = false), @XmlElementRef(name = "img", namespace = "http://www.w3.org/1999/xhtml", type = Img.class, required = false), @XmlElementRef(name = "tt", namespace = "http://www.w3.org/1999/xhtml", type = Tt.class, required = false), @XmlElementRef(name = "i", namespace = "http://www.w3.org/1999/xhtml", type = I.class, required = false), @XmlElementRef(name = "b", namespace = "http://www.w3.org/1999/xhtml", type = B.class, required = false), @XmlElementRef(name = "big", namespace = "http://www.w3.org/1999/xhtml", type = Big.class, required = false), @XmlElementRef(name = "small", namespace = "http://www.w3.org/1999/xhtml", type = Small.class, required = false), @XmlElementRef(name = "em", namespace = "http://www.w3.org/1999/xhtml", type = Em.class, required = false), @XmlElementRef(name = "strong", namespace = "http://www.w3.org/1999/xhtml", type = Strong.class, required = false), @XmlElementRef(name = "dfn", namespace = "http://www.w3.org/1999/xhtml", type = Dfn.class, required = false), @XmlElementRef(name = "code", namespace = "http://www.w3.org/1999/xhtml", type = Code.class, required = false), @XmlElementRef(name = "q", namespace = "http://www.w3.org/1999/xhtml", type = Q.class, required = false), @XmlElementRef(name = "samp", namespace = "http://www.w3.org/1999/xhtml", type = Samp.class, required = false), @XmlElementRef(name = "kbd", namespace = "http://www.w3.org/1999/xhtml", type = Kbd.class, required = false), @XmlElementRef(name = "var", namespace = "http://www.w3.org/1999/xhtml", type = Var.class, required = false), @XmlElementRef(name = "cite", namespace = "http://www.w3.org/1999/xhtml", type = Cite.class, required = false), @XmlElementRef(name = "abbr", namespace = "http://www.w3.org/1999/xhtml", type = Abbr.class, required = false), @XmlElementRef(name = "acronym", namespace = "http://www.w3.org/1999/xhtml", type = Acronym.class, required = false), @XmlElementRef(name = "sub", namespace = "http://www.w3.org/1999/xhtml", type = Sub.class, required = false), @XmlElementRef(name = "sup", namespace = "http://www.w3.org/1999/xhtml", type = Sup.class, required = false), @XmlElementRef(name = "noscript", namespace = "http://www.w3.org/1999/xhtml", type = Noscript.class, required = false), @XmlElementRef(name = "ins", namespace = "http://www.w3.org/1999/xhtml", type = Ins.class, required = false), @XmlElementRef(name = "del", namespace = "http://www.w3.org/1999/xhtml", type = Del.class, required = false), @XmlElementRef(name = "script", namespace = "http://www.w3.org/1999/xhtml", type = Script.class, required = false) }) @XmlMixed protected List content; /** * * button uses "Flow" but excludes a, form and form controls * Gets the value of the content property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the Jakarta XML Binding object. * This is why there is not a set method for the content property. * *

* For example, to add a new item, do as follows: *

     *    getContent().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link String } * {@link Abbr } * {@link Acronym } * {@link Address } * {@link B } * {@link Bdo } * {@link Big } * {@link Blockquote } * {@link Br } * {@link Cite } * {@link Code } * {@link Del } * {@link Dfn } * {@link Div } * {@link Dl } * {@link Em } * {@link H1 } * {@link H2 } * {@link H3 } * {@link H4 } * {@link H5 } * {@link H6 } * {@link Hr } * {@link I } * {@link Img } * {@link Ins } * {@link Kbd } * {@link Map } * {@link Noscript } * {@link org.w3._1999.xhtml.Object } * {@link Ol } * {@link P } * {@link Pre } * {@link Q } * {@link Samp } * {@link Script } * {@link Small } * {@link Span } * {@link Strong } * {@link Sub } * {@link Sup } * {@link Table } * {@link Tt } * {@link Ul } * {@link Var } * * */ public List getContent() { if (content == null) { content = new ArrayList(); } return this.content; } public ButtonContent withContent(java.lang.Object... values) { if (values!= null) { for (java.lang.Object value: values) { getContent().add(value); } } return this; } public ButtonContent withContent(Collection values) { if (values!= null) { getContent().addAll(values); } return this; } @Override public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, java.lang.Object object, EqualsStrategy2 strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final ButtonContent that = ((ButtonContent) object); { List lhsContent; lhsContent = (((this.content!= null)&&(!this.content.isEmpty()))?this.getContent():null); List rhsContent; rhsContent = (((that.content!= null)&&(!that.content.isEmpty()))?that.getContent():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "content", lhsContent), LocatorUtils.property(thatLocator, "content", rhsContent), lhsContent, rhsContent, ((this.content!= null)&&(!this.content.isEmpty())), ((that.content!= null)&&(!that.content.isEmpty())))) { return false; } } return true; } @Override public boolean equals(java.lang.Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.getInstance(); return equals(null, null, object, strategy); } @Override public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { List theContent; theContent = (((this.content!= null)&&(!this.content.isEmpty()))?this.getContent():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "content", theContent), currentHashCode, theContent, ((this.content!= null)&&(!this.content.isEmpty()))); } return currentHashCode; } @Override public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance(); return this.hashCode(null, strategy); } @Override public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.getInstance(); final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } @Override public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } @Override public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { List theContent; theContent = (((this.content!= null)&&(!this.content.isEmpty()))?this.getContent():null); strategy.appendField(locator, this, "content", buffer, theContent, ((this.content!= null)&&(!this.content.isEmpty()))); } return buffer; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy