In most instances, the actual class of the Content Store object returned will be known so it can be cast directly.
在大多数情况下,返回的内容库对象的实际的类是已知的,因此可以直接进行转换。
Thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance.
该异常的抛出,表明代码企图把对象的类型转换成一个子类,而该对象并不是这个子类的实例。
For example, if the user does not understand that wrappers are needed for some scenarios then this will be sent on the return object cast.
例如,如果用户不知道在某些情况下需要包装,则可能会在对返回对象进行强制转换时发出此消息。
The striking object received 67, 021 votes out of the nearly 140, 000 votes cast for the six candidate targets.
在六个参赛目标中,这个引人注目的目标获得了近140,000投票中的67,021票。
To determine which tag to add, access the source object from the transformation context and cast it to a UML class.
要决定添加哪个标签,在转换环境中访问源对象,并将其转换为UML类。
The qualities of a shadow depend on the light direction and intensity, as well as the distance between the object and the surface where the shadow is cast.
阴影深度取决于光照方向和强度,以及物体和投影面的距离。
To access the Content store object that is stored in the array as the class expected to be returned, the object must be cast to its actual class.
要访问以类的形式存储在数组中的内容库对象,对象必须转换为它自己的类。
In cases where the returned class is not known, it may be necessary to determine the class of the object in order to cast it properly.
如果返回的类是未知的,可能需要判断对象的类,从而执行正确的转换。
But, if you really want a list of values, you can always cast the returned dict object. For example.
不过,如果您的确想要得到值的列表,可以对所返回的dict对象进行强制类型转换。
Note that the unmarshalling creates a generic object, so you must explicitly cast it to the SimpleBean type.
注意,解组将创建一个泛型对象,因此您必须将其显式设置为 SimpleBean 类型。
The object we get back is cast to our EJB home object, and from this object we create an instance of the Converter bean.
我们得到的对象可转换为ejbhome对象,并且可以从这个对象创建一个Converterbean实例。
To fetch elements from the collection, you had to know the type of object in the collection so you could cast it back to the appropriate local variable.
要从集合中提取元素,您必须知道集合中对象的类型,以将其强制转换为合适的局部变量。
You can also cast the object returned by the lookup to the specific interface for your web service.
您也可以将该查找返回的对象强制转换成您的Web服务的指定接口。
Finally, the narrow method checks to make sure the retrieved object from JNDI can be cast into the intended object type, CustomerHome.
最后,严密的方法检查用于确保从JNDI检索到的对象可以被映射为所需的对象类型CustomerHome。
Given an object being tested (such as item in Listing 5) and a target class (Integer) being cast to, the class loader checks the following rules.
当检查对象(例如清单5中的item)并把类型转换成目标类(Integer)时,类装入器会检查以下规则。
One must therefore take into account both the expected return type and the data model when deciding how to cast the object that this method returns.
因此在决定如何对该方法的返回值进行强制类型转换时,必须同时考虑预期的返回类型和所用的数据模型。
To determine what keyword to add, access the source object from the transformation context and cast it to a UML Class.
为了决定添加什么关键字,从转换内容中访问资源对象,并将其传递给一个uml类。
To access some information in SAX, you need to cast an object to a different interface; this carries a performance cost.
要访问SAX中的一些信息,必须将对象强制转化成不同的接口,这样就带来了性能上的开销。
The easiest way to fix such exceptions is to carefully check that the type to which an object is being cast conforms to the rules mentioned above.
修复这类异常的最简单方式就是仔细检查对象要转换到的类型是否符合以上提到的规则。
The class cast of the mock object into type Collaborator is necessary because the intercept method returns type object.
模拟对象到Collaborator类型的类强制转换十分有必要,因为intercept方法将返回类型Object。
We can then cast it to an IShorten object and use it to interact with the service registered previously.
然后我们可以把服务对象赋值给一个IShorten对象,并使用它与前面讲到 的已注册服务进行交互。
To make the data useful to your script, you need to first cast the return value to a Boolean object, and then convert that object to a primitive Boolean.
为了使得数据有用,您需要首先把返回值转换为Boolean对象,然后将其转变为原始boolean值。
Once you get past parameter verification and you have cast the object to Content correctly, you must create the actual item in the repository.
通过了参数检验并将对象正确地转换为Content之后,必须在存储库中创建实际条目。
Note that you need to cast the return type -- getValue returns an object of type Object.
注意:您需要强制转换返回类型 ―getValue返回一个Object 类型的对象。
The getProperty method returns an instance of the class Object, so you must cast the result into the appropriate type, which, in this case, is a string.
getProperty方法返回Object类的一个实例,因此您必须把结果转换成合适的类型,在本例中是 string 型。
This means that you can easily access members directly off a returned object, or you can assign it to a strongly typed local variable without having to cast.
这意味着你可以直接在返回的对象上访问成员,或者可以使用强类型的局部变量为其赋值,而无需进行转换。
My second card is the earth's shadow: When cast on the moon during eclipses, it appears to be the shadow of a round object.
我的第二张牌是地球的影子:月食期间,地球投在月亮上的影子看上去呈圆形物体状。
At runtime, to access a diagram's properties, it's required to cast your instance of a diagram object to a specific type, as the following example demonstrates.
在运行时获取图属性,需要强制图对象转换到特定类型,如下例所示。
Glass is a heavy object which can be used as a tool of cast, press the paper and encase a butterfly.
玻璃杯是一个沉重的东西,它可以作为投掷的工具,玻璃杯可以用来压纸,可以用来装捉到的蝴蝶。
Experimental results demonstrate the proposed algorithm can effectively detect cast shadow and moving object, and has higher practicability.
实验结果表明,该算法能有效地检测出投射阴影和运动目标,具有较高的实际应用价值。
应用推荐