com.github.rahulsom.svg.SVGPathContent Maven / Gradle / Ivy
package com.github.rahulsom.svg;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for SVG.path.content complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="SVG.path.content">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{http://www.w3.org/2000/svg}SVG.Description.class" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{http://www.w3.org/2000/svg}SVG.Animation.class" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SVG.path.content", propOrder = {
"svgDescriptionClass",
"svgAnimationClass"
})
@XmlSeeAlso({
Path.class
})
public class SVGPathContent {
@XmlElementRef(name = "SVG.Description.class", namespace = "http://www.w3.org/2000/svg", type = JAXBElement.class, required = false)
protected List> svgDescriptionClass;
@XmlElementRef(name = "SVG.Animation.class", namespace = "http://www.w3.org/2000/svg", type = JAXBElement.class, required = false)
protected List> svgAnimationClass;
/**
* Gets the value of the svgDescriptionClass 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 svgDescriptionClass property.
*
*
* For example, to add a new item, do as follows:
*
* getSVGDescriptionClass().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JAXBElement }{@code <}{@link Object }{@code >}
* {@link JAXBElement }{@code <}{@link Title }{@code >}
* {@link JAXBElement }{@code <}{@link Metadata }{@code >}
* {@link JAXBElement }{@code <}{@link Desc }{@code >}
*
*
*/
public List> getSVGDescriptionClass() {
if (svgDescriptionClass == null) {
svgDescriptionClass = new ArrayList>();
}
return this.svgDescriptionClass;
}
/**
* Gets the value of the svgAnimationClass 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 svgAnimationClass property.
*
*
* For example, to add a new item, do as follows:
*
* getSVGAnimationClass().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link JAXBElement }{@code <}{@link AnimateMotion }{@code >}
* {@link JAXBElement }{@code <}{@link Object }{@code >}
* {@link JAXBElement }{@code <}{@link AnimateTransform }{@code >}
* {@link JAXBElement }{@code <}{@link Animate }{@code >}
* {@link JAXBElement }{@code <}{@link Set }{@code >}
* {@link JAXBElement }{@code <}{@link AnimateColor }{@code >}
*
*
*/
public List> getSVGAnimationClass() {
if (svgAnimationClass == null) {
svgAnimationClass = new ArrayList>();
}
return this.svgAnimationClass;
}
public SVGPathContent withSVGDescriptionClass(JAXBElement> ... values) {
if (values!= null) {
for (JAXBElement> value: values) {
getSVGDescriptionClass().add(value);
}
}
return this;
}
public SVGPathContent withSVGDescriptionClass(Collection> values) {
if (values!= null) {
getSVGDescriptionClass().addAll(values);
}
return this;
}
public SVGPathContent withSVGAnimationClass(JAXBElement> ... values) {
if (values!= null) {
for (JAXBElement> value: values) {
getSVGAnimationClass().add(value);
}
}
return this;
}
public SVGPathContent withSVGAnimationClass(Collection> values) {
if (values!= null) {
getSVGAnimationClass().addAll(values);
}
return this;
}
}