You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2003/02/14 14:40:19 UTC

DO NOT REPLY [Bug 17079] New: - DTDGrammar should have a public getContentSpecIndex(int) method

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=17079>.
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=17079

DTDGrammar should have a public getContentSpecIndex(int) method

           Summary: DTDGrammar should have a public getContentSpecIndex(int)
                    method
           Product: Xerces2-J
           Version: 2.3.0
          Platform: All
               URL: http://xml.apache.org/xerces2-
                    j/javadocs/xerces2/org/apache/xerces/impl/dtd/DTDGrammar
                    .html
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: DOM
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: dpoon@interwoven.com


DTDGrammar already has public methods
    .getFirstElementDeclIndex()
    .getNextElementDeclIndex()
    .getElementDecl(int, XMLElementDecl)
    .getContentSpec(int, XMLContentSpec)
that expose the elements and content specs of the DTD.

It would be very useful to add a public .getContentSpecIndex(int) method
analogous to the existing protected .setContentSpecIndex(int, int) so that one
ask which content spec goes with each element.

A clumsy workaround for the lack of .getContentSpecIndex(int) would be to break
privacy by using reflection.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org