Пример #1
0
 /**
  * Receives the value of the ODFDOM attribute representation <code>PresentationClassAttribute
  * </code> , See {@odf.attribute presentation:class}
  *
  * @return - the <code>String</code> , the value or <code>null</code>, if the attribute is not set
  *     and no default value defined.
  */
 public String getPresentationClassAttribute() {
   PresentationClassAttribute attr =
       (PresentationClassAttribute)
           getOdfAttribute(OdfName.get(OdfNamespace.get(OdfNamespaceNames.PRESENTATION), "class"));
   if (attr != null) {
     return String.valueOf(attr.getValue());
   }
   return null;
 }
Пример #2
0
 /**
  * Sets the value of ODFDOM attribute representation <code>PresentationClassAttribute</code> , See
  * {@odf.attribute presentation:class}
  *
  * @param presentationClassValue The type is <code>String</code>
  */
 public void setPresentationClassAttribute(String presentationClassValue) {
   PresentationClassAttribute attr =
       new PresentationClassAttribute((OdfFileDom) this.ownerDocument);
   setOdfAttribute(attr);
   attr.setValue(presentationClassValue);
 }