Class UserVariableGetField

java.lang.Object
com.independentsoft.office.odf.fields.Field
com.independentsoft.office.odf.fields.UserVariableGetField
All Implemented Interfaces:
IContentElement, IParagraphContent

public class UserVariableGetField extends Field
Sets the display of the value of a simple variable.
  • Constructor Details

    • UserVariableGetField

      public UserVariableGetField()
      Initializes a new instance of the SimpleVariableGetField class.
    • UserVariableGetField

      public UserVariableGetField(InternalXMLStreamReader reader) throws XMLStreamException
      Instantiates a new user variable get field.
      Parameters:
      reader - the reader
      Throws:
      XMLStreamException - the xML stream exception
  • Method Details

    • getContentElements

      public List<IContentElement> getContentElements()
      Returns all content elements.
      Specified by:
      getContentElements in interface IContentElement
      Specified by:
      getContentElements in class Field
      Returns:
      A collection of content elements.
    • getParent

      public IContentElement getParent()
      Returns the parent content element.
      Specified by:
      getParent in interface IContentElement
      Overrides:
      getParent in class Field
      Returns:
      the parent
    • setParent

      public void setParent(IContentElement parent)
      Sets the parent content element.
      Specified by:
      setParent in interface IContentElement
      Overrides:
      setParent in class Field
      Parameters:
      parent - the new parent
    • clone

      public UserVariableGetField clone()
      Creates a new object that is a deep copy of the current instance.
      Specified by:
      clone in interface IContentElement
      Specified by:
      clone in interface IParagraphContent
      Specified by:
      clone in class Field
      Returns:
      A new object that is a copy of this instance.
    • toString

      public String toString()
      Converts the value of the current UserVariableGetField object to its equivalent string representation.
      Overrides:
      toString in class Object
      Returns:
      the string
    • getName

      public String getName()
      Gets the variable name.
      Returns:
      the name
    • setName

      public void setName(String name)
      Sets the variable name.
      Parameters:
      name - the new name
    • getDisplayType

      public DisplayType getDisplayType()
      Gets the display of a variable get field.
      Returns:
      the display type
    • setDisplayType

      public void setDisplayType(DisplayType displayType)
      Sets the display of a variable get field.
      Parameters:
      displayType - the new display type
    • getStyle

      public String getStyle()
      Gets the data style to format a field value.
      Returns:
      the style
    • setStyle

      public void setStyle(String style)
      Sets the data style to format a field value.
      Parameters:
      style - the new style
    • getValue

      public String getValue()
      Gets the variable field.
      Returns:
      the value
    • setValue

      public void setValue(String value)
      Sets the variable field.
      Parameters:
      value - the new value