Discussion:
[Xdoclet-devel] [XDoclet-JIRA] Created: (XDT-1705) Ability to get Class Tag value from a field that is another class (and has tag)
Glauber Magalhães Pires (JIRA)
2011-07-13 14:18:27 UTC
Permalink
Ability to get Class Tag value from a field that is another class (and has tag)
-------------------------------------------------------------------------------

Key: XDT-1705
URL: http://xdoclet.onjira.com/browse/XDT-1705
Project: XDoclet
Issue Type: Improvement
Components: XDoclet Module
Affects Versions: 1.2.3
Environment: All
Reporter: Glauber Magalhães Pires
Assignee: xdoclet-devel (Use for new issues)


Hi,

I need some way to get a tag value from a class when it is a field of another class.

Let me explain better, suppose you have two classes
--------------File = Class1 ----------
\**
* tag1 "value1"
*/
public class Class1
{
}
--------------File = Class2 ----------
public class Class2
{
Class1 class1;
}
--------------------

How can I access the the class1 Class tags when I'm in the <XDtField:forAllFields> of Class2?

It would be good if there is a function in the Field handler like <XDtField:ifHasClassFieldTag tagName="tag1"> and a <XDtField:getClassFieldTag tagName="tag1">

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Loading...