com.github.rahulsom.svg.SVGFontFaceContent 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.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for SVG.font-face.content complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="SVG.font-face.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}font-face-src" minOccurs="0"/>
* <element ref="{http://www.w3.org/2000/svg}definition-src" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SVG.font-face.content", propOrder = {
"svgDescriptionClass",
"fontFaceSrc",
"definitionSrc"
})
@XmlSeeAlso({
FontFace.class
})
public class SVGFontFaceContent {
@XmlElementRef(name = "SVG.Description.class", namespace = "http://www.w3.org/2000/svg", type = JAXBElement.class, required = false)
protected List> svgDescriptionClass;
@XmlElement(name = "font-face-src")
protected FontFaceSrc fontFaceSrc;
@XmlElement(name = "definition-src")
protected DefinitionSrc definitionSrc;
/**
* Gets the value of the svgDescriptionClass 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 svgDescriptionClass property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getSVGDescriptionClass().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link JAXBElement }{@code <}{@link Metadata }{@code >}
* {@link JAXBElement }{@code <}{@link Desc }{@code >}
* {@link JAXBElement }{@code <}{@link Title }{@code >}
* {@link JAXBElement }{@code <}{@link Object }{@code >}
*
*
*/
public List> getSVGDescriptionClass() {
if (svgDescriptionClass == null) {
svgDescriptionClass = new ArrayList>();
}
return this.svgDescriptionClass;
}
/**
* Gets the value of the fontFaceSrc property.
*
* @return
* possible object is
* {@link FontFaceSrc }
*
*/
public FontFaceSrc getFontFaceSrc() {
return fontFaceSrc;
}
/**
* Sets the value of the fontFaceSrc property.
*
* @param value
* allowed object is
* {@link FontFaceSrc }
*
*/
public void setFontFaceSrc(FontFaceSrc value) {
this.fontFaceSrc = value;
}
/**
* Gets the value of the definitionSrc property.
*
* @return
* possible object is
* {@link DefinitionSrc }
*
*/
public DefinitionSrc getDefinitionSrc() {
return definitionSrc;
}
/**
* Sets the value of the definitionSrc property.
*
* @param value
* allowed object is
* {@link DefinitionSrc }
*
*/
public void setDefinitionSrc(DefinitionSrc value) {
this.definitionSrc = value;
}
public SVGFontFaceContent withSVGDescriptionClass(JAXBElement> ... values) {
if (values!= null) {
for (JAXBElement> value: values) {
getSVGDescriptionClass().add(value);
}
}
return this;
}
public SVGFontFaceContent withSVGDescriptionClass(Collection> values) {
if (values!= null) {
getSVGDescriptionClass().addAll(values);
}
return this;
}
public SVGFontFaceContent withFontFaceSrc(FontFaceSrc value) {
setFontFaceSrc(value);
return this;
}
public SVGFontFaceContent withDefinitionSrc(DefinitionSrc value) {
setDefinitionSrc(value);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy