Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-545

RFE: getLength on StyleMap

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Operating System: other
      Platform: Other

      Description

      It seems the only way to iterate over a StyleMap is to try

      { getValue(i) }

      until it throws an array index out of bounds exception. It would be better
      if the class exposes a public getLength() method

      /**

      • ...
        */
        public int getLength() { return values.length; }

        Attachments

          Activity

            People

            • Assignee:
              batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
              Reporter:
              bjoern@hoehrmann.de Bj
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: