Package org.xlsx4j.sml
Class CTDataValidation
java.lang.Object
org.xlsx4j.sml.CTDataValidation
- All Implemented Interfaces:
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
FieldsModifier and TypeFieldDescriptionprotected Booleanprotected Stringprotected STDataValidationErrorStyleprotected Stringprotected Stringprotected Stringprotected STDataValidationImeModeprotected STDataValidationOperatorprotected Stringprotected Stringprotected Booleanprotected Booleanprotected Booleanprotected STDataValidationType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterUnmarshal(jakarta.xml.bind.Unmarshaller unmarshaller, Object parent) This method is invoked by the JAXB implementation on each instance when unmarshalling completes.getError()Gets the value of the error property.Gets the value of the errorStyle property.Gets the value of the errorTitle property.Gets the value of the formula1 property.Gets the value of the formula2 property.Gets the value of the imeMode property.Gets the value of the operator property.Gets the parent object in the object tree representing the unmarshalled xml document.Gets the value of the prompt property.Gets the value of the promptTitle property.getSqref()Gets the value of the sqref property.getType()Gets the value of the type property.booleanGets the value of the allowBlank property.booleanGets the value of the showDropDown property.booleanGets the value of the showErrorMessage property.booleanGets the value of the showInputMessage property.voidsetAllowBlank(Boolean value) Sets the value of the allowBlank property.voidSets the value of the error property.voidSets the value of the errorStyle property.voidsetErrorTitle(String value) Sets the value of the errorTitle property.voidsetFormula1(String value) Sets the value of the formula1 property.voidsetFormula2(String value) Sets the value of the formula2 property.voidSets the value of the imeMode property.voidSets the value of the operator property.voidvoidSets the value of the prompt property.voidsetPromptTitle(String value) Sets the value of the promptTitle property.voidsetShowDropDown(Boolean value) Sets the value of the showDropDown property.voidsetShowErrorMessage(Boolean value) Sets the value of the showErrorMessage property.voidsetShowInputMessage(Boolean value) Sets the value of the showInputMessage property.voidsetType(STDataValidationType value) Sets the value of the type property.
-
Field Details
-
formula1
-
formula2
-
type
-
errorStyle
-
imeMode
-
operator
-
allowBlank
-
showDropDown
-
showInputMessage
-
showErrorMessage
-
errorTitle
-
error
-
promptTitle
-
prompt
-
sqref
-
-
Constructor Details
-
CTDataValidation
public CTDataValidation()
-
-
Method Details
-
getFormula1
Gets the value of the formula1 property.- Returns:
- possible object is
String
-
setFormula1
Sets the value of the formula1 property.- Parameters:
value- allowed object isString
-
getFormula2
Gets the value of the formula2 property.- Returns:
- possible object is
String
-
setFormula2
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
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
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
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
Sets the value of the showErrorMessage property.- Parameters:
value- allowed object isBoolean
-
getErrorTitle
Gets the value of the errorTitle property.- Returns:
- possible object is
String
-
setErrorTitle
Sets the value of the errorTitle property.- Parameters:
value- allowed object isString
-
getError
Gets the value of the error property.- Returns:
- possible object is
String
-
setError
Sets the value of the error property.- Parameters:
value- allowed object isString
-
getPromptTitle
Gets the value of the promptTitle property.- Returns:
- possible object is
String
-
setPromptTitle
Sets the value of the promptTitle property.- Parameters:
value- allowed object isString
-
getPrompt
Gets the value of the prompt property.- Returns:
- possible object is
String
-
setPrompt
Sets the value of the prompt property.- Parameters:
value- allowed object isString
-
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
Gets the parent object in the object tree representing the unmarshalled xml document. -
setParent
-
afterUnmarshal
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.
-