它用于诸如字符串常量和类之类的对象。
在生成的XML中对象名变成了元素名,类中的字符串组成了XML中的元素内容。
Object names become element names in the XML produced, and the strings within classes form the element content of the XML.
假设python中的每个事物都是一个对象,您可以使用底层的str类方法来获得附加功能或直接使用字符串的序列功能。
Given that everything in Python is an object, you can use the underlying STR class methods to gain additional power or use the string's sequence functionality directly.
该脚本的第一行代码实例化了一个新的Sql对象:设置JDBC连接字符串、用户名、密码和 JDBC驱动器类。
The first line of this script instantiates a new Sql object by setting the JDBC connection string, username, password, and JDBC driver class.
要实现业务对象与xml字符串之间传输的逻辑,将清单4中的代码复制到类ContactComponentImpl。
To implement the logic to do the transformation between the business object and the XML string, copy the code in Listing 4 to the class ContactComponentImpl.
但是您也可以使用str类构造函数显式地创建字符串对象,如清单6所示。
But you can also explicitly create a string object by using the STR class constructor, as shown in Listing 6.
至于请求,需要使用WebSearchRequest类创建一个request对象并指定搜索项字符串。
For the request, you create a new request object using the WebSearchRequest class, specifying the string to use as the search term or terms.
每个单元测试方法获取一个具体类的对象和一个字符串(字符串应该是您在测试的getter方法的名称)。
Each of these unit test methods takes an object of a specific class and a string (where the string is expected to be the name of the getter method that you are testing).
所有的类都有一个覆盖字符串方法,该方法允许客户机容易地把对象序列化成这些对象所表示的xml格式。
All of the classes have an overridden string method that allows the client to easily serialize the objects to their represented XML format.
虽然此视图将代替管理数据(不知道数据会到哪里),但是它必须将文本字符串(类json格式)转换为Objective - c数据对象。
This view, will manage the data instead (it does not know where the data arrived), but it must convert the text string (JSON-like formatted) into an Objective-C data object.
强类型资源类还将嵌入的XML文件转换为能够轻松加载到 XmlDocument对象中的字符串。
The strongly typed resource class also converts the embedded XML file into a string that can be easily loaded into an XmlDocument object.
当在派生类中重写时,指示两个对象或字符串是否相等。
When overridden in a derived class, indicates whether two objects or strings are equal.
是对象的意思,这里指的是字符串类string,然后“item”是指你试图赋值的字符串中的字符。
The "object" in this case is the string and the "item" is the character you tried to assign.
表示一个类,该类负责创建查询字符串值提供程序对象的新实例。
Represents a class that is responsible for creating a new instance of a query-string value-provider object.
使用指定的类加载器返回指定字符串名称的类或接口的Class对象。
Returns the class object associated with the class or interface with the given string name, using the given class loader.
使用指定的类加载器返回指定字符串名称的类或接口的Class对象。
Returns the class object associated with the class or interface with the given string name, using the given class loader.
应用推荐