コード例 #1
0
 /**
  * Receives the value of the ODFDOM attribute representation <code>MetaDrawCountAttribute</code> ,
  * See {@odf.attribute meta:draw-count}
  *
  * @return - the <code>Integer</code> , the value or <code>null</code>, if the attribute is not
  *     set and no default value defined.
  */
 public Integer getMetaDrawCountAttribute() {
   MetaDrawCountAttribute attr =
       (MetaDrawCountAttribute)
           getOdfAttribute(OdfName.get(OdfNamespace.get(OdfNamespaceNames.META), "draw-count"));
   if (attr != null) {
     return Integer.valueOf(attr.intValue());
   }
   return null;
 }
コード例 #2
0
 /**
  * Sets the value of ODFDOM attribute representation <code>MetaDrawCountAttribute</code> , See
  * {@odf.attribute meta:draw-count}
  *
  * @param metaDrawCountValue The type is <code>Integer</code>
  */
 public void setMetaDrawCountAttribute(Integer metaDrawCountValue) {
   MetaDrawCountAttribute attr = new MetaDrawCountAttribute((OdfFileDom) this.ownerDocument);
   setOdfAttribute(attr);
   attr.setIntValue(metaDrawCountValue.intValue());
 }