Package org.xlsx4j.sml
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 Summary
Fields Modifier and Type Field Description protected java.lang.BooleanallowBlankprotected java.lang.Stringerrorprotected STDataValidationErrorStyleerrorStyleprotected java.lang.StringerrorTitleprotected java.lang.Stringformula1protected java.lang.Stringformula2protected STDataValidationImeModeimeModeprotected STDataValidationOperatoroperatorprotected java.lang.Stringpromptprotected java.lang.StringpromptTitleprotected java.lang.BooleanshowDropDownprotected java.lang.BooleanshowErrorMessageprotected java.lang.BooleanshowInputMessageprotected java.util.List<java.lang.String>sqrefprotected STDataValidationTypetype -
Constructor Summary
Constructors Constructor Description CTDataValidation() -
Method Summary
Modifier and Type Method Description voidafterUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, java.lang.Object parent)This method is invoked by the JAXB implementation on each instance when unmarshalling completes.java.lang.StringgetError()Gets the value of the error property.STDataValidationErrorStylegetErrorStyle()Gets the value of the errorStyle property.java.lang.StringgetErrorTitle()Gets the value of the errorTitle property.java.lang.StringgetFormula1()Gets the value of the formula1 property.java.lang.StringgetFormula2()Gets the value of the formula2 property.STDataValidationImeModegetImeMode()Gets the value of the imeMode property.STDataValidationOperatorgetOperator()Gets the value of the operator property.java.lang.ObjectgetParent()Gets the parent object in the object tree representing the unmarshalled xml document.java.lang.StringgetPrompt()Gets the value of the prompt property.java.lang.StringgetPromptTitle()Gets the value of the promptTitle property.java.util.List<java.lang.String>getSqref()Gets the value of the sqref property.STDataValidationTypegetType()Gets the value of the type property.booleanisAllowBlank()Gets the value of the allowBlank property.booleanisShowDropDown()Gets the value of the showDropDown property.booleanisShowErrorMessage()Gets the value of the showErrorMessage property.booleanisShowInputMessage()Gets the value of the showInputMessage property.voidsetAllowBlank(java.lang.Boolean value)Sets the value of the allowBlank property.voidsetError(java.lang.String value)Sets the value of the error property.voidsetErrorStyle(STDataValidationErrorStyle value)Sets the value of the errorStyle property.voidsetErrorTitle(java.lang.String value)Sets the value of the errorTitle property.voidsetFormula1(java.lang.String value)Sets the value of the formula1 property.voidsetFormula2(java.lang.String value)Sets the value of the formula2 property.voidsetImeMode(STDataValidationImeMode value)Sets the value of the imeMode property.voidsetOperator(STDataValidationOperator value)Sets the value of the operator property.voidsetParent(java.lang.Object parent)voidsetPrompt(java.lang.String value)Sets the value of the prompt property.voidsetPromptTitle(java.lang.String value)Sets the value of the promptTitle property.voidsetShowDropDown(java.lang.Boolean value)Sets the value of the showDropDown property.voidsetShowErrorMessage(java.lang.Boolean value)Sets the value of the showErrorMessage property.voidsetShowInputMessage(java.lang.Boolean value)Sets the value of the showInputMessage property.voidsetType(STDataValidationType value)Sets the value of the type property.
-
Field Details
-
formula1
protected java.lang.String formula1 -
formula2
protected java.lang.String formula2 -
type
-
errorStyle
-
imeMode
-
operator
-
allowBlank
protected java.lang.Boolean allowBlank -
showDropDown
protected java.lang.Boolean showDropDown -
showInputMessage
protected java.lang.Boolean showInputMessage -
showErrorMessage
protected java.lang.Boolean showErrorMessage -
errorTitle
protected java.lang.String errorTitle -
error
protected java.lang.String error -
promptTitle
protected java.lang.String promptTitle -
prompt
protected java.lang.String prompt -
sqref
protected java.util.List<java.lang.String> sqref
-
-
Constructor Details
-
CTDataValidation
public CTDataValidation()
-
-
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 isString
-
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 isString
-
getType
Gets the value of the type property.- Returns:
- possible object is
STDataValidationType
-
setType
Sets the value of the type property.- Parameters:
value- allowed object isSTDataValidationType
-
getErrorStyle
Gets the value of the errorStyle property.- Returns:
- possible object is
STDataValidationErrorStyle
-
setErrorStyle
Sets the value of the errorStyle property.- Parameters:
value- allowed object isSTDataValidationErrorStyle
-
getImeMode
Gets the value of the imeMode property.- Returns:
- possible object is
STDataValidationImeMode
-
setImeMode
Sets the value of the imeMode property.- Parameters:
value- allowed object isSTDataValidationImeMode
-
getOperator
Gets the value of the operator property.- Returns:
- possible object is
STDataValidationOperator
-
setOperator
Sets the value of the operator property.- Parameters:
value- allowed object isSTDataValidationOperator
-
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 isBoolean
-
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 isBoolean
-
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 isBoolean
-
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 isBoolean
-
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 isString
-
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 isString
-
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 isString
-
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 isString
-
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
setmethod 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. -
setParent
public void setParent(java.lang.Object parent) -
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.
-