|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Documented @Target(value={TYPE,FIELD,METHOD}) @Retention(value=RUNTIME) public @interface Document
Provides meta information about the document associated with the annotated element.
Please not that some of the annotation's information found at the type level are inherited to the elements defined in this type. These elements are explicitly documented to reflect this.
Usage Example
@Document(name = "parent", shortDescription = "Parent Short Description.", notes = { "Parent Note 1", "Parent Note 2" }, space = "parent space", title = "Parent Title", sortKey = "Parent Sort Key", summary = "Parent Summary", audience = { "developer", "plugin developer" }) public interface TestProperties { String inheritAll(); @Document(name = "Child Name 1", shortDescription = "Child 1 Short Description.", notes = { "Child 1 Notes" }, space = "Child 1 Space", title = "Child 1 Title", sortKey = "Child 1 Sort Key", summary = "Child 1 Summary", audience = "Child 1 Audience") String oneValue(); @Document(audience = { "Child 2 Audience 1", "Child 2 Audience 2" }) String multipleValues(); }
DocCategory
,
DocParent
,
DocTag
Optional Element Summary | |
---|---|
String[] |
audience Names the intended audience of the document. |
String |
name The name of the element as it is to be used in the documentation. |
String[] |
notes Some notes to be added to the documentation of the element. |
String |
shortDescription A short description to be used in a tabular index. |
String |
sortKey The optional sort key if a natural ordering on the title or name is not sufficient. |
String |
space A document may be associated with a space. |
String |
summary A summary with more details than the short description. |
String |
title The title of the document unique within the given space. |
public abstract String name
At type level the content may be used as a prefix for all elements of the type.
The name is required to be unique and is not necessarily human readable. The name may be a local name that is only unique within a given context, if this context information is be added by the parser/tool.
This is an identification element.
public abstract String space
If this information is given at type level, it is inherited to the elements defined in this type (if a value is not provided explicitly on the element level).
This is an identification element.
public abstract String title
This is an identification element.
public abstract String[] audience
If this information is given at type level, it is inherited to the elements defined in this type. Any information provided at the element level is added to the inherited values.
This is a description element.
public abstract String shortDescription
At type level the content is applied to the set of properties.
This is a description element.
public abstract String summary
At type level the content is applied to the set of properties.
This is a description element.
public abstract String[] notes
At type level the notes are added to the notes of the individual elements.
This is a description element.
public abstract String sortKey
This is a filing element.
DocCategory
,
DocTag
,
DocParent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |