Package writer2latex.office
Class FormReader
- java.lang.Object
-
- writer2latex.office.FormReader
-
public class FormReader extends java.lang.ObjectThis class reads a form in an OOo document (a form:form node)
Note: Subforms, properties and events are ignored.
-
-
Constructor Summary
Constructors Constructor Description FormReader(org.w3c.dom.Element form, FormsReader forms)The constructor reads the content of aform:formelement
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAttribute(java.lang.String sName)Get an attribute of the form.java.lang.StringgetName()A form in OOo is identified by name (form:nameattribute.
-
-
-
Constructor Detail
-
FormReader
public FormReader(org.w3c.dom.Element form, FormsReader forms)The constructor reads the content of a
form:formelement- Parameters:
form- a DOM element, which must beform:formnode
-
-
Method Detail
-
getName
public java.lang.String getName()
A form in OOo is identified by name (
form:nameattribute. The name is accessed by this method.- Returns:
- the name of the form
-
getAttribute
public java.lang.String getAttribute(java.lang.String sName)
Get an attribute of the form. If the attribute does not exist, this method returns
null.- Parameters:
sName- the name of the attribute- Returns:
- the value of the attribute, or
null
-
-