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

org.mixer2.jaxb.xhtml.ButtonContent Maven / Gradle / Ivy

The newest version!

package org.mixer2.jaxb.xhtml;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
import javax.xml.bind.annotation.XmlMixed;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.CopyStrategy;
import org.jvnet.jaxb2_commons.lang.CopyTo;
import org.jvnet.jaxb2_commons.lang.JAXBCopyStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
import org.mixer2.xhtml.AbstractJaxb;


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

button.content complex typeのJavaクラス。 * *

次のスキーマ・フラグメントは、このクラス内に含まれる予期されるコンテンツを指定します。 * *

 * <complexType name="button.content">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <choice maxOccurs="unbounded" minOccurs="0">
 *         <element ref="{http://www.w3.org/1999/xhtml}p"/>
 *         <group ref="{http://www.w3.org/1999/xhtml}heading"/>
 *         <element ref="{http://www.w3.org/1999/xhtml}div"/>
 *         <group ref="{http://www.w3.org/1999/xhtml}lists"/>
 *         <group ref="{http://www.w3.org/1999/xhtml}blocktext"/>
 *         <element ref="{http://www.w3.org/1999/xhtml}table"/>
 *         <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}object"/>
 *         <element ref="{http://www.w3.org/1999/xhtml}applet"/>
 *         <element ref="{http://www.w3.org/1999/xhtml}img"/>
 *         <element ref="{http://www.w3.org/1999/xhtml}map"/>
 *         <group ref="{http://www.w3.org/1999/xhtml}fontstyle"/>
 *         <group ref="{http://www.w3.org/1999/xhtml}phrase"/>
 *         <group ref="{http://www.w3.org/1999/xhtml}misc"/>
 *         <element ref="{http://www.w3.org/1999/xhtml}embed"/>
 *       </choice>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "button.content", propOrder = { "content" }) @XmlSeeAlso({ Button.class }) public class ButtonContent extends AbstractJaxb implements Cloneable, CopyTo { @XmlElementRefs({ @XmlElementRef(name = "b", namespace = "http://www.w3.org/1999/xhtml", type = B.class), @XmlElementRef(name = "noscript", namespace = "http://www.w3.org/1999/xhtml", type = Noscript.class), @XmlElementRef(name = "rt", namespace = "http://www.w3.org/1999/xhtml", type = Rt.class), @XmlElementRef(name = "h5", namespace = "http://www.w3.org/1999/xhtml", type = H5 .class), @XmlElementRef(name = "div", namespace = "http://www.w3.org/1999/xhtml", type = Div.class), @XmlElementRef(name = "script", namespace = "http://www.w3.org/1999/xhtml", type = Script.class), @XmlElementRef(name = "object", namespace = "http://www.w3.org/1999/xhtml", type = org.mixer2.jaxb.xhtml.Object.class), @XmlElementRef(name = "dir", namespace = "http://www.w3.org/1999/xhtml", type = Dir.class), @XmlElementRef(name = "video", namespace = "http://www.w3.org/1999/xhtml", type = Video.class), @XmlElementRef(name = "h3", namespace = "http://www.w3.org/1999/xhtml", type = H3 .class), @XmlElementRef(name = "u", namespace = "http://www.w3.org/1999/xhtml", type = U.class), @XmlElementRef(name = "q", namespace = "http://www.w3.org/1999/xhtml", type = Q.class), @XmlElementRef(name = "ins", namespace = "http://www.w3.org/1999/xhtml", type = Ins.class), @XmlElementRef(name = "hgroup", namespace = "http://www.w3.org/1999/xhtml", type = Hgroup.class), @XmlElementRef(name = "map", namespace = "http://www.w3.org/1999/xhtml", type = Map.class), @XmlElementRef(name = "noframes", namespace = "http://www.w3.org/1999/xhtml", type = Noframes.class), @XmlElementRef(name = "abbr", namespace = "http://www.w3.org/1999/xhtml", type = Abbr.class), @XmlElementRef(name = "p", namespace = "http://www.w3.org/1999/xhtml", type = P.class), @XmlElementRef(name = "audio", namespace = "http://www.w3.org/1999/xhtml", type = Audio.class), @XmlElementRef(name = "progress", namespace = "http://www.w3.org/1999/xhtml", type = Progress.class), @XmlElementRef(name = "pre", namespace = "http://www.w3.org/1999/xhtml", type = Pre.class), @XmlElementRef(name = "dl", namespace = "http://www.w3.org/1999/xhtml", type = Dl.class), @XmlElementRef(name = "sub", namespace = "http://www.w3.org/1999/xhtml", type = Sub.class), @XmlElementRef(name = "meter", namespace = "http://www.w3.org/1999/xhtml", type = Meter.class), @XmlElementRef(name = "embed", namespace = "http://www.w3.org/1999/xhtml", type = Embed.class), @XmlElementRef(name = "cite", namespace = "http://www.w3.org/1999/xhtml", type = Cite.class), @XmlElementRef(name = "command", namespace = "http://www.w3.org/1999/xhtml", type = Command.class), @XmlElementRef(name = "kbd", namespace = "http://www.w3.org/1999/xhtml", type = Kbd.class), @XmlElementRef(name = "keygen", namespace = "http://www.w3.org/1999/xhtml", type = Keygen.class), @XmlElementRef(name = "h4", namespace = "http://www.w3.org/1999/xhtml", type = H4 .class), @XmlElementRef(name = "blockquote", namespace = "http://www.w3.org/1999/xhtml", type = Blockquote.class), @XmlElementRef(name = "sup", namespace = "http://www.w3.org/1999/xhtml", type = Sup.class), @XmlElementRef(name = "big", namespace = "http://www.w3.org/1999/xhtml", type = Big.class), @XmlElementRef(name = "mark", namespace = "http://www.w3.org/1999/xhtml", type = Mark.class), @XmlElementRef(name = "samp", namespace = "http://www.w3.org/1999/xhtml", type = Samp.class), @XmlElementRef(name = "h2", namespace = "http://www.w3.org/1999/xhtml", type = H2 .class), @XmlElementRef(name = "ol", namespace = "http://www.w3.org/1999/xhtml", type = Ol.class), @XmlElementRef(name = "del", namespace = "http://www.w3.org/1999/xhtml", type = Del.class), @XmlElementRef(name = "em", namespace = "http://www.w3.org/1999/xhtml", type = Em.class), @XmlElementRef(name = "applet", namespace = "http://www.w3.org/1999/xhtml", type = Applet.class), @XmlElementRef(name = "strike", namespace = "http://www.w3.org/1999/xhtml", type = Strike.class), @XmlElementRef(name = "font", namespace = "http://www.w3.org/1999/xhtml", type = Font.class), @XmlElementRef(name = "h1", namespace = "http://www.w3.org/1999/xhtml", type = H1 .class), @XmlElementRef(name = "small", namespace = "http://www.w3.org/1999/xhtml", type = Small.class), @XmlElementRef(name = "code", namespace = "http://www.w3.org/1999/xhtml", type = Code.class), @XmlElementRef(name = "acronym", namespace = "http://www.w3.org/1999/xhtml", type = Acronym.class), @XmlElementRef(name = "ruby", namespace = "http://www.w3.org/1999/xhtml", type = Ruby.class), @XmlElementRef(name = "bdi", namespace = "http://www.w3.org/1999/xhtml", type = Bdi.class), @XmlElementRef(name = "h6", namespace = "http://www.w3.org/1999/xhtml", type = H6 .class), @XmlElementRef(name = "ul", namespace = "http://www.w3.org/1999/xhtml", type = Ul.class), @XmlElementRef(name = "table", namespace = "http://www.w3.org/1999/xhtml", type = Table.class), @XmlElementRef(name = "hr", namespace = "http://www.w3.org/1999/xhtml", type = Hr.class), @XmlElementRef(name = "bdo", namespace = "http://www.w3.org/1999/xhtml", type = Bdo.class), @XmlElementRef(name = "span", namespace = "http://www.w3.org/1999/xhtml", type = Span.class), @XmlElementRef(name = "img", namespace = "http://www.w3.org/1999/xhtml", type = Img.class), @XmlElementRef(name = "br", namespace = "http://www.w3.org/1999/xhtml", type = Br.class), @XmlElementRef(name = "basefont", namespace = "http://www.w3.org/1999/xhtml", type = Basefont.class), @XmlElementRef(name = "i", namespace = "http://www.w3.org/1999/xhtml", type = I.class), @XmlElementRef(name = "strong", namespace = "http://www.w3.org/1999/xhtml", type = Strong.class), @XmlElementRef(name = "center", namespace = "http://www.w3.org/1999/xhtml", type = Center.class), @XmlElementRef(name = "time", namespace = "http://www.w3.org/1999/xhtml", type = Time.class), @XmlElementRef(name = "tt", namespace = "http://www.w3.org/1999/xhtml", type = Tt.class), @XmlElementRef(name = "output", namespace = "http://www.w3.org/1999/xhtml", type = Output.class), @XmlElementRef(name = "address", namespace = "http://www.w3.org/1999/xhtml", type = Address.class), @XmlElementRef(name = "rp", namespace = "http://www.w3.org/1999/xhtml", type = Rp.class), @XmlElementRef(name = "dfn", namespace = "http://www.w3.org/1999/xhtml", type = Dfn.class), @XmlElementRef(name = "var", namespace = "http://www.w3.org/1999/xhtml", type = Var.class), @XmlElementRef(name = "s", namespace = "http://www.w3.org/1999/xhtml", type = S.class) }) @XmlMixed protected List content; /** * * button uses "Flow" but excludes a, form, form controls, iframe * 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 JAXB 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 B } * {@link Noscript } * {@link Rt } * {@link H5 } * {@link Div } * {@link org.mixer2.jaxb.xhtml.Object } * {@link Script } * {@link Dir } * {@link H3 } * {@link Video } * {@link U } * {@link Q } * {@link Map } * {@link Hgroup } * {@link Ins } * {@link Noframes } * {@link Abbr } * {@link P } * {@link String } * {@link Audio } * {@link Pre } * {@link Progress } * {@link Dl } * {@link Sub } * {@link Meter } * {@link Embed } * {@link Cite } * {@link Kbd } * {@link Command } * {@link H4 } * {@link Keygen } * {@link Blockquote } * {@link Sup } * {@link Big } * {@link Mark } * {@link Samp } * {@link Ol } * {@link H2 } * {@link Em } * {@link Del } * {@link Font } * {@link Strike } * {@link Applet } * {@link H1 } * {@link Small } * {@link Code } * {@link Acronym } * {@link Ruby } * {@link Bdi } * {@link Ul } * {@link H6 } * {@link Table } * {@link Hr } * {@link Span } * {@link Bdo } * {@link Img } * {@link Br } * {@link Basefont } * {@link I } * {@link Strong } * {@link Center } * {@link Tt } * {@link Time } * {@link Address } * {@link Output } * {@link Var } * {@link Dfn } * {@link Rp } * {@link S } * * */ public List getContent() { if (content == null) { content = new ArrayList(); } return this.content; } public boolean isSetContent() { return ((this.content!= null)&&(!this.content.isEmpty())); } public void unsetContent() { this.content = null; } public java.lang.Object clone() { return copyTo(createNewInstance()); } public java.lang.Object copyTo(java.lang.Object target) { final CopyStrategy strategy = JAXBCopyStrategy.INSTANCE; return copyTo(null, target, strategy); } public java.lang.Object copyTo(ObjectLocator locator, java.lang.Object target, CopyStrategy strategy) { final java.lang.Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof ButtonContent) { final ButtonContent copy = ((ButtonContent) draftCopy); if (this.isSetContent()) { List sourceContent; sourceContent = (this.isSetContent()?this.getContent():null); @SuppressWarnings("unchecked") List copyContent = ((List ) strategy.copy(LocatorUtils.property(locator, "content", sourceContent), sourceContent)); copy.unsetContent(); if (copyContent!= null) { List uniqueContentl = copy.getContent(); uniqueContentl.addAll(copyContent); } } else { copy.unsetContent(); } } return draftCopy; } public java.lang.Object createNewInstance() { return new ButtonContent(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy