程序包 org.xmeta.util

类 ThingUtil


  • public class ThingUtil
    extends Object
    • 构造器详细资料

      • ThingUtil

        public ThingUtil()
    • 方法详细资料

      • pasteAsChild

        public static void pasteAsChild​(Thing thing,
                                        Thing forPasteThing)
        把目标模型粘贴为子模型。
        参数:
        thing - 模型
        forPasteThing - 要粘贴的模型
      • paste

        public static void paste​(Thing thing,
                                 Thing forPasteThing)
        把目标模型粘贴到指定模型上。
        参数:
        thing -
        forPasteThing -
      • replaceCategory

        public static void replaceCategory​(Category category,
                                           String replaceFor,
                                           String replaceWidth)
      • replaceThingManager

        public static void replaceThingManager​(ThingManager tm,
                                               String replaceFor,
                                               String replaceWidth)
      • replaceThing

        public static void replaceThing​(Thing thing,
                                        String replaceFor,
                                        String replaceWith)
      • getThing

        public static Thing getThing​(File file)
        如果文件是模型,那么返回模型。
        参数:
        file - 文件
        返回:
        模型
      • getAllDescriptorsAndExtends

        public static List<Thing> getAllDescriptorsAndExtends​(Thing thing)