commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 20412] New: - [commons-attributes] support for multiple tags with the same name
Date Mon, 02 Jun 2003 12:09:30 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20412>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20412

[commons-attributes] support for multiple tags with the same name

           Summary: [commons-attributes] support for multiple tags with the
                    same name
           Product: Commons
           Version: Nightly Builds
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Sandbox
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: tma@netspace.net.au


The attached patch for commons-attributes enables 
support for multiple tags with the same name e.g:

class Foo { 

 /**
  * @mytag value1
  * @mytag value2
  */
 public void someMethod() {
 }
}

These can be accessed via the new Attributes.getAttributes() methods
e.g:
  Attribute[] a = Attributes.getAttributes(method, "mytag");

To support the above, I've had to change the serialization 
format. The .attributes file now contains entries of the form
  <prefix>|<tag>|<id>=<value>

e.g:
  class|classDupAttribute|0=classValue1
  class|classDupAttribute|1=classValue2

The SEPARATOR character has been changed from '_' to '|' to avoid
conflicts with member names that contain underscores.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message