/* * Geotoolkit - An Open Source Java GIS Toolkit * http://www.geotoolkit.org * * (C) 2012, Geomatys * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. */ package org.geotoolkit.mathml.xml; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.xml.bind.JAXBElement; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAnyAttribute; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElementRef; import javax.xml.bind.annotation.XmlElementRefs; import javax.xml.bind.annotation.XmlID; import javax.xml.bind.annotation.XmlMixed; 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; import javax.xml.namespace.QName; /** * <p>Classe Java pour anonymous complex type. * * <p>Le fragment de schéma suivant indique le contenu attendu figurant dans cette classe. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <group ref="{http://www.w3.org/1998/Math/MathML}token.content" maxOccurs="unbounded" minOccurs="0"/> * <attGroup ref="{http://www.w3.org/1998/Math/MathML}mo.attributes"/> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "content" }) public class Mo { @XmlElementRefs({ @XmlElementRef(name = "malignmark", namespace = "http://www.w3.org/1998/Math/MathML", type = JAXBElement.class), @XmlElementRef(name = "mglyph", namespace = "http://www.w3.org/1998/Math/MathML", type = Mglyph.class) }) @XmlMixed protected List<Object> content; @XmlAttribute(name = "form") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String form; @XmlAttribute(name = "fence") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String fence; @XmlAttribute(name = "separator") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String separator; @XmlAttribute(name = "lspace") protected String lspace; @XmlAttribute(name = "rspace") protected String rspace; @XmlAttribute(name = "stretchy") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String stretchy; @XmlAttribute(name = "symmetric") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String symmetric; @XmlAttribute(name = "maxsize") protected String maxsize; @XmlAttribute(name = "minsize") protected String minsize; @XmlAttribute(name = "largeop") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String largeop; @XmlAttribute(name = "movablelimits") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String movablelimits; @XmlAttribute(name = "accent") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String accent; @XmlAttribute(name = "linebreak") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String linebreak; @XmlAttribute(name = "lineleading") protected String lineleading; @XmlAttribute(name = "linebreakstyle") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String linebreakstyle; @XmlAttribute(name = "linebreakmultchar") @XmlSchemaType(name = "anySimpleType") protected String linebreakmultchar; @XmlAttribute(name = "indentalign") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String indentalign; @XmlAttribute(name = "indentshift") protected String indentshift; @XmlAttribute(name = "indenttarget") @XmlSchemaType(name = "anySimpleType") protected String indenttarget; @XmlAttribute(name = "indentalignfirst") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String indentalignfirst; @XmlAttribute(name = "indentshiftfirst") protected String indentshiftfirst; @XmlAttribute(name = "indentalignlast") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String indentalignlast; @XmlAttribute(name = "indentshiftlast") protected String indentshiftlast; @XmlAttribute(name = "mathvariant") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String mathvariant; @XmlAttribute(name = "mathsize") protected String mathsize; @XmlAttribute(name = "dir") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String dir; @XmlAttribute(name = "fontfamily") @XmlSchemaType(name = "anySimpleType") protected String fontfamily; @XmlAttribute(name = "fontweight") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String fontweight; @XmlAttribute(name = "fontstyle") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String fontstyle; @XmlAttribute(name = "fontsize") protected String fontsize; @XmlAttribute(name = "color") protected String color; @XmlAttribute(name = "background") protected String background; @XmlAttribute(name = "id") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlID @XmlSchemaType(name = "ID") protected String id; @XmlAttribute(name = "xref") @XmlSchemaType(name = "anySimpleType") protected String xref; @XmlAttribute(name = "class") @XmlSchemaType(name = "NMTOKENS") protected List<String> clazz; @XmlAttribute(name = "style") protected String style; @XmlAttribute(name = "href") @XmlSchemaType(name = "anyURI") protected String href; @XmlAttribute(name = "other") @XmlSchemaType(name = "anySimpleType") protected String other; @XmlAttribute(name = "mathcolor") protected String mathcolor; @XmlAttribute(name = "mathbackground") protected String mathbackground; @XmlAnyAttribute private Map<QName, String> otherAttributes = new HashMap<QName, String>(); /** * Gets the value of the content 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 content property. * * <p> * For example, to add a new item, do as follows: * <pre> * getContent().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link JAXBElement }{@code <}{@link Malignmark }{@code >} * {@link String } * {@link Mglyph } * * */ public List<Object> getContent() { if (content == null) { content = new ArrayList<Object>(); } return this.content; } /** * Obtient la valeur de la propriété form. * * @return * possible object is * {@link String } * */ public String getForm() { return form; } /** * Définit la valeur de la propriété form. * * @param value * allowed object is * {@link String } * */ public void setForm(String value) { this.form = value; } /** * Obtient la valeur de la propriété fence. * * @return * possible object is * {@link String } * */ public String getFence() { return fence; } /** * Définit la valeur de la propriété fence. * * @param value * allowed object is * {@link String } * */ public void setFence(String value) { this.fence = value; } /** * Obtient la valeur de la propriété separator. * * @return * possible object is * {@link String } * */ public String getSeparator() { return separator; } /** * Définit la valeur de la propriété separator. * * @param value * allowed object is * {@link String } * */ public void setSeparator(String value) { this.separator = value; } /** * Obtient la valeur de la propriété lspace. * * @return * possible object is * {@link String } * */ public String getLspace() { return lspace; } /** * Définit la valeur de la propriété lspace. * * @param value * allowed object is * {@link String } * */ public void setLspace(String value) { this.lspace = value; } /** * Obtient la valeur de la propriété rspace. * * @return * possible object is * {@link String } * */ public String getRspace() { return rspace; } /** * Définit la valeur de la propriété rspace. * * @param value * allowed object is * {@link String } * */ public void setRspace(String value) { this.rspace = value; } /** * Obtient la valeur de la propriété stretchy. * * @return * possible object is * {@link String } * */ public String getStretchy() { return stretchy; } /** * Définit la valeur de la propriété stretchy. * * @param value * allowed object is * {@link String } * */ public void setStretchy(String value) { this.stretchy = value; } /** * Obtient la valeur de la propriété symmetric. * * @return * possible object is * {@link String } * */ public String getSymmetric() { return symmetric; } /** * Définit la valeur de la propriété symmetric. * * @param value * allowed object is * {@link String } * */ public void setSymmetric(String value) { this.symmetric = value; } /** * Obtient la valeur de la propriété maxsize. * * @return * possible object is * {@link String } * */ public String getMaxsize() { return maxsize; } /** * Définit la valeur de la propriété maxsize. * * @param value * allowed object is * {@link String } * */ public void setMaxsize(String value) { this.maxsize = value; } /** * Obtient la valeur de la propriété minsize. * * @return * possible object is * {@link String } * */ public String getMinsize() { return minsize; } /** * Définit la valeur de la propriété minsize. * * @param value * allowed object is * {@link String } * */ public void setMinsize(String value) { this.minsize = value; } /** * Obtient la valeur de la propriété largeop. * * @return * possible object is * {@link String } * */ public String getLargeop() { return largeop; } /** * Définit la valeur de la propriété largeop. * * @param value * allowed object is * {@link String } * */ public void setLargeop(String value) { this.largeop = value; } /** * Obtient la valeur de la propriété movablelimits. * * @return * possible object is * {@link String } * */ public String getMovablelimits() { return movablelimits; } /** * Définit la valeur de la propriété movablelimits. * * @param value * allowed object is * {@link String } * */ public void setMovablelimits(String value) { this.movablelimits = value; } /** * Obtient la valeur de la propriété accent. * * @return * possible object is * {@link String } * */ public String getAccent() { return accent; } /** * Définit la valeur de la propriété accent. * * @param value * allowed object is * {@link String } * */ public void setAccent(String value) { this.accent = value; } /** * Obtient la valeur de la propriété linebreak. * * @return * possible object is * {@link String } * */ public String getLinebreak() { return linebreak; } /** * Définit la valeur de la propriété linebreak. * * @param value * allowed object is * {@link String } * */ public void setLinebreak(String value) { this.linebreak = value; } /** * Obtient la valeur de la propriété lineleading. * * @return * possible object is * {@link String } * */ public String getLineleading() { return lineleading; } /** * Définit la valeur de la propriété lineleading. * * @param value * allowed object is * {@link String } * */ public void setLineleading(String value) { this.lineleading = value; } /** * Obtient la valeur de la propriété linebreakstyle. * * @return * possible object is * {@link String } * */ public String getLinebreakstyle() { return linebreakstyle; } /** * Définit la valeur de la propriété linebreakstyle. * * @param value * allowed object is * {@link String } * */ public void setLinebreakstyle(String value) { this.linebreakstyle = value; } /** * Obtient la valeur de la propriété linebreakmultchar. * * @return * possible object is * {@link String } * */ public String getLinebreakmultchar() { return linebreakmultchar; } /** * Définit la valeur de la propriété linebreakmultchar. * * @param value * allowed object is * {@link String } * */ public void setLinebreakmultchar(String value) { this.linebreakmultchar = value; } /** * Obtient la valeur de la propriété indentalign. * * @return * possible object is * {@link String } * */ public String getIndentalign() { return indentalign; } /** * Définit la valeur de la propriété indentalign. * * @param value * allowed object is * {@link String } * */ public void setIndentalign(String value) { this.indentalign = value; } /** * Obtient la valeur de la propriété indentshift. * * @return * possible object is * {@link String } * */ public String getIndentshift() { return indentshift; } /** * Définit la valeur de la propriété indentshift. * * @param value * allowed object is * {@link String } * */ public void setIndentshift(String value) { this.indentshift = value; } /** * Obtient la valeur de la propriété indenttarget. * * @return * possible object is * {@link String } * */ public String getIndenttarget() { return indenttarget; } /** * Définit la valeur de la propriété indenttarget. * * @param value * allowed object is * {@link String } * */ public void setIndenttarget(String value) { this.indenttarget = value; } /** * Obtient la valeur de la propriété indentalignfirst. * * @return * possible object is * {@link String } * */ public String getIndentalignfirst() { return indentalignfirst; } /** * Définit la valeur de la propriété indentalignfirst. * * @param value * allowed object is * {@link String } * */ public void setIndentalignfirst(String value) { this.indentalignfirst = value; } /** * Obtient la valeur de la propriété indentshiftfirst. * * @return * possible object is * {@link String } * */ public String getIndentshiftfirst() { return indentshiftfirst; } /** * Définit la valeur de la propriété indentshiftfirst. * * @param value * allowed object is * {@link String } * */ public void setIndentshiftfirst(String value) { this.indentshiftfirst = value; } /** * Obtient la valeur de la propriété indentalignlast. * * @return * possible object is * {@link String } * */ public String getIndentalignlast() { return indentalignlast; } /** * Définit la valeur de la propriété indentalignlast. * * @param value * allowed object is * {@link String } * */ public void setIndentalignlast(String value) { this.indentalignlast = value; } /** * Obtient la valeur de la propriété indentshiftlast. * * @return * possible object is * {@link String } * */ public String getIndentshiftlast() { return indentshiftlast; } /** * Définit la valeur de la propriété indentshiftlast. * * @param value * allowed object is * {@link String } * */ public void setIndentshiftlast(String value) { this.indentshiftlast = value; } /** * Obtient la valeur de la propriété mathvariant. * * @return * possible object is * {@link String } * */ public String getMathvariant() { return mathvariant; } /** * Définit la valeur de la propriété mathvariant. * * @param value * allowed object is * {@link String } * */ public void setMathvariant(String value) { this.mathvariant = value; } /** * Obtient la valeur de la propriété mathsize. * * @return * possible object is * {@link String } * */ public String getMathsize() { return mathsize; } /** * Définit la valeur de la propriété mathsize. * * @param value * allowed object is * {@link String } * */ public void setMathsize(String value) { this.mathsize = value; } /** * Obtient la valeur de la propriété dir. * * @return * possible object is * {@link String } * */ public String getDir() { return dir; } /** * Définit la valeur de la propriété dir. * * @param value * allowed object is * {@link String } * */ public void setDir(String value) { this.dir = value; } /** * Obtient la valeur de la propriété fontfamily. * * @return * possible object is * {@link String } * */ public String getFontfamily() { return fontfamily; } /** * Définit la valeur de la propriété fontfamily. * * @param value * allowed object is * {@link String } * */ public void setFontfamily(String value) { this.fontfamily = value; } /** * Obtient la valeur de la propriété fontweight. * * @return * possible object is * {@link String } * */ public String getFontweight() { return fontweight; } /** * Définit la valeur de la propriété fontweight. * * @param value * allowed object is * {@link String } * */ public void setFontweight(String value) { this.fontweight = value; } /** * Obtient la valeur de la propriété fontstyle. * * @return * possible object is * {@link String } * */ public String getFontstyle() { return fontstyle; } /** * Définit la valeur de la propriété fontstyle. * * @param value * allowed object is * {@link String } * */ public void setFontstyle(String value) { this.fontstyle = value; } /** * Obtient la valeur de la propriété fontsize. * * @return * possible object is * {@link String } * */ public String getFontsize() { return fontsize; } /** * Définit la valeur de la propriété fontsize. * * @param value * allowed object is * {@link String } * */ public void setFontsize(String value) { this.fontsize = value; } /** * Obtient la valeur de la propriété color. * * @return * possible object is * {@link String } * */ public String getColor() { return color; } /** * Définit la valeur de la propriété color. * * @param value * allowed object is * {@link String } * */ public void setColor(String value) { this.color = value; } /** * Obtient la valeur de la propriété background. * * @return * possible object is * {@link String } * */ public String getBackground() { return background; } /** * Définit la valeur de la propriété background. * * @param value * allowed object is * {@link String } * */ public void setBackground(String value) { this.background = value; } /** * Obtient la valeur de la propriété id. * * @return * possible object is * {@link String } * */ public String getId() { return id; } /** * Définit la valeur de la propriété id. * * @param value * allowed object is * {@link String } * */ public void setId(String value) { this.id = value; } /** * Obtient la valeur de la propriété xref. * * @return * possible object is * {@link String } * */ public String getXref() { return xref; } /** * Définit la valeur de la propriété xref. * * @param value * allowed object is * {@link String } * */ public void setXref(String value) { this.xref = value; } /** * Gets the value of the clazz 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 clazz property. * * <p> * For example, to add a new item, do as follows: * <pre> * getClazz().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getClazz() { if (clazz == null) { clazz = new ArrayList<String>(); } return this.clazz; } /** * Obtient la valeur de la propriété style. * * @return * possible object is * {@link String } * */ public String getStyle() { return style; } /** * Définit la valeur de la propriété style. * * @param value * allowed object is * {@link String } * */ public void setStyle(String value) { this.style = value; } /** * Obtient la valeur de la propriété href. * * @return * possible object is * {@link String } * */ public String getHref() { return href; } /** * Définit la valeur de la propriété href. * * @param value * allowed object is * {@link String } * */ public void setHref(String value) { this.href = value; } /** * Obtient la valeur de la propriété other. * * @return * possible object is * {@link String } * */ public String getOther() { return other; } /** * Définit la valeur de la propriété other. * * @param value * allowed object is * {@link String } * */ public void setOther(String value) { this.other = value; } /** * Obtient la valeur de la propriété mathcolor. * * @return * possible object is * {@link String } * */ public String getMathcolor() { return mathcolor; } /** * Définit la valeur de la propriété mathcolor. * * @param value * allowed object is * {@link String } * */ public void setMathcolor(String value) { this.mathcolor = value; } /** * Obtient la valeur de la propriété mathbackground. * * @return * possible object is * {@link String } * */ public String getMathbackground() { return mathbackground; } /** * Définit la valeur de la propriété mathbackground. * * @param value * allowed object is * {@link String } * */ public void setMathbackground(String value) { this.mathbackground = value; } /** * Gets a map that contains attributes that aren't bound to any typed property on this class. * * <p> * the map is keyed by the name of the attribute and * the value is the string value of the attribute. * * the map returned by this method is live, and you can add new attribute * by updating the map directly. Because of this design, there's no setter. * * * @return * always non-null */ public Map<QName, String> getOtherAttributes() { return otherAttributes; } }