[JIRA] Created: (JAXB-957) Add API support to move model class to another class or package

  • From: "Dmitry Katsubo (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [JIRA] Created: (JAXB-957) Add API support to move model class to another class or package
  • Date: Mon, 6 May 2013 14:31:35 +0000 (UTC)
  • Auto-submitted: auto-generated

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

                 Key: JAXB-957
                 URL: https://java.net/jira/browse/JAXB-957
             Project: jaxb
          Issue Type: Improvement
    Affects Versions: 2.2.6
            Reporter: Dmitry Katsubo
            Assignee: Iaroslav Savytskyi


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)}}.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[JIRA] Created: (JAXB-957) Add API support to move model class to another class or package

Dmitry Katsubo (JIRA) 05/06/2013
Terms of Use; Privacy Policy; Copyright ©2013-2016 (revision 20160708.bf2ac18)
 
 
Close
loading
Please Confirm
Close