예제 #1
0
 /**
  * Receives the value of the ODFDOM attribute representation <code>
  * DbParameterNameSubstitutionAttribute</code> , See {@odf.attribute
  * db:parameter-name-substitution}
  *
  * @return - the <code>Boolean</code> , the value or <code>null</code>, if the attribute is not
  *     set and no default value defined.
  */
 public Boolean getDbParameterNameSubstitutionAttribute() {
   DbParameterNameSubstitutionAttribute attr =
       (DbParameterNameSubstitutionAttribute)
           getOdfAttribute(
               OdfName.get(OdfNamespace.get(OdfNamespaceNames.DB), "parameter-name-substitution"));
   if (attr != null) {
     return Boolean.valueOf(attr.booleanValue());
   }
   return Boolean.valueOf(DbParameterNameSubstitutionAttribute.DEFAULT_VALUE);
 }
예제 #2
0
 /**
  * Sets the value of ODFDOM attribute representation <code>DbParameterNameSubstitutionAttribute
  * </code> , See {@odf.attribute db:parameter-name-substitution}
  *
  * @param dbParameterNameSubstitutionValue The type is <code>Boolean</code>
  */
 public void setDbParameterNameSubstitutionAttribute(Boolean dbParameterNameSubstitutionValue) {
   DbParameterNameSubstitutionAttribute attr =
       new DbParameterNameSubstitutionAttribute((OdfFileDom) this.ownerDocument);
   setOdfAttribute(attr);
   attr.setBooleanValue(dbParameterNameSubstitutionValue.booleanValue());
 }