jaxb
  1. jaxb
  2. JAXB-957

Add API support to move model class to another class or package

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.2.6
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Currently it is not possible to manipulate with Code Model in a way that JDefinedClass is moved to another class or package. For that:

      • JDefinedClass and JPackage should implement method _class(JClass anotherClass), i.e. opportunity to add existing class.
      • The owner of anotherClass should be set to new container, thus there is a need for JDefinedClass#setOuter(JClassContainer newOuter)
      • If class is moved to package, its static modifier should be reset, thus there is a need for JMod#setStatic(boolean newValue).

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Iaroslav Savytskyi
            Reporter:
            Dmitry Katsubo
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: