Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-238

YANG gen. binding classes should offer a matches(CharSequence input) [or expose Pattern[] patterns public instead private]

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    Description

      In https://git.opendaylight.org/gerrit/#/c/53118/ for NETVIRT-514 I found myself wanting to access the java.util.regex.Pattern in a YANG gen. binding class, but could not because it is private.

      It's easy enough to recreate it from the public List<String> PATTERN_CONSTANTS, but perhaps you would consider exposing it as a public static final Pattern[] PATTERNS; as well?

      Not sure if this has to be depending on MDSAL-237 Binding Specification Java v2, or could already be done in v1 - what's the risk, after all?

      I'll also file a separate bug proposing to offer an additional utility method, this issue is to focus particularly just on exposing the Pattern publicly.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            vorburger Michael Vorburger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: