org.plutext.jaxb.svg11.SVGViewClass Maven / Gradle / Ivy
/*
* Copyright 2010, Plutext Pty Ltd.
*
* This file is part of docx4j.
docx4j is licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package org.plutext.jaxb.svg11;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlID;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter;
import jakarta.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.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>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public class SVGViewClass
extends SVGViewContent
{
@XmlAttribute
protected String viewBox;
@XmlAttribute
protected String preserveAspectRatio;
@XmlAttribute
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String zoomAndPan;
@XmlAttribute
@XmlSchemaType(name = "anySimpleType")
protected String viewTarget;
@XmlAttribute
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlID
@XmlSchemaType(name = "ID")
protected String id;
@XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace")
protected String base;
@XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace", required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String space;
@XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String lang;
@XmlAttribute
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 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 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 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;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy