The GroupTODO annotation type in Listing 6 adds several new variables.
清单6中的GroupTODO注释类型中添加了几个新的变量。
The TODOItems annotation type has a single variable that takes a value.
TODOItems注释类型有一个具有值的变量。
The type system contains information about annotation types and their features.
类型系统包含注释类型及其特征。
Each annotation type defines a fixed set of names associated with that annotation.
每个注释类型定义了一组与之关联的固定名称。
The annotation types used in the new rules must exist as part of the UIMA type system.
新规则中使用的注释类型必须成为uima类型系统的一部分。
An annotation type looks a lot like an ordinary class, but it has some unique properties.
注释类型看起来很像普通的类,但是有一些特有的性质。
The produced analysis results, each derived from the Annotation type, are stored in the CAS.
生成的分析结果(都来自annotation类型)存储在CAS中。
However, you'll find that several of your annotations might all use the same annotation type.
不过,您将发现多个注释都可能使用相同的注释类型。
This annotation type really shines when you're up too late coding and mistype something, as in Listing 3.
当编码到很晚且输错了某些东西时,此注释类型真的可以发挥很大的作用,如清单 3中所示。
For example, this meta-annotation indicates that the declared type is itself a meta-annotation type.
例如,这个元注释表明被定义的类型是本身的元注释类型。只能被用在定义的注释类型上。
Use this TAB to specify which annotation type contains the analysis result, (for example, the type Company).
使用这个选项卡指定哪个注释类型包含分析结果(例如,类型Company)。
You can use the Annotation type to label regions in documents. The Annotation type includes the features Begin and End.
您可以使用Annotation类型在文档中标记区域。
With the annotator aspect approach, the participation occurs only at the level of a Shared understanding of annotation type.
请使用注释者方面方法,参与只发生在对注释类型的共同理解这一级别。
Take note, though — the shorthand version is available only if the annotation type has a single-member variable named value.
不过要注意,只有当注释类型只有一个成员变量,而且变量名为value时,才能使用简写形式。
Listing 3 defines a string named value that the annotation type can accept. You then use the annotation type as in Listing 4.
清单3定义了一个名为value的字符串,该注释类型能够接受它。
Note that this annotation type doesn't have a single-member variable, so you gain nothing by naming one of the variables value.
因为该注释类型的成员变量不是一个,所以将一个变量命名为value没有任何意义。
You shouldn't have any trouble figuring out what this one does, but it's not always obvious why this annotation type is so important.
发现该类型的作用应该不难,但是为什么该注释类型如此重要通常不是很明显。
This enum defines the various program elements that an annotation type can target. Listing 9 show the ElementType enum in its entirety.
这个枚举定义了注释类型可应用的不同程序元素。
Notice that Listing 13 specifies the annotation's retention as RUNTIME. This is a required aspect of using the Documented annotation type.
注意,清单13 中规定注释的保持性(retention)是RUNTIME ,这是使用 Documented 注释类型所必需的。
In one system, it may use Transactional as the annotation type to capture join points, whereas in another system the annotation type might be Tx.
在一个系统中,可以使用Transactional作为注释类型来捕获连接点,而在另外的系统中,注释类型可以是Tx。
The same applies to aspectual interfaces: You wouldn't want an annotation type called ReadLock whose purpose was to describe the use of the type.
对于方面化的接口也是一样:您可能不想使用名为ReadLock的注释类型,这类注释的用途是描述类型的使用。
This requires you to supply some sort of metadata on your annotation type, so that the compiler can enforce the annotation's intended functionality.
这就要求您为注释类型提供某种元数据,以便编译器保证按照预期的目的使用注释。
This helps you ensure that nobody else takes your annotation type and misapplies it (or, better yet, that you don't misapply it in a fit of fatigue).
这样有助于避免他人误用您的注释类型(或者最好的地方是,您自己也不会因为疲惫而误用它)。
If a method is annotated with this annotation type but does not override a superclass method, compilers are required to generate an error message.
如果方法利用此注释类型进行注解但没有重写超类方法,则编译器会生成一条错误消息。
A general and common type that is often used in text analysis to derive additional types is the Annotation type, which is provided by the UIMA framework.
在文本分析中,用于派生其他类型的概括性的通用类型被称为annotation类型,它由UIMA框架提供。
The selected annotation type specifies which result you are interested in, and the selected features of this annotation type specify the detailed part of interest.
选择的注释类型指定您感兴趣的结果,而该注释类型中选择的特征指定感兴趣的细节部分。
In these examples I'll focus on selecting join points by annotation type; further down I'll explain some of the other factors that can weigh in on join point selection.
在这些例子中,我将重点放在通过注释类型选择连接点上,然后我将进一步解释在选择连接点时,其他会起作用的因素。
The type is the actual construct used, and the annotation itself is the specific usage of that type, in a particular context (see the sidebar, Annotation or annotation type?).
类型是实际使用的结构,在特定上下文中,注释本身是该类型的具体使用(请参阅侧栏 注释或注释类型?)
Because only a single bit of data is supplied, you can use a shortcut syntax (assuming the annotation type is defined to accept this syntax): @SingleValueAnnotation("my data").
因为仅提供很少的一点数据,所以可以使用快捷语法(假设注释类型接受此语法): @SingleValueAnnotation("mydata") 。
You use the annotation type in Listing 1 exactly the same way you use the built-in annotation types, except that you indicate the custom annotation by both its name and package.
清单1所示注释类型的使用方法和内置注释类型的使用方法完全相同,只不过要同时使用名称和所在的包来指示定制注释。
应用推荐