AnimAnimateTransformElement.java

  1. /**
  2.  * **********************************************************************
  3.  *
  4.  * <p>DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
  5.  *
  6.  * <p>Copyright 2008, 2010 Oracle and/or its affiliates. All rights reserved.
  7.  *
  8.  * <p>Use is subject to license terms.
  9.  *
  10.  * <p>Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
  11.  * except in compliance with the License. You may obtain a copy of the License at
  12.  * http://www.apache.org/licenses/LICENSE-2.0. You can also obtain a copy of the License at
  13.  * http://odftoolkit.org/docs/license.txt
  14.  *
  15.  * <p>Unless required by applicable law or agreed to in writing, software distributed under the
  16.  * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  17.  * express or implied.
  18.  *
  19.  * <p>See the License for the specific language governing permissions and limitations under the
  20.  * License.
  21.  *
  22.  * <p>**********************************************************************
  23.  */

  24. /*
  25.  * This file is automatically generated.
  26.  * Don't edit manually.
  27.  */
  28. package org.odftoolkit.odfdom.dom.element.anim;

  29. import org.odftoolkit.odfdom.dom.DefaultElementVisitor;
  30. import org.odftoolkit.odfdom.dom.OdfDocumentNamespace;
  31. import org.odftoolkit.odfdom.dom.attribute.anim.AnimFormulaAttribute;
  32. import org.odftoolkit.odfdom.dom.attribute.anim.AnimSubItemAttribute;
  33. import org.odftoolkit.odfdom.dom.attribute.smil.SmilAccelerateAttribute;
  34. import org.odftoolkit.odfdom.dom.attribute.smil.SmilAccumulateAttribute;
  35. import org.odftoolkit.odfdom.dom.attribute.smil.SmilAdditiveAttribute;
  36. import org.odftoolkit.odfdom.dom.attribute.smil.SmilAttributeNameAttribute;
  37. import org.odftoolkit.odfdom.dom.attribute.smil.SmilAutoReverseAttribute;
  38. import org.odftoolkit.odfdom.dom.attribute.smil.SmilBeginAttribute;
  39. import org.odftoolkit.odfdom.dom.attribute.smil.SmilByAttribute;
  40. import org.odftoolkit.odfdom.dom.attribute.smil.SmilDecelerateAttribute;
  41. import org.odftoolkit.odfdom.dom.attribute.smil.SmilDurAttribute;
  42. import org.odftoolkit.odfdom.dom.attribute.smil.SmilEndAttribute;
  43. import org.odftoolkit.odfdom.dom.attribute.smil.SmilFillAttribute;
  44. import org.odftoolkit.odfdom.dom.attribute.smil.SmilFillDefaultAttribute;
  45. import org.odftoolkit.odfdom.dom.attribute.smil.SmilFromAttribute;
  46. import org.odftoolkit.odfdom.dom.attribute.smil.SmilRepeatCountAttribute;
  47. import org.odftoolkit.odfdom.dom.attribute.smil.SmilRepeatDurAttribute;
  48. import org.odftoolkit.odfdom.dom.attribute.smil.SmilRestartAttribute;
  49. import org.odftoolkit.odfdom.dom.attribute.smil.SmilRestartDefaultAttribute;
  50. import org.odftoolkit.odfdom.dom.attribute.smil.SmilTargetElementAttribute;
  51. import org.odftoolkit.odfdom.dom.attribute.smil.SmilToAttribute;
  52. import org.odftoolkit.odfdom.dom.attribute.smil.SmilValuesAttribute;
  53. import org.odftoolkit.odfdom.dom.attribute.svg.SvgTypeAttribute;
  54. import org.odftoolkit.odfdom.pkg.ElementVisitor;
  55. import org.odftoolkit.odfdom.pkg.OdfElement;
  56. import org.odftoolkit.odfdom.pkg.OdfFileDom;
  57. import org.odftoolkit.odfdom.pkg.OdfName;

  58. /** DOM implementation of OpenDocument element {@odf.element anim:animateTransform}. */
  59. public class AnimAnimateTransformElement extends OdfElement {

  60.   public static final OdfName ELEMENT_NAME =
  61.       OdfName.newName(OdfDocumentNamespace.ANIM, "animateTransform");

  62.   /**
  63.    * Create the instance of <code>AnimAnimateTransformElement</code>
  64.    *
  65.    * @param ownerDoc The type is <code>OdfFileDom</code>
  66.    */
  67.   public AnimAnimateTransformElement(OdfFileDom ownerDoc) {
  68.     super(ownerDoc, ELEMENT_NAME);
  69.   }

  70.   /**
  71.    * Get the element name
  72.    *
  73.    * @return return <code>OdfName</code> the name of element {@odf.element anim:animateTransform}.
  74.    */
  75.   public OdfName getOdfName() {
  76.     return ELEMENT_NAME;
  77.   }

  78.   /**
  79.    * Receives the value of the ODFDOM attribute representation <code>AnimFormulaAttribute</code> ,
  80.    * See {@odf.attribute anim:formula}
  81.    *
  82.    * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set
  83.    *     and no default value defined.
  84.    */
  85.   public String getAnimFormulaAttribute() {
  86.     AnimFormulaAttribute attr =
  87.         (AnimFormulaAttribute) getOdfAttribute(OdfDocumentNamespace.ANIM, "formula");
  88.     if (attr != null) {
  89.       return String.valueOf(attr.getValue());
  90.     }
  91.     return null;
  92.   }

  93.   /**
  94.    * Sets the value of ODFDOM attribute representation <code>AnimFormulaAttribute</code> , See
  95.    * {@odf.attribute anim:formula}
  96.    *
  97.    * @param animFormulaValue The type is <code>String</code>
  98.    */
  99.   public void setAnimFormulaAttribute(String animFormulaValue) {
  100.     AnimFormulaAttribute attr = new AnimFormulaAttribute((OdfFileDom) this.ownerDocument);
  101.     setOdfAttribute(attr);
  102.     attr.setValue(animFormulaValue);
  103.   }

  104.   /**
  105.    * Receives the value of the ODFDOM attribute representation <code>AnimSubItemAttribute</code> ,
  106.    * See {@odf.attribute anim:sub-item}
  107.    *
  108.    * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set
  109.    *     and no default value defined.
  110.    */
  111.   public String getAnimSubItemAttribute() {
  112.     AnimSubItemAttribute attr =
  113.         (AnimSubItemAttribute) getOdfAttribute(OdfDocumentNamespace.ANIM, "sub-item");
  114.     if (attr != null) {
  115.       return String.valueOf(attr.getValue());
  116.     }
  117.     return null;
  118.   }

  119.   /**
  120.    * Sets the value of ODFDOM attribute representation <code>AnimSubItemAttribute</code> , See
  121.    * {@odf.attribute anim:sub-item}
  122.    *
  123.    * @param animSubItemValue The type is <code>String</code>
  124.    */
  125.   public void setAnimSubItemAttribute(String animSubItemValue) {
  126.     AnimSubItemAttribute attr = new AnimSubItemAttribute((OdfFileDom) this.ownerDocument);
  127.     setOdfAttribute(attr);
  128.     attr.setValue(animSubItemValue);
  129.   }

  130.   /**
  131.    * Receives the value of the ODFDOM attribute representation <code>SmilAccelerateAttribute</code>
  132.    * , See {@odf.attribute smil:accelerate}
  133.    *
  134.    * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set
  135.    *     and no default value defined.
  136.    */
  137.   public String getSmilAccelerateAttribute() {
  138.     SmilAccelerateAttribute attr =
  139.         (SmilAccelerateAttribute) getOdfAttribute(OdfDocumentNamespace.SMIL, "accelerate");
  140.     if (attr != null) {
  141.       return String.valueOf(attr.getValue());
  142.     }
  143.     return SmilAccelerateAttribute.DEFAULT_VALUE;
  144.   }

  145.   /**
  146.    * Sets the value of ODFDOM attribute representation <code>SmilAccelerateAttribute</code> , See
  147.    * {@odf.attribute smil:accelerate}
  148.    *
  149.    * @param smilAccelerateValue The type is <code>String</code>
  150.    */
  151.   public void setSmilAccelerateAttribute(String smilAccelerateValue) {
  152.     SmilAccelerateAttribute attr = new SmilAccelerateAttribute((OdfFileDom) this.ownerDocument);
  153.     setOdfAttribute(attr);
  154.     attr.setValue(smilAccelerateValue);
  155.   }

  156.   /**
  157.    * Receives the value of the ODFDOM attribute representation <code>SmilAccumulateAttribute</code>
  158.    * , See {@odf.attribute smil:accumulate}
  159.    *
  160.    * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set
  161.    *     and no default value defined.
  162.    */
  163.   public String getSmilAccumulateAttribute() {
  164.     SmilAccumulateAttribute attr =
  165.         (SmilAccumulateAttribute) getOdfAttribute(OdfDocumentNamespace.SMIL, "accumulate");
  166.     if (attr != null) {
  167.       return String.valueOf(attr.getValue());
  168.     }
  169.     return null;
  170.   }

  171.   /**
  172.    * Sets the value of ODFDOM attribute representation <code>SmilAccumulateAttribute</code> , See
  173.    * {@odf.attribute smil:accumulate}
  174.    *
  175.    * @param smilAccumulateValue The type is <code>String</code>
  176.    */
  177.   public void setSmilAccumulateAttribute(String smilAccumulateValue) {
  178.     SmilAccumulateAttribute attr = new SmilAccumulateAttribute((OdfFileDom) this.ownerDocument);
  179.     setOdfAttribute(attr);
  180.     attr.setValue(smilAccumulateValue);
  181.   }

  182.   /**
  183.    * Receives the value of the ODFDOM attribute representation <code>SmilAdditiveAttribute</code> ,
  184.    * See {@odf.attribute smil:additive}
  185.    *
  186.    * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set
  187.    *     and no default value defined.
  188.    */
  189.   public String getSmilAdditiveAttribute() {
  190.     SmilAdditiveAttribute attr =
  191.         (SmilAdditiveAttribute) getOdfAttribute(OdfDocumentNamespace.SMIL, "additive");
  192.     if (attr != null) {
  193.       return String.valueOf(attr.getValue());
  194.     }
  195.     return null;
  196.   }

  197.   /**
  198.    * Sets the value of ODFDOM attribute representation <code>SmilAdditiveAttribute</code> , See
  199.    * {@odf.attribute smil:additive}
  200.    *
  201.    * @param smilAdditiveValue The type is <code>String</code>
  202.    */
  203.   public void setSmilAdditiveAttribute(String smilAdditiveValue) {
  204.     SmilAdditiveAttribute attr = new SmilAdditiveAttribute((OdfFileDom) this.ownerDocument);
  205.     setOdfAttribute(attr);
  206.     attr.setValue(smilAdditiveValue);
  207.   }

  208.   /**
  209.    * Receives the value of the ODFDOM attribute representation <code>SmilAttributeNameAttribute
  210.    * </code> , See {@odf.attribute smil:attributeName}
  211.    *
  212.    * <p>Attribute is mandatory.
  213.    *
  214.    * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set
  215.    *     and no default value defined.
  216.    */
  217.   public String getSmilAttributeNameAttribute() {
  218.     SmilAttributeNameAttribute attr =
  219.         (SmilAttributeNameAttribute) getOdfAttribute(OdfDocumentNamespace.SMIL, "attributeName");
  220.     if (attr != null) {
  221.       return String.valueOf(attr.getValue());
  222.     }
  223.     return null;
  224.   }

  225.   /**
  226.    * Sets the value of ODFDOM attribute representation <code>SmilAttributeNameAttribute</code> , See
  227.    * {@odf.attribute smil:attributeName}
  228.    *
  229.    * @param smilAttributeNameValue The type is <code>String</code>
  230.    */
  231.   public void setSmilAttributeNameAttribute(String smilAttributeNameValue) {
  232.     SmilAttributeNameAttribute attr =
  233.         new SmilAttributeNameAttribute((OdfFileDom) this.ownerDocument);
  234.     setOdfAttribute(attr);
  235.     attr.setValue(smilAttributeNameValue);
  236.   }

  237.   /**
  238.    * Receives the value of the ODFDOM attribute representation <code>SmilAutoReverseAttribute</code>
  239.    * , See {@odf.attribute smil:autoReverse}
  240.    *
  241.    * @return - the <code>Boolean</code> , the value or <code>null</code>, if the attribute is not
  242.    *     set and no default value defined.
  243.    */
  244.   public Boolean getSmilAutoReverseAttribute() {
  245.     SmilAutoReverseAttribute attr =
  246.         (SmilAutoReverseAttribute) getOdfAttribute(OdfDocumentNamespace.SMIL, "autoReverse");
  247.     if (attr != null) {
  248.       return Boolean.valueOf(attr.booleanValue());
  249.     }
  250.     return Boolean.valueOf(SmilAutoReverseAttribute.DEFAULT_VALUE);
  251.   }

  252.   /**
  253.    * Sets the value of ODFDOM attribute representation <code>SmilAutoReverseAttribute</code> , See
  254.    * {@odf.attribute smil:autoReverse}
  255.    *
  256.    * @param smilAutoReverseValue The type is <code>Boolean</code>
  257.    */
  258.   public void setSmilAutoReverseAttribute(Boolean smilAutoReverseValue) {
  259.     SmilAutoReverseAttribute attr = new SmilAutoReverseAttribute((OdfFileDom) this.ownerDocument);
  260.     setOdfAttribute(attr);
  261.     attr.setBooleanValue(smilAutoReverseValue.booleanValue());
  262.   }

  263.   /**
  264.    * Receives the value of the ODFDOM attribute representation <code>SmilBeginAttribute</code> , See
  265.    * {@odf.attribute smil:begin}
  266.    *
  267.    * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set
  268.    *     and no default value defined.
  269.    */
  270.   public String getSmilBeginAttribute() {
  271.     SmilBeginAttribute attr =
  272.         (SmilBeginAttribute) getOdfAttribute(OdfDocumentNamespace.SMIL, "begin");
  273.     if (attr != null) {
  274.       return String.valueOf(attr.getValue());
  275.     }
  276.     return null;
  277.   }

  278.   /**
  279.    * Sets the value of ODFDOM attribute representation <code>SmilBeginAttribute</code> , See
  280.    * {@odf.attribute smil:begin}
  281.    *
  282.    * @param smilBeginValue The type is <code>String</code>
  283.    */
  284.   public void setSmilBeginAttribute(String smilBeginValue) {
  285.     SmilBeginAttribute attr = new SmilBeginAttribute((OdfFileDom) this.ownerDocument);
  286.     setOdfAttribute(attr);
  287.     attr.setValue(smilBeginValue);
  288.   }

  289.   /**
  290.    * Receives the value of the ODFDOM attribute representation <code>SmilByAttribute</code> , See
  291.    * {@odf.attribute smil:by}
  292.    *
  293.    * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set
  294.    *     and no default value defined.
  295.    */
  296.   public String getSmilByAttribute() {
  297.     SmilByAttribute attr = (SmilByAttribute) getOdfAttribute(OdfDocumentNamespace.SMIL, "by");
  298.     if (attr != null) {
  299.       return String.valueOf(attr.getValue());
  300.     }
  301.     return null;
  302.   }

  303.   /**
  304.    * Sets the value of ODFDOM attribute representation <code>SmilByAttribute</code> , See
  305.    * {@odf.attribute smil:by}
  306.    *
  307.    * @param smilByValue The type is <code>String</code>
  308.    */
  309.   public void setSmilByAttribute(String smilByValue) {
  310.     SmilByAttribute attr = new SmilByAttribute((OdfFileDom) this.ownerDocument);
  311.     setOdfAttribute(attr);
  312.     attr.setValue(smilByValue);
  313.   }

  314.   /**
  315.    * Receives the value of the ODFDOM attribute representation <code>SmilDecelerateAttribute</code>
  316.    * , See {@odf.attribute smil:decelerate}
  317.    *
  318.    * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set
  319.    *     and no default value defined.
  320.    */
  321.   public String getSmilDecelerateAttribute() {
  322.     SmilDecelerateAttribute attr =
  323.         (SmilDecelerateAttribute) getOdfAttribute(OdfDocumentNamespace.SMIL, "decelerate");
  324.     if (attr != null) {
  325.       return String.valueOf(attr.getValue());
  326.     }
  327.     return SmilDecelerateAttribute.DEFAULT_VALUE;
  328.   }

  329.   /**
  330.    * Sets the value of ODFDOM attribute representation <code>SmilDecelerateAttribute</code> , See
  331.    * {@odf.attribute smil:decelerate}
  332.    *
  333.    * @param smilDecelerateValue The type is <code>String</code>
  334.    */
  335.   public void setSmilDecelerateAttribute(String smilDecelerateValue) {
  336.     SmilDecelerateAttribute attr = new SmilDecelerateAttribute((OdfFileDom) this.ownerDocument);
  337.     setOdfAttribute(attr);
  338.     attr.setValue(smilDecelerateValue);
  339.   }

  340.   /**
  341.    * Receives the value of the ODFDOM attribute representation <code>SmilDurAttribute</code> , See
  342.    * {@odf.attribute smil:dur}
  343.    *
  344.    * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set
  345.    *     and no default value defined.
  346.    */
  347.   public String getSmilDurAttribute() {
  348.     SmilDurAttribute attr = (SmilDurAttribute) getOdfAttribute(OdfDocumentNamespace.SMIL, "dur");
  349.     if (attr != null) {
  350.       return String.valueOf(attr.getValue());
  351.     }
  352.     return null;
  353.   }

  354.   /**
  355.    * Sets the value of ODFDOM attribute representation <code>SmilDurAttribute</code> , See
  356.    * {@odf.attribute smil:dur}
  357.    *
  358.    * @param smilDurValue The type is <code>String</code>
  359.    */
  360.   public void setSmilDurAttribute(String smilDurValue) {
  361.     SmilDurAttribute attr = new SmilDurAttribute((OdfFileDom) this.ownerDocument);
  362.     setOdfAttribute(attr);
  363.     attr.setValue(smilDurValue);
  364.   }

  365.   /**
  366.    * Receives the value of the ODFDOM attribute representation <code>SmilEndAttribute</code> , See
  367.    * {@odf.attribute smil:end}
  368.    *
  369.    * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set
  370.    *     and no default value defined.
  371.    */
  372.   public String getSmilEndAttribute() {
  373.     SmilEndAttribute attr = (SmilEndAttribute) getOdfAttribute(OdfDocumentNamespace.SMIL, "end");
  374.     if (attr != null) {
  375.       return String.valueOf(attr.getValue());
  376.     }
  377.     return null;
  378.   }

  379.   /**
  380.    * Sets the value of ODFDOM attribute representation <code>SmilEndAttribute</code> , See
  381.    * {@odf.attribute smil:end}
  382.    *
  383.    * @param smilEndValue The type is <code>String</code>
  384.    */
  385.   public void setSmilEndAttribute(String smilEndValue) {
  386.     SmilEndAttribute attr = new SmilEndAttribute((OdfFileDom) this.ownerDocument);
  387.     setOdfAttribute(attr);
  388.     attr.setValue(smilEndValue);
  389.   }

  390.   /**
  391.    * Receives the value of the ODFDOM attribute representation <code>SmilFillAttribute</code> , See
  392.    * {@odf.attribute smil:fill}
  393.    *
  394.    * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set
  395.    *     and no default value defined.
  396.    */
  397.   public String getSmilFillAttribute() {
  398.     SmilFillAttribute attr = (SmilFillAttribute) getOdfAttribute(OdfDocumentNamespace.SMIL, "fill");
  399.     if (attr != null) {
  400.       return String.valueOf(attr.getValue());
  401.     }
  402.     return null;
  403.   }

  404.   /**
  405.    * Sets the value of ODFDOM attribute representation <code>SmilFillAttribute</code> , See
  406.    * {@odf.attribute smil:fill}
  407.    *
  408.    * @param smilFillValue The type is <code>String</code>
  409.    */
  410.   public void setSmilFillAttribute(String smilFillValue) {
  411.     SmilFillAttribute attr = new SmilFillAttribute((OdfFileDom) this.ownerDocument);
  412.     setOdfAttribute(attr);
  413.     attr.setValue(smilFillValue);
  414.   }

  415.   /**
  416.    * Receives the value of the ODFDOM attribute representation <code>SmilFillDefaultAttribute</code>
  417.    * , See {@odf.attribute smil:fillDefault}
  418.    *
  419.    * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set
  420.    *     and no default value defined.
  421.    */
  422.   public String getSmilFillDefaultAttribute() {
  423.     SmilFillDefaultAttribute attr =
  424.         (SmilFillDefaultAttribute) getOdfAttribute(OdfDocumentNamespace.SMIL, "fillDefault");
  425.     if (attr != null) {
  426.       return String.valueOf(attr.getValue());
  427.     }
  428.     return null;
  429.   }

  430.   /**
  431.    * Sets the value of ODFDOM attribute representation <code>SmilFillDefaultAttribute</code> , See
  432.    * {@odf.attribute smil:fillDefault}
  433.    *
  434.    * @param smilFillDefaultValue The type is <code>String</code>
  435.    */
  436.   public void setSmilFillDefaultAttribute(String smilFillDefaultValue) {
  437.     SmilFillDefaultAttribute attr = new SmilFillDefaultAttribute((OdfFileDom) this.ownerDocument);
  438.     setOdfAttribute(attr);
  439.     attr.setValue(smilFillDefaultValue);
  440.   }

  441.   /**
  442.    * Receives the value of the ODFDOM attribute representation <code>SmilFromAttribute</code> , See
  443.    * {@odf.attribute smil:from}
  444.    *
  445.    * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set
  446.    *     and no default value defined.
  447.    */
  448.   public String getSmilFromAttribute() {
  449.     SmilFromAttribute attr = (SmilFromAttribute) getOdfAttribute(OdfDocumentNamespace.SMIL, "from");
  450.     if (attr != null) {
  451.       return String.valueOf(attr.getValue());
  452.     }
  453.     return null;
  454.   }

  455.   /**
  456.    * Sets the value of ODFDOM attribute representation <code>SmilFromAttribute</code> , See
  457.    * {@odf.attribute smil:from}
  458.    *
  459.    * @param smilFromValue The type is <code>String</code>
  460.    */
  461.   public void setSmilFromAttribute(String smilFromValue) {
  462.     SmilFromAttribute attr = new SmilFromAttribute((OdfFileDom) this.ownerDocument);
  463.     setOdfAttribute(attr);
  464.     attr.setValue(smilFromValue);
  465.   }

  466.   /**
  467.    * Receives the value of the ODFDOM attribute representation <code>SmilRepeatCountAttribute</code>
  468.    * , See {@odf.attribute smil:repeatCount}
  469.    *
  470.    * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set
  471.    *     and no default value defined.
  472.    */
  473.   public String getSmilRepeatCountAttribute() {
  474.     SmilRepeatCountAttribute attr =
  475.         (SmilRepeatCountAttribute) getOdfAttribute(OdfDocumentNamespace.SMIL, "repeatCount");
  476.     if (attr != null) {
  477.       return String.valueOf(attr.getValue());
  478.     }
  479.     return null;
  480.   }

  481.   /**
  482.    * Sets the value of ODFDOM attribute representation <code>SmilRepeatCountAttribute</code> , See
  483.    * {@odf.attribute smil:repeatCount}
  484.    *
  485.    * @param smilRepeatCountValue The type is <code>String</code>
  486.    */
  487.   public void setSmilRepeatCountAttribute(String smilRepeatCountValue) {
  488.     SmilRepeatCountAttribute attr = new SmilRepeatCountAttribute((OdfFileDom) this.ownerDocument);
  489.     setOdfAttribute(attr);
  490.     attr.setValue(smilRepeatCountValue);
  491.   }

  492.   /**
  493.    * Receives the value of the ODFDOM attribute representation <code>SmilRepeatDurAttribute</code> ,
  494.    * See {@odf.attribute smil:repeatDur}
  495.    *
  496.    * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set
  497.    *     and no default value defined.
  498.    */
  499.   public String getSmilRepeatDurAttribute() {
  500.     SmilRepeatDurAttribute attr =
  501.         (SmilRepeatDurAttribute) getOdfAttribute(OdfDocumentNamespace.SMIL, "repeatDur");
  502.     if (attr != null) {
  503.       return String.valueOf(attr.getValue());
  504.     }
  505.     return null;
  506.   }

  507.   /**
  508.    * Sets the value of ODFDOM attribute representation <code>SmilRepeatDurAttribute</code> , See
  509.    * {@odf.attribute smil:repeatDur}
  510.    *
  511.    * @param smilRepeatDurValue The type is <code>String</code>
  512.    */
  513.   public void setSmilRepeatDurAttribute(String smilRepeatDurValue) {
  514.     SmilRepeatDurAttribute attr = new SmilRepeatDurAttribute((OdfFileDom) this.ownerDocument);
  515.     setOdfAttribute(attr);
  516.     attr.setValue(smilRepeatDurValue);
  517.   }

  518.   /**
  519.    * Receives the value of the ODFDOM attribute representation <code>SmilRestartAttribute</code> ,
  520.    * See {@odf.attribute smil:restart}
  521.    *
  522.    * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set
  523.    *     and no default value defined.
  524.    */
  525.   public String getSmilRestartAttribute() {
  526.     SmilRestartAttribute attr =
  527.         (SmilRestartAttribute) getOdfAttribute(OdfDocumentNamespace.SMIL, "restart");
  528.     if (attr != null) {
  529.       return String.valueOf(attr.getValue());
  530.     }
  531.     return SmilRestartAttribute.DEFAULT_VALUE;
  532.   }

  533.   /**
  534.    * Sets the value of ODFDOM attribute representation <code>SmilRestartAttribute</code> , See
  535.    * {@odf.attribute smil:restart}
  536.    *
  537.    * @param smilRestartValue The type is <code>String</code>
  538.    */
  539.   public void setSmilRestartAttribute(String smilRestartValue) {
  540.     SmilRestartAttribute attr = new SmilRestartAttribute((OdfFileDom) this.ownerDocument);
  541.     setOdfAttribute(attr);
  542.     attr.setValue(smilRestartValue);
  543.   }

  544.   /**
  545.    * Receives the value of the ODFDOM attribute representation <code>SmilRestartDefaultAttribute
  546.    * </code> , See {@odf.attribute smil:restartDefault}
  547.    *
  548.    * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set
  549.    *     and no default value defined.
  550.    */
  551.   public String getSmilRestartDefaultAttribute() {
  552.     SmilRestartDefaultAttribute attr =
  553.         (SmilRestartDefaultAttribute) getOdfAttribute(OdfDocumentNamespace.SMIL, "restartDefault");
  554.     if (attr != null) {
  555.       return String.valueOf(attr.getValue());
  556.     }
  557.     return SmilRestartDefaultAttribute.DEFAULT_VALUE;
  558.   }

  559.   /**
  560.    * Sets the value of ODFDOM attribute representation <code>SmilRestartDefaultAttribute</code> ,
  561.    * See {@odf.attribute smil:restartDefault}
  562.    *
  563.    * @param smilRestartDefaultValue The type is <code>String</code>
  564.    */
  565.   public void setSmilRestartDefaultAttribute(String smilRestartDefaultValue) {
  566.     SmilRestartDefaultAttribute attr =
  567.         new SmilRestartDefaultAttribute((OdfFileDom) this.ownerDocument);
  568.     setOdfAttribute(attr);
  569.     attr.setValue(smilRestartDefaultValue);
  570.   }

  571.   /**
  572.    * Receives the value of the ODFDOM attribute representation <code>SmilTargetElementAttribute
  573.    * </code> , See {@odf.attribute smil:targetElement}
  574.    *
  575.    * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set
  576.    *     and no default value defined.
  577.    */
  578.   public String getSmilTargetElementAttribute() {
  579.     SmilTargetElementAttribute attr =
  580.         (SmilTargetElementAttribute) getOdfAttribute(OdfDocumentNamespace.SMIL, "targetElement");
  581.     if (attr != null) {
  582.       return String.valueOf(attr.getValue());
  583.     }
  584.     return null;
  585.   }

  586.   /**
  587.    * Sets the value of ODFDOM attribute representation <code>SmilTargetElementAttribute</code> , See
  588.    * {@odf.attribute smil:targetElement}
  589.    *
  590.    * @param smilTargetElementValue The type is <code>String</code>
  591.    */
  592.   public void setSmilTargetElementAttribute(String smilTargetElementValue) {
  593.     SmilTargetElementAttribute attr =
  594.         new SmilTargetElementAttribute((OdfFileDom) this.ownerDocument);
  595.     setOdfAttribute(attr);
  596.     attr.setValue(smilTargetElementValue);
  597.   }

  598.   /**
  599.    * Receives the value of the ODFDOM attribute representation <code>SmilToAttribute</code> , See
  600.    * {@odf.attribute smil:to}
  601.    *
  602.    * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set
  603.    *     and no default value defined.
  604.    */
  605.   public String getSmilToAttribute() {
  606.     SmilToAttribute attr = (SmilToAttribute) getOdfAttribute(OdfDocumentNamespace.SMIL, "to");
  607.     if (attr != null) {
  608.       return String.valueOf(attr.getValue());
  609.     }
  610.     return null;
  611.   }

  612.   /**
  613.    * Sets the value of ODFDOM attribute representation <code>SmilToAttribute</code> , See
  614.    * {@odf.attribute smil:to}
  615.    *
  616.    * @param smilToValue The type is <code>String</code>
  617.    */
  618.   public void setSmilToAttribute(String smilToValue) {
  619.     SmilToAttribute attr = new SmilToAttribute((OdfFileDom) this.ownerDocument);
  620.     setOdfAttribute(attr);
  621.     attr.setValue(smilToValue);
  622.   }

  623.   /**
  624.    * Receives the value of the ODFDOM attribute representation <code>SmilValuesAttribute</code> ,
  625.    * See {@odf.attribute smil:values}
  626.    *
  627.    * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set
  628.    *     and no default value defined.
  629.    */
  630.   public String getSmilValuesAttribute() {
  631.     SmilValuesAttribute attr =
  632.         (SmilValuesAttribute) getOdfAttribute(OdfDocumentNamespace.SMIL, "values");
  633.     if (attr != null) {
  634.       return String.valueOf(attr.getValue());
  635.     }
  636.     return null;
  637.   }

  638.   /**
  639.    * Sets the value of ODFDOM attribute representation <code>SmilValuesAttribute</code> , See
  640.    * {@odf.attribute smil:values}
  641.    *
  642.    * @param smilValuesValue The type is <code>String</code>
  643.    */
  644.   public void setSmilValuesAttribute(String smilValuesValue) {
  645.     SmilValuesAttribute attr = new SmilValuesAttribute((OdfFileDom) this.ownerDocument);
  646.     setOdfAttribute(attr);
  647.     attr.setValue(smilValuesValue);
  648.   }

  649.   /**
  650.    * Receives the value of the ODFDOM attribute representation <code>SvgTypeAttribute</code> , See
  651.    * {@odf.attribute svg:type}
  652.    *
  653.    * <p>Attribute is mandatory.
  654.    *
  655.    * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set
  656.    *     and no default value defined.
  657.    */
  658.   public String getSvgTypeAttribute() {
  659.     SvgTypeAttribute attr = (SvgTypeAttribute) getOdfAttribute(OdfDocumentNamespace.SVG, "type");
  660.     if (attr != null) {
  661.       return String.valueOf(attr.getValue());
  662.     }
  663.     return null;
  664.   }

  665.   /**
  666.    * Sets the value of ODFDOM attribute representation <code>SvgTypeAttribute</code> , See
  667.    * {@odf.attribute svg:type}
  668.    *
  669.    * @param svgTypeValue The type is <code>String</code>
  670.    */
  671.   public void setSvgTypeAttribute(String svgTypeValue) {
  672.     SvgTypeAttribute attr = new SvgTypeAttribute((OdfFileDom) this.ownerDocument);
  673.     setOdfAttribute(attr);
  674.     attr.setValue(svgTypeValue);
  675.   }

  676.   @Override
  677.   public void accept(ElementVisitor visitor) {
  678.     if (visitor instanceof DefaultElementVisitor) {
  679.       DefaultElementVisitor defaultVisitor = (DefaultElementVisitor) visitor;
  680.       defaultVisitor.visit(this);
  681.     } else {
  682.       visitor.visit(this);
  683.     }
  684.   }
  685. }