picture attribute with string data [计] 串式数据的图像属性
attribute string 要验证的属性
attribute string match 属性串匹配
Each stored attribute is a simple array of bytes, but it's possible to interpret the attribute as a Boolean, integer, or string attribute.
每个已保存的属性是一个简单的字节数组,但是可以将该属性转换为Boolean、整数或字符串属性。
Enumerations and numeric ranges: For example, the value of a particular string attribute must be a, c, or D. Another example: the value of a particular numeric must be between 1 and 500.
枚举与数字范围:例如,某个特定字符串属性必须为A、c或者d。再比如,某个特定的数字必须在1至500之间。
If you find this really annoying or want to do some quick prototyping, you could consider Guice's built-in @Named annotation, which accepts a string attribute. Listing 14 illustrates that alternative
如果您觉得这很繁琐,或者需要执行快速的原型设计,可以考虑 Guice 的内置 @Named 注释,它接受一个字符串属性。
应用推荐