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