-
Notifications
You must be signed in to change notification settings - Fork 329
升级插件结构,提供插件组定义逻辑 #87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
CodeCasterX
merged 3 commits into
ModelEngine-Group:3.5.x
from
surpercodehang:fit-plugin-update
Apr 25, 2025
Merged
升级插件结构,提供插件组定义逻辑 #87
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
| <modelVersion>4.0.0</modelVersion> | ||
|
|
||
| <parent> | ||
| <groupId>org.fitframework.fel</groupId> | ||
| <artifactId>fel-parent</artifactId> | ||
| <version>1.0.0-SNAPSHOT</version> | ||
| </parent> | ||
|
|
||
| <artifactId>fel-component-parent</artifactId> | ||
| <packaging>pom</packaging> | ||
|
|
||
| <modules> | ||
| <module>tool-info</module> | ||
| </modules> | ||
| </project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
| <modelVersion>4.0.0</modelVersion> | ||
|
|
||
| <parent> | ||
| <groupId>org.fitframework.fel</groupId> | ||
| <artifactId>fel-component-parent</artifactId> | ||
| <version>1.0.0-SNAPSHOT</version> | ||
| </parent> | ||
|
|
||
| <artifactId>tool-info</artifactId> | ||
|
|
||
| <dependencies> | ||
| <dependency> | ||
| <groupId>org.fitframework</groupId> | ||
| <artifactId>fit-util</artifactId> | ||
| </dependency> | ||
| </dependencies> | ||
|
|
||
| <build> | ||
| <plugins> | ||
| <plugin> | ||
| <groupId>org.fitframework</groupId> | ||
| <artifactId>fit-dependency-maven-plugin</artifactId> | ||
| <version>${fit.version}</version> | ||
| <executions> | ||
| <execution> | ||
| <id>dependency</id> | ||
| <phase>compile</phase> | ||
| <goals> | ||
| <goal>dependency</goal> | ||
| </goals> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-jar-plugin</artifactId> | ||
| <version>${maven.jar.version}</version> | ||
| <configuration> | ||
| <archive> | ||
| <manifestEntries> | ||
| <Created-By>FIT Lab</Created-By> | ||
| </manifestEntries> | ||
| </archive> | ||
| </configuration> | ||
| </plugin> | ||
| </plugins> | ||
| </build> | ||
| </project> |
36 changes: 36 additions & 0 deletions
36
...components/tool-info/src/main/java/modelengine/fel/tool/info/entity/DefinitionEntity.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| /*--------------------------------------------------------------------------------------------- | ||
| * Copyright (c) 2025 Huawei Technologies Co., Ltd. All rights reserved. | ||
| * This file is a part of the ModelEngine Project. | ||
| * Licensed under the MIT License. See License.txt in the project root for license information. | ||
| *--------------------------------------------------------------------------------------------*/ | ||
|
|
||
| package modelengine.fel.tool.info.entity; | ||
|
|
||
| /** | ||
| * 表示定义的实体类,用于存储定义信息。 | ||
| * | ||
| * @author 曹嘉美 | ||
| * @author 李金绪 | ||
| * @since 2024-10-26 | ||
| */ | ||
| public class DefinitionEntity { | ||
| private SchemaEntity schema; | ||
|
|
||
| /** | ||
| * 获取 schema 对象。 | ||
| * | ||
| * @return 表示 schema 对象的 {@link SchemaEntity}。 | ||
| */ | ||
| public SchemaEntity getSchema() { | ||
| return this.schema; | ||
| } | ||
|
|
||
| /** | ||
| * 设置 schema 对象。 | ||
| * | ||
| * @param schema 表示 schema 对象的 {@link SchemaEntity}。 | ||
| */ | ||
| public void setSchema(SchemaEntity schema) { | ||
| this.schema = schema; | ||
| } | ||
| } |
38 changes: 38 additions & 0 deletions
38
...nents/tool-info/src/main/java/modelengine/fel/tool/info/entity/DefinitionGroupEntity.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| /*--------------------------------------------------------------------------------------------- | ||
| * Copyright (c) 2025 Huawei Technologies Co., Ltd. All rights reserved. | ||
| * This file is a part of the ModelEngine Project. | ||
| * Licensed under the MIT License. See License.txt in the project root for license information. | ||
| *--------------------------------------------------------------------------------------------*/ | ||
|
|
||
| package modelengine.fel.tool.info.entity; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| /** | ||
| * 表示定义组的实体类。 | ||
| * | ||
| * @author 曹嘉美 | ||
| * @author 李金绪 | ||
| * @since 2024-10-26 | ||
| */ | ||
| public class DefinitionGroupEntity extends GroupEntity { | ||
| private List<DefinitionEntity> definitions; | ||
|
|
||
| /** | ||
| * 获取定义组中的所有定义。 | ||
| * | ||
| * @return 表示定义组的 {@link List}{@code <}{@link DefinitionEntity}{@code >}。 | ||
| */ | ||
| public List<DefinitionEntity> getDefinitions() { | ||
| return this.definitions; | ||
| } | ||
|
|
||
| /** | ||
| * 设置定义组中的所有定义。 | ||
| * | ||
| * @param definitions 表示定义组的 {@link List}{@code <}{@link DefinitionEntity}{@code >}。 | ||
| */ | ||
| public void setDefinitions(List<DefinitionEntity> definitions) { | ||
| this.definitions = definitions; | ||
| } | ||
| } |
94 changes: 94 additions & 0 deletions
94
...java/components/tool-info/src/main/java/modelengine/fel/tool/info/entity/GroupEntity.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,94 @@ | ||
| /*--------------------------------------------------------------------------------------------- | ||
| * Copyright (c) 2025 Huawei Technologies Co., Ltd. All rights reserved. | ||
| * This file is a part of the ModelEngine Project. | ||
| * Licensed under the MIT License. See License.txt in the project root for license information. | ||
| *--------------------------------------------------------------------------------------------*/ | ||
|
|
||
| package modelengine.fel.tool.info.entity; | ||
|
|
||
| import java.util.Map; | ||
|
|
||
| /** | ||
| * 表示组的基本实体类。 | ||
| * | ||
| * @author 李金绪 | ||
| * @since 2024-12-12 | ||
| */ | ||
| public class GroupEntity { | ||
| private String name; | ||
| private String summary; | ||
| private String description; | ||
| private Map<String, Object> extensions; | ||
|
|
||
| /** | ||
| * 获取组名。 | ||
| * | ||
| * @return 表示组名的 {@link String}。 | ||
| */ | ||
| public String getName() { | ||
| return this.name; | ||
| } | ||
|
|
||
| /** | ||
| * 设置组名。 | ||
| * | ||
| * @param name 表示组名的 {@link String}。 | ||
| */ | ||
| public void setName(String name) { | ||
| this.name = name; | ||
| } | ||
|
|
||
| /** | ||
| * 获取摘要。 | ||
| * | ||
| * @return 表示摘要的 {@link String}。 | ||
| */ | ||
| public String getSummary() { | ||
| return this.summary; | ||
| } | ||
|
|
||
| /** | ||
| * 设置摘要 | ||
| * | ||
| * @param summary 表示要设置的摘要的 {@link String}。 | ||
| */ | ||
| public void setSummary(String summary) { | ||
| this.summary = summary; | ||
| } | ||
|
|
||
| /** | ||
| * 获取描述。 | ||
| * | ||
| * @return 表示描述的 {@link String}。 | ||
| */ | ||
| public String getDescription() { | ||
| return this.description; | ||
| } | ||
|
|
||
| /** | ||
| * 设置描述。 | ||
| * | ||
| * @param description 表示要设置的描述的 {@link String}。 | ||
| */ | ||
| public void setDescription(String description) { | ||
| this.description = description; | ||
| } | ||
|
|
||
| /** | ||
| * 获取扩展属性。 | ||
| * | ||
| * @return 表示扩展属性的 {@link Map}{@code <}{@link String}{@code , }{@link Object}{@code >}。 | ||
| */ | ||
| public Map<String, Object> getExtensions() { | ||
| return this.extensions; | ||
| } | ||
|
|
||
| /** | ||
| * 设置扩展属性。 | ||
| * | ||
| * @param extensions 扩展属性的 {@link Map}{@code <}{@link String}{@code , }{@link Object}{@code >}。 | ||
| */ | ||
| public void setExtensions(Map<String, Object> extensions) { | ||
| this.extensions = extensions; | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.