[ http://issues.apache.org/jira/browse/XERCESJ-618?page=all ]
Michael Glavassevich updated XERCESJ-618:
-----------------------------------------
Bugzilla Id: (was: 17079)
Fix Version: 2.8.0
Description:
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.
was:
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.
Environment:
Operating System: All
Platform: All
was:
Operating System: All
Platform: All
> DTDGrammar should have a public getContentSpecIndex(int) method
> ---------------------------------------------------------------
>
> Key: XERCESJ-618
> URL: http://issues.apache.org/jira/browse/XERCESJ-618
> Project: Xerces2-J
> Type: Improvement
> Components: DTD
> Versions: 2.3.0
> Environment: Operating System: All
> Platform: All
> Reporter: dpoon
> Assignee: Michael Glavassevich
> Priority: Minor
> Fix For: 2.8.0
>
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]