释义 |
validator 英'vɑlɪˌdeɪtə美'vɑlɪˌdeɪtə COCA¹⁹⁷⁰²⁰BNC²³⁶²¹³⁺¹iWeb²⁵²⁷⁸ 基本例句 n.确认者⁵⁰;验证者⁵⁰ As the validator works, it keeps track of the running results as an in- memory XML file. 验证程序工作的过程中将运行结果记录到内存中的一个 XML文件中。 ibm It seems the JSP compiler or validator in RAD6 tries to compile those fragment files like a standalone files. 好像 RAD6中的 JSP编译器或验证程序试图将这些片段文件作为独立文件编译。 ibm The format of schema files for the validator was designed so that it is a simple task to create from a formal specification. 验证器的架构文件的格式是经过预先设计的,以便从一个正式规范创建架构成为一个简单任务。 ibm The schema validator will fire an exception when the 31st student attempts to enter the class. 如果第31名学生试图进入课堂,模式验证器就会引发一个异常。 ibm The validator can be invoked automatically when the WSDL importer or WSDL generator is run, or you can invoke it manually via the tooling for example, the pop-up menu on a. wsdl file. 当 WSDL导入器或 WSDL生成器运行时,可自动调用验证器,也可以通过工具例如,. wsdl文件上的弹出菜单手动调用它。 ibm Doing so is not always bad, but in this case it has unwittingly kept the schema validator from helping out. 这种做法并不总是坏事,但是在本文的例子中却无意中妨碍了模式验证器的工作。 ibm During parsing, if a validator needs a new schema, it first checks to see if the grammar bucket has the compiled schema it needs. 在解析过程中,如果验证程序需要新的模式,它首先检查语法桶中是否包含需要的编译后的模式。 ibm Each validator of the hierarchy will need a method to verify a single value. 层次结构中的每个验证器都需要一个方法来验证单个值。 ibm Further, the validator will shoulder the burden of throwing errors for invalid dates and numerics. 更进一步说,验证器将承担为非法的日期和数字抛出错误的工作。 ibm However, the validator does require some additional metadata to be added to the syntax information and imposes some restrictions in its structure. 但是,验证器的确需要向这个语法信息添加一些额外的元数据并对其结构实施一些限制。 ibm If we do not do this, the validator will expect to find this assertion in every policy it validates. 如果不这样做,验证器会期望在其验证的每个策略中找到这个断言。 ibm I'll continue with the generic- validator implementation in the next section, where you'll really begin to see the value of reusable and reconfigurable code. 在下一节中,我会继续采用通用验证器的实现,在那里您会真正开始发现可重用和可配置代码的价值。 ibm If you add this type of constraint at development time, the schema validator will reject the invalid data at runtime. 如果您在开发阶段加入这种类型的约束,在运行的时候模式验证器就会拒绝无效数据。 ibm In this case, you would either have to write a custom validator, as well, or simply include any special validation logic in the custom converter. 在这种情况下,要么编写自定义验证器,要么在自定义转换器中添加一个特别的验证逻辑。 ibm Its strengths are that there is no type encoding info, and any XML validator can validate the messages. 其优点在于没有类型编码信息,任何 XML验证器都可以验证消息。 ibm One useful application of this ability involves using the validator to automatically set default values for certain fields if they're not present in the POST submission. 这个功能的一个有用的应用是:如果某些字段没有出现在 POST提交中,可以使用验证器自动设置这些字段的默认值。 ibm The new XML decomposition also has a strong type validator and type conversion engine. 新的 XML分解也具有一个强类型的验证器和类型转换引擎。 ibm These schemas are stored in a validator's grammar bucket and used during validation if needed. 这些模式保存在验证程序的语法桶中,需要的时候在验证中使用。 ibm This determinism simplifies the implementation of the validator and can be useful for applications which require a mapping between elements in the instance document and particles in the schema. 这种确定性简化了验证器的实现,并且对于需要实例文档中的元素与模式中的粒子匹配的应用程序来说也很有用。 ibm This is a mistake if you want a schema validator to do the validation for you, and I'll show you why. 如果您想让模式验证器为您进行验证的话,这个地方就是一个错误,下面告诉您原因。 ibm This portion of the validator is still under development, but Listing5 shows how the host language is defined. 验证程序的这一部分仍在开发之中,但清单5说明了如何定义宿主语言。 ibm This situation isn't pretty, but a real- world validator tool needs to be aware of it. 这种情况不怎么好,但实用的验证程序工具必须能处理这种情况。 ibm This validator can also confirm that the image corresponds to a particular format, width, and height. 这个验证器还能确认图片与特定格式、宽度和高度是否相对应。 ibm To fix this loophole, you'll create a custom validator. 为了修复这个漏洞,您可以创建一个定制的验证器。 ibm To help this, the code for the validator and viewer will be given a permissive open source license so that they can be integrated into other programs without worry. 为提供帮助,验证程序和查看器的代码将获得一个宽松的开放源代码许可,以便能够放心地将它们集成到其他程序中。 ibm Unfortunately, the abstraction is leaky: in my ZIP code validator, for example, I would have liked to use regular expressions to perform the check. 不幸的是,抽象是有漏洞的:例如,在我的 ZIP代码验证器中,本想使用正则表达式执行检测。 ibm You can write notifier, modifier, or governance plug-ins as well as validator plug-ins, and the API is similar. 您可以编写通知、修改程序、治理插件或验证器插件,但使用的 API是类似的。 ibm You should generally leave the default, which allows the validator to check the conformance of MIME SOAP with Attachments bindings in the WSDL, in addition to regular SOAP bindings. 通常,您应保留缺省值,除常规 SOAP绑定外,该缺省值还允许验证器检查 WSDL中 MIME带附件的 SOAP绑定的遵从性。 ibm You want the validator to sound the alarm when this data is missing so you will not have to hand code the validation yourself. 您为了避免自己手工编写验证代码,可能想让验证器在数据缺失的时候发出警报声。 ibm You'll also have noticed that in the preceding explanation, I skipped over one important component: the input validator. 您可能还注意到,在前面的解释中,我跳过了一个重要组件:输入验证器。 ibm |