程序包 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)