Encapsulating validation logic.
封装确认逻辑。
One option is to place your validation logic in a service layer.
一个选择就是把验证代码放到“Service”层中。
One thing we certainly need in the near term is some validation logic.
我们近期肯定需要的一件事就是某种验证逻辑。
A validation provider provides validation logic for the data model.
验证提供程序为数据模型提供验证逻辑。
Validation logic limited to backing bean method, resulting in limited re-use.
验证逻辑局限于backingbean方法,使得重用性很有限。
The invocation handler class is where all of the data validation logic is handled.
调用处理程序类是处理所有数据验证逻辑的地方。
The domain validator can also include global validation logic for the entire domain.
域确认器还包含了整个域的全局确认逻辑。
It is useful when the same validation logic can be applied to more than one data field.
相同的验证逻辑可以套用于多个资料栏位时,这个作法就很实用。
Here, the validation logic is run as part of a service external to the object that is calling it.
在这里,验证逻辑作为调用对象的外部服务运行。
Additionally, we've moved all our validation logic into one place, avoiding redundancy in the code.
另外,我们已将所有的验证逻辑移至一处,从而避免代码中出现冗余。
Because our example application included a business delegate class, we placed the validation logic there.
因为示例应用程序包含了一个业务委派类,所以我们在其中放置了验证逻辑。
The validation logic used by the MRM parser does not conform exactly to the W3C XML Schema specification.
MRM解析器使用的验证逻辑并不完全遵守W3CXML模式规范。
Fortunately, tight coupling isn't the only option when it comes to coding the User interface's validation logic.
幸运的是,紧密耦合不是我们在编写User接口的验证逻辑时的唯一选项。
The constraints are defined in the bean (domain object) so the validation logic is close to the domain model.
约束是定义在一个bean(领域对象)中的,因此校验逻辑离领域模型最近。
They serve to make the document easier to understand to the naked eye as opposed to providing any validation logic.
相比于给出任何验证逻辑而言,这样做只是为了使文档更易于理解。
In many cases, validation logic that you cannot implement in XML Schema or DTD is incorporated into application code.
在很多情况下,用XMLSchema或DTD不能实现的验证逻辑被并入到应用程序代码中。
A better way is to place the validation logic in the domain validator class of the Mysql domain (MysqlDomainValidator).
更好的方法是将确认逻辑置于My sq l域MysqlDomainValidator的域确认器类。
Most business methods contain validation logic to ensure that pre-conditions are met before carrying out business logic.
大多数业务方法都包含验证逻辑,以确保在执行业务逻辑之前,前提条件得到满足。
The presentation layer can call the validation logic on the data provided by a form before passing it to the domain model.
展示层可以调用验证逻辑对表单提供的数据进行验证,然后再将该数据传递给域模型。
What follows is some validation logic to ensure that the user actually selected values prior to clicking the Search button.
接下来是一些验证逻辑,它们确保用户在单击Search按钮之前选择了某些值。
This provides an easy way to create custom validation logic while still using in the validation framework of the page.
这提供了一种简单的方式来建立自订验证逻辑,同时使用网页的验证架构。
Listing 3 shows how a validation service can be used to decouple validation logic from the implementation's core business logic.
清单3显示了如何用验证服务把验证逻辑从核心业务逻辑实现中去耦。
Therefore, you must write the inline custom validation logic as if it were dealing with validation in a custom Validator object.
因此,必须编写嵌入自定义验证逻辑,就像使用一个自定义Validator对象处理验证一样。
The basic idea is that the BRMS decouples an application's business logic from its data validation logic and from its flow control.
其基本思想在于,BRMS将应用程序的业务逻辑与其数据验证逻辑和流程控制分离开来。
While this approach works to decouple the interface's validation logic from its core business code, it isn't very reusable or configurable.
虽然这种方法可以把接口的验证逻辑从它的核心业务代码去耦,但是它的可重用性和可配置性不是很强。
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.
在这种情况下,要么编写自定义验证器,要么在自定义转换器中添加一个特别的验证逻辑。
Note that the simple methods in Listing 1 can be called from other classes, such as our business delegates, to perform validation logic as needed.
可以从诸如业务委派等其它类上调用清单1中的简单方法,以按需执行验证逻辑。
Each constraint (beyond implementing the validation logic), describes how it can be projected on a set of predefined static constraint dimensions.
每个约束(不只实现了验证逻辑)描述了它如何能投映到一组预定义的静态约束范围内。
The issue here is that existing applications effectively control enterprise data access through implementation of the data access and validation logic.
这儿的问题是现有应用通过实现数据存取和验证逻辑有效控制了企业数据的访问。
The issue here is that existing applications effectively control enterprise data access through implementation of the data access and validation logic.
这儿的问题是现有应用通过实现数据存取和验证逻辑有效控制了企业数据的访问。
应用推荐