コード例 #1
0
 /**
  * Receives the value of the ODFDOM attribute representation <code>NumberCountryAttribute</code> ,
  * See {@odf.attribute number:country}
  *
  * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set
  *     and no default value defined.
  */
 public String getNumberCountryAttribute() {
   NumberCountryAttribute attr =
       (NumberCountryAttribute) getOdfAttribute(OdfDocumentNamespace.NUMBER, "country");
   if (attr != null) {
     return String.valueOf(attr.getValue());
   }
   return null;
 }
コード例 #2
0
 /**
  * Sets the value of ODFDOM attribute representation <code>NumberCountryAttribute</code> , See
  * {@odf.attribute number:country}
  *
  * @param numberCountryValue The type is <code>String</code>
  */
 public void setNumberCountryAttribute(String numberCountryValue) {
   NumberCountryAttribute attr = new NumberCountryAttribute((OdfFileDom) this.ownerDocument);
   setOdfAttribute(attr);
   attr.setValue(numberCountryValue);
 }