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

com.github.rahulsom.svg.SVGFeDiffuseLightingContent Maven / Gradle / Ivy

The newest version!

package com.github.rahulsom.svg;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for SVG.feDiffuseLighting.content complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="SVG.feDiffuseLighting.content"&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *       &lt;sequence&gt;
 *         &lt;choice&gt;
 *           &lt;element ref="{http://www.w3.org/2000/svg}feDistantLight"/&gt;
 *           &lt;element ref="{http://www.w3.org/2000/svg}fePointLight"/&gt;
 *           &lt;element ref="{http://www.w3.org/2000/svg}feSpotLight"/&gt;
 *         &lt;/choice&gt;
 *         &lt;choice maxOccurs="unbounded" minOccurs="0"&gt;
 *           &lt;element ref="{http://www.w3.org/2000/svg}animate"/&gt;
 *           &lt;element ref="{http://www.w3.org/2000/svg}set"/&gt;
 *           &lt;element ref="{http://www.w3.org/2000/svg}animateColor"/&gt;
 *         &lt;/choice&gt;
 *       &lt;/sequence&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SVG.feDiffuseLighting.content", propOrder = {
    "feDistantLight",
    "fePointLight",
    "feSpotLight",
    "animateOrSetOrAnimateColor"
})
@XmlSeeAlso({
    FeDiffuseLighting.class
})
public class SVGFeDiffuseLightingContent {

    protected FeDistantLight feDistantLight;
    protected FePointLight fePointLight;
    protected FeSpotLight feSpotLight;
    @XmlElements({
        @XmlElement(name = "animate", type = Animate.class),
        @XmlElement(name = "set", type = Set.class),
        @XmlElement(name = "animateColor", type = AnimateColor.class)
    })
    protected List animateOrSetOrAnimateColor;

    /**
     * Gets the value of the feDistantLight property.
     * 
     * @return
     *     possible object is
     *     {@link FeDistantLight }
     *     
     */
    public FeDistantLight getFeDistantLight() {
        return feDistantLight;
    }

    /**
     * Sets the value of the feDistantLight property.
     * 
     * @param value
     *     allowed object is
     *     {@link FeDistantLight }
     *     
     */
    public void setFeDistantLight(FeDistantLight value) {
        this.feDistantLight = value;
    }

    /**
     * Gets the value of the fePointLight property.
     * 
     * @return
     *     possible object is
     *     {@link FePointLight }
     *     
     */
    public FePointLight getFePointLight() {
        return fePointLight;
    }

    /**
     * Sets the value of the fePointLight property.
     * 
     * @param value
     *     allowed object is
     *     {@link FePointLight }
     *     
     */
    public void setFePointLight(FePointLight value) {
        this.fePointLight = value;
    }

    /**
     * Gets the value of the feSpotLight property.
     * 
     * @return
     *     possible object is
     *     {@link FeSpotLight }
     *     
     */
    public FeSpotLight getFeSpotLight() {
        return feSpotLight;
    }

    /**
     * Sets the value of the feSpotLight property.
     * 
     * @param value
     *     allowed object is
     *     {@link FeSpotLight }
     *     
     */
    public void setFeSpotLight(FeSpotLight value) {
        this.feSpotLight = value;
    }

    /**
     * Gets the value of the animateOrSetOrAnimateColor property.
     * 
     * <p>
     * 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 <CODE>set</CODE> method for the animateOrSetOrAnimateColor property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getAnimateOrSetOrAnimateColor().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link Animate }
     * {@link Set }
     * {@link AnimateColor }
     * 
     * 
     */
    public List getAnimateOrSetOrAnimateColor() {
        if (animateOrSetOrAnimateColor == null) {
            animateOrSetOrAnimateColor = new ArrayList();
        }
        return this.animateOrSetOrAnimateColor;
    }

    public SVGFeDiffuseLightingContent withFeDistantLight(FeDistantLight value) {
        setFeDistantLight(value);
        return this;
    }

    public SVGFeDiffuseLightingContent withFePointLight(FePointLight value) {
        setFePointLight(value);
        return this;
    }

    public SVGFeDiffuseLightingContent withFeSpotLight(FeSpotLight value) {
        setFeSpotLight(value);
        return this;
    }

    public SVGFeDiffuseLightingContent withAnimateOrSetOrAnimateColor(Object... values) {
        if (values!= null) {
            for (Object value: values) {
                getAnimateOrSetOrAnimateColor().add(value);
            }
        }
        return this;
    }

    public SVGFeDiffuseLightingContent withAnimateOrSetOrAnimateColor(Collection values) {
        if (values!= null) {
            getAnimateOrSetOrAnimateColor().addAll(values);
        }
        return this;
    }

}