Class CTDataValidation

java.lang.Object
org.xlsx4j.sml.CTDataValidation
All Implemented Interfaces:
Child

public class CTDataValidation
extends java.lang.Object
implements Child

Java class for CT_DataValidation complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="CT_DataValidation">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="formula1" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Formula" minOccurs="0"/>
         <element name="formula2" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Formula" minOccurs="0"/>
       </sequence>
       <attribute name="type" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DataValidationType" default="none" />
       <attribute name="errorStyle" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DataValidationErrorStyle" default="stop" />
       <attribute name="imeMode" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DataValidationImeMode" default="noControl" />
       <attribute name="operator" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_DataValidationOperator" default="between" />
       <attribute name="allowBlank" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="showDropDown" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="showInputMessage" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="showErrorMessage" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="errorTitle" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
       <attribute name="error" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
       <attribute name="promptTitle" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
       <attribute name="prompt" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
       <attribute name="sqref" use="required" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_Sqref" />
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

  • Method Details

    • getFormula1

      public java.lang.String getFormula1()
      Gets the value of the formula1 property.
      Returns:
      possible object is String
    • setFormula1

      public void setFormula1​(java.lang.String value)
      Sets the value of the formula1 property.
      Parameters:
      value - allowed object is String
    • getFormula2

      public java.lang.String getFormula2()
      Gets the value of the formula2 property.
      Returns:
      possible object is String
    • setFormula2

      public void setFormula2​(java.lang.String value)
      Sets the value of the formula2 property.
      Parameters:
      value - allowed object is String
    • getType

      public STDataValidationType getType()
      Gets the value of the type property.
      Returns:
      possible object is STDataValidationType
    • setType

      public void setType​(STDataValidationType value)
      Sets the value of the type property.
      Parameters:
      value - allowed object is STDataValidationType
    • getErrorStyle

      public STDataValidationErrorStyle getErrorStyle()
      Gets the value of the errorStyle property.
      Returns:
      possible object is STDataValidationErrorStyle
    • setErrorStyle

      public void setErrorStyle​(STDataValidationErrorStyle value)
      Sets the value of the errorStyle property.
      Parameters:
      value - allowed object is STDataValidationErrorStyle
    • getImeMode

      public STDataValidationImeMode getImeMode()
      Gets the value of the imeMode property.
      Returns:
      possible object is STDataValidationImeMode
    • setImeMode

      public void setImeMode​(STDataValidationImeMode value)
      Sets the value of the imeMode property.
      Parameters:
      value - allowed object is STDataValidationImeMode
    • getOperator

      public STDataValidationOperator getOperator()
      Gets the value of the operator property.
      Returns:
      possible object is STDataValidationOperator
    • setOperator

      public void setOperator​(STDataValidationOperator value)
      Sets the value of the operator property.
      Parameters:
      value - allowed object is STDataValidationOperator
    • isAllowBlank

      public boolean isAllowBlank()
      Gets the value of the allowBlank property.
      Returns:
      possible object is Boolean
    • setAllowBlank

      public void setAllowBlank​(java.lang.Boolean value)
      Sets the value of the allowBlank property.
      Parameters:
      value - allowed object is Boolean
    • isShowDropDown

      public boolean isShowDropDown()
      Gets the value of the showDropDown property.
      Returns:
      possible object is Boolean
    • setShowDropDown

      public void setShowDropDown​(java.lang.Boolean value)
      Sets the value of the showDropDown property.
      Parameters:
      value - allowed object is Boolean
    • isShowInputMessage

      public boolean isShowInputMessage()
      Gets the value of the showInputMessage property.
      Returns:
      possible object is Boolean
    • setShowInputMessage

      public void setShowInputMessage​(java.lang.Boolean value)
      Sets the value of the showInputMessage property.
      Parameters:
      value - allowed object is Boolean
    • isShowErrorMessage

      public boolean isShowErrorMessage()
      Gets the value of the showErrorMessage property.
      Returns:
      possible object is Boolean
    • setShowErrorMessage

      public void setShowErrorMessage​(java.lang.Boolean value)
      Sets the value of the showErrorMessage property.
      Parameters:
      value - allowed object is Boolean
    • getErrorTitle

      public java.lang.String getErrorTitle()
      Gets the value of the errorTitle property.
      Returns:
      possible object is String
    • setErrorTitle

      public void setErrorTitle​(java.lang.String value)
      Sets the value of the errorTitle property.
      Parameters:
      value - allowed object is String
    • getError

      public java.lang.String getError()
      Gets the value of the error property.
      Returns:
      possible object is String
    • setError

      public void setError​(java.lang.String value)
      Sets the value of the error property.
      Parameters:
      value - allowed object is String
    • getPromptTitle

      public java.lang.String getPromptTitle()
      Gets the value of the promptTitle property.
      Returns:
      possible object is String
    • setPromptTitle

      public void setPromptTitle​(java.lang.String value)
      Sets the value of the promptTitle property.
      Parameters:
      value - allowed object is String
    • getPrompt

      public java.lang.String getPrompt()
      Gets the value of the prompt property.
      Returns:
      possible object is String
    • setPrompt

      public void setPrompt​(java.lang.String value)
      Sets the value of the prompt property.
      Parameters:
      value - allowed object is String
    • getSqref

      public java.util.List<java.lang.String> getSqref()
      Gets the value of the sqref property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the sqref property.

      For example, to add a new item, do as follows:

          getSqref().add(newItem);
       

      Objects of the following type(s) are allowed in the list String

    • getParent

      public java.lang.Object getParent()
      Gets the parent object in the object tree representing the unmarshalled xml document.
      Specified by:
      getParent in interface Child
      Returns:
      The parent object.
    • setParent

      public void setParent​(java.lang.Object parent)
      Specified by:
      setParent in interface Child
    • afterUnmarshal

      public void afterUnmarshal​(javax.xml.bind.Unmarshaller unmarshaller, java.lang.Object parent)
      This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
      Parameters:
      parent - The parent object in the object tree.
      unmarshaller - The unmarshaller that generated the instance.