コード例 #1
0
 /**
  * Receives the value of the ODFDOM attribute representation <code>MetaCharacterCountAttribute
  * </code> , See {@odf.attribute meta:character-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 getMetaCharacterCountAttribute() {
   MetaCharacterCountAttribute attr =
       (MetaCharacterCountAttribute)
           getOdfAttribute(
               OdfName.get(OdfNamespace.get(OdfNamespaceNames.META), "character-count"));
   if (attr != null) {
     return Integer.valueOf(attr.intValue());
   }
   return null;
 }
コード例 #2
0
 /**
  * Sets the value of ODFDOM attribute representation <code>MetaCharacterCountAttribute</code> ,
  * See {@odf.attribute meta:character-count}
  *
  * @param metaCharacterCountValue The type is <code>Integer</code>
  */
 public void setMetaCharacterCountAttribute(Integer metaCharacterCountValue) {
   MetaCharacterCountAttribute attr =
       new MetaCharacterCountAttribute((OdfFileDom) this.ownerDocument);
   setOdfAttribute(attr);
   attr.setIntValue(metaCharacterCountValue.intValue());
 }