1 // Copyright 2017 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #include "fxjs/xfa/cjx_validate.h"
8 
9 #include "xfa/fxfa/parser/cxfa_validate.h"
10 
CJX_Validate(CXFA_Validate * node)11 CJX_Validate::CJX_Validate(CXFA_Validate* node) : CJX_Node(node) {}
12 
13 CJX_Validate::~CJX_Validate() = default;
14 
use(CFXJSE_Value * pValue,bool bSetting,XFA_Attribute eAttribute)15 void CJX_Validate::use(CFXJSE_Value* pValue,
16                        bool bSetting,
17                        XFA_Attribute eAttribute) {
18   Script_Attribute_String(pValue, bSetting, eAttribute);
19 }
20 
scriptTest(CFXJSE_Value * pValue,bool bSetting,XFA_Attribute eAttribute)21 void CJX_Validate::scriptTest(CFXJSE_Value* pValue,
22                               bool bSetting,
23                               XFA_Attribute eAttribute) {
24   Script_Attribute_String(pValue, bSetting, eAttribute);
25 }
26 
nullTest(CFXJSE_Value * pValue,bool bSetting,XFA_Attribute eAttribute)27 void CJX_Validate::nullTest(CFXJSE_Value* pValue,
28                             bool bSetting,
29                             XFA_Attribute eAttribute) {
30   Script_Attribute_String(pValue, bSetting, eAttribute);
31 }
32 
usehref(CFXJSE_Value * pValue,bool bSetting,XFA_Attribute eAttribute)33 void CJX_Validate::usehref(CFXJSE_Value* pValue,
34                            bool bSetting,
35                            XFA_Attribute eAttribute) {
36   Script_Attribute_String(pValue, bSetting, eAttribute);
37 }
38 
formatTest(CFXJSE_Value * pValue,bool bSetting,XFA_Attribute eAttribute)39 void CJX_Validate::formatTest(CFXJSE_Value* pValue,
40                               bool bSetting,
41                               XFA_Attribute eAttribute) {
42   Script_Attribute_String(pValue, bSetting, eAttribute);
43 }
44