com.github.rahulsom.svg.SVGViewClass Maven / Gradle / Ivy
The newest version!
package com.github.rahulsom.svg;
import java.util.Collection;
import javax.xml.bind.JAXBElement;
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.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <extension base="{http://www.w3.org/2000/svg}SVG.view.content">
* <attGroup ref="{http://www.w3.org/2000/svg}SVG.Core.attrib"/>
* <attGroup ref="{http://www.w3.org/2000/svg}SVG.External.attrib"/>
* <attribute name="viewBox" type="{http://www.w3.org/2000/svg}ViewBoxSpec.datatype" />
* <attribute name="preserveAspectRatio" type="{http://www.w3.org/2000/svg}PreserveAspectRatioSpec.datatype" default="xMidYMid meet" />
* <attribute name="zoomAndPan" default="magnify">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}token">
* <enumeration value="disable"/>
* <enumeration value="magnify"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="viewTarget" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public class SVGViewClass
extends SVGViewContent
{
@XmlAttribute(name = "viewBox")
protected String viewBox;
@XmlAttribute(name = "preserveAspectRatio")
protected String preserveAspectRatio;
@XmlAttribute(name = "zoomAndPan")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String zoomAndPan;
@XmlAttribute(name = "viewTarget")
@XmlSchemaType(name = "anySimpleType")
protected String viewTarget;
@XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String lang;
@XmlAttribute(name = "space", namespace = "http://www.w3.org/XML/1998/namespace", required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String space;
@XmlAttribute(name = "base", namespace = "http://www.w3.org/XML/1998/namespace")
protected String base;
@XmlAttribute(name = "id")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlID
@XmlSchemaType(name = "ID")
protected String id;
@XmlAttribute(name = "externalResourcesRequired")
protected BooleanDatatype externalResourcesRequired;
/**
* Gets the value of the viewBox property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getViewBox() {
return viewBox;
}
/**
* Sets the value of the viewBox property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setViewBox(String value) {
this.viewBox = value;
}
/**
* Gets the value of the preserveAspectRatio property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPreserveAspectRatio() {
if (preserveAspectRatio == null) {
return "xMidYMid meet";
} else {
return preserveAspectRatio;
}
}
/**
* Sets the value of the preserveAspectRatio property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPreserveAspectRatio(String value) {
this.preserveAspectRatio = value;
}
/**
* Gets the value of the zoomAndPan property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getZoomAndPan() {
if (zoomAndPan == null) {
return "magnify";
} else {
return zoomAndPan;
}
}
/**
* Sets the value of the zoomAndPan property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setZoomAndPan(String value) {
this.zoomAndPan = value;
}
/**
* Gets the value of the viewTarget property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getViewTarget() {
return viewTarget;
}
/**
* Sets the value of the viewTarget property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setViewTarget(String value) {
this.viewTarget = 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 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 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 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 externalResourcesRequired property.
*
* @return
* possible object is
* {@link BooleanDatatype }
*
*/
public BooleanDatatype getExternalResourcesRequired() {
return externalResourcesRequired;
}
/**
* Sets the value of the externalResourcesRequired property.
*
* @param value
* allowed object is
* {@link BooleanDatatype }
*
*/
public void setExternalResourcesRequired(BooleanDatatype value) {
this.externalResourcesRequired = value;
}
public SVGViewClass withViewBox(String value) {
setViewBox(value);
return this;
}
public SVGViewClass withPreserveAspectRatio(String value) {
setPreserveAspectRatio(value);
return this;
}
public SVGViewClass withZoomAndPan(String value) {
setZoomAndPan(value);
return this;
}
public SVGViewClass withViewTarget(String value) {
setViewTarget(value);
return this;
}
public SVGViewClass withLang(String value) {
setLang(value);
return this;
}
public SVGViewClass withSpace(String value) {
setSpace(value);
return this;
}
public SVGViewClass withBase(String value) {
setBase(value);
return this;
}
public SVGViewClass withId(String value) {
setId(value);
return this;
}
public SVGViewClass withExternalResourcesRequired(BooleanDatatype value) {
setExternalResourcesRequired(value);
return this;
}
@Override
public SVGViewClass withSVGDescriptionClass(JAXBElement> ... values) {
if (values!= null) {
for (JAXBElement> value: values) {
getSVGDescriptionClass().add(value);
}
}
return this;
}
@Override
public SVGViewClass withSVGDescriptionClass(Collection> values) {
if (values!= null) {
getSVGDescriptionClass().addAll(values);
}
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy