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

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


package com.github.rahulsom.svg;

import java.util.Collection;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlID;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * 

Java class for anonymous complex type. * *

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

 * <complexType>
 *   <complexContent>
 *     <extension base="{http://www.w3.org/2000/svg}SVG.stop.content">
 *       <attGroup ref="{http://www.w3.org/2000/svg}SVG.Core.attrib"/>
 *       <attGroup ref="{http://www.w3.org/2000/svg}SVG.Color.attrib"/>
 *       <attGroup ref="{http://www.w3.org/2000/svg}SVG.Gradient.attrib"/>
 *       <attGroup ref="{http://www.w3.org/2000/svg}SVG.Style.attrib"/>
 *       <attribute name="offset" use="required" type="{http://www.w3.org/2000/svg}NumberOrPercentage.datatype" />
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") @XmlRootElement(name = "stop") public class Stop extends SVGStopContent { @XmlAttribute(name = "offset", required = true) protected String offset; @XmlAttribute(name = "space", namespace = "http://www.w3.org/XML/1998/namespace", required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String space; @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String lang; @XmlAttribute(name = "id") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlID @XmlSchemaType(name = "ID") protected String id; @XmlAttribute(name = "base", namespace = "http://www.w3.org/XML/1998/namespace") protected String base; @XmlAttribute(name = "color-rendering") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String colorRendering; @XmlAttribute(name = "color") protected String color; @XmlAttribute(name = "color-interpolation") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String colorInterpolation; @XmlAttribute(name = "stop-color") protected String stopColor; @XmlAttribute(name = "stop-opacity") protected String stopOpacity; @XmlAttribute(name = "style") protected String style; @XmlAttribute(name = "class") protected String clazz; /** * Gets the value of the offset property. * * @return * possible object is * {@link String } * */ public String getOffset() { return offset; } /** * Sets the value of the offset property. * * @param value * allowed object is * {@link String } * */ public void setOffset(String value) { this.offset = value; } /** * Gets the value of the space property. * * @return * possible object is * {@link String } * */ public String getSpace() { return space; } /** * Sets the value of the space property. * * @param value * allowed object is * {@link String } * */ public void setSpace(String value) { this.space = value; } /** * Gets the value of the lang property. * * @return * possible object is * {@link String } * */ public String getLang() { return lang; } /** * Sets the value of the lang property. * * @param value * allowed object is * {@link String } * */ public void setLang(String value) { this.lang = value; } /** * Gets the value of the id property. * * @return * possible object is * {@link String } * */ public String getId() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link String } * */ public void setId(String value) { this.id = value; } /** * Gets the value of the base property. * * @return * possible object is * {@link String } * */ public String getBase() { return base; } /** * Sets the value of the base property. * * @param value * allowed object is * {@link String } * */ public void setBase(String value) { this.base = value; } /** * Gets the value of the colorRendering property. * * @return * possible object is * {@link String } * */ public String getColorRendering() { return colorRendering; } /** * Sets the value of the colorRendering property. * * @param value * allowed object is * {@link String } * */ public void setColorRendering(String value) { this.colorRendering = value; } /** * Gets the value of the color property. * * @return * possible object is * {@link String } * */ public String getColor() { return color; } /** * Sets the value of the color property. * * @param value * allowed object is * {@link String } * */ public void setColor(String value) { this.color = value; } /** * Gets the value of the colorInterpolation property. * * @return * possible object is * {@link String } * */ public String getColorInterpolation() { return colorInterpolation; } /** * Sets the value of the colorInterpolation property. * * @param value * allowed object is * {@link String } * */ public void setColorInterpolation(String value) { this.colorInterpolation = value; } /** * Gets the value of the stopColor property. * * @return * possible object is * {@link String } * */ public String getStopColor() { return stopColor; } /** * Sets the value of the stopColor property. * * @param value * allowed object is * {@link String } * */ public void setStopColor(String value) { this.stopColor = value; } /** * Gets the value of the stopOpacity property. * * @return * possible object is * {@link String } * */ public String getStopOpacity() { return stopOpacity; } /** * Sets the value of the stopOpacity property. * * @param value * allowed object is * {@link String } * */ public void setStopOpacity(String value) { this.stopOpacity = value; } /** * Gets the value of the style property. * * @return * possible object is * {@link String } * */ public String getStyle() { return style; } /** * Sets the value of the style property. * * @param value * allowed object is * {@link String } * */ public void setStyle(String value) { this.style = value; } /** * Gets the value of the clazz property. * * @return * possible object is * {@link String } * */ public String getClazz() { return clazz; } /** * Sets the value of the clazz property. * * @param value * allowed object is * {@link String } * */ public void setClazz(String value) { this.clazz = value; } public Stop withOffset(String value) { setOffset(value); return this; } public Stop withSpace(String value) { setSpace(value); return this; } public Stop withLang(String value) { setLang(value); return this; } public Stop withId(String value) { setId(value); return this; } public Stop withBase(String value) { setBase(value); return this; } public Stop withColorRendering(String value) { setColorRendering(value); return this; } public Stop withColor(String value) { setColor(value); return this; } public Stop withColorInterpolation(String value) { setColorInterpolation(value); return this; } public Stop withStopColor(String value) { setStopColor(value); return this; } public Stop withStopOpacity(String value) { setStopOpacity(value); return this; } public Stop withStyle(String value) { setStyle(value); return this; } public Stop withClazz(String value) { setClazz(value); return this; } @Override public Stop withAnimateOrSetOrAnimateColor(Object... values) { if (values!= null) { for (Object value: values) { getAnimateOrSetOrAnimateColor().add(value); } } return this; } @Override public Stop withAnimateOrSetOrAnimateColor(Collection values) { if (values!= null) { getAnimateOrSetOrAnimateColor().addAll(values); } return this; } }