forked from eclipse-vorto/vorto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: shiv12095 <[email protected]>
- Loading branch information
Showing
24 changed files
with
268 additions
and
100 deletions.
There are no files selected for viewing
This file contains 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 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
31 changes: 24 additions & 7 deletions
31
...java/org/eclipse/vorto/devtool/projectrepository/file/ProjectRepositoryFileConstants.java
This file contains 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 |
---|---|---|
@@ -1,23 +1,40 @@ | ||
package org.eclipse.vorto.devtool.projectrepository.file; | ||
|
||
import java.util.Arrays; | ||
import java.util.HashSet; | ||
import java.util.Set; | ||
|
||
import org.eclipse.vorto.devtool.projectrepository.model.Resource; | ||
|
||
public class ProjectRepositoryFileConstants { | ||
|
||
public static final String META_PROPERTY_AUTHOR = Resource.META_PROPERTY_AUTHOR; | ||
|
||
public static final String META_PROPERTY_RESOURCE_ID = "resourceId"; | ||
|
||
public static final String META_PROPERTY_NAME = "name"; | ||
|
||
public static final String META_PROPERTY_NAMESPACE = "namespace"; | ||
|
||
public static final String META_PROPERTY_VERSION = "version"; | ||
|
||
public static final String META_PROPERTY_MODEL_TYPE = "modelType"; | ||
|
||
public static final String META_PROPERTY_MODEL_SUB_TYPE = "modelSubType"; | ||
|
||
public static final String META_PROPERTY_IS_PROJECT = "isProject"; | ||
|
||
|
||
public static final String META_PROPERTY_REFERENCES = "references"; | ||
|
||
public static Set<String> IMMUTABLE_META_PROPERTY_SET = new HashSet<String>(Arrays.asList( | ||
META_PROPERTY_AUTHOR, | ||
META_PROPERTY_IS_PROJECT, | ||
META_PROPERTY_RESOURCE_ID, | ||
META_PROPERTY_NAME, | ||
META_PROPERTY_NAMESPACE, | ||
META_PROPERTY_VERSION, | ||
META_PROPERTY_MODEL_SUB_TYPE, | ||
META_PROPERTY_MODEL_TYPE | ||
)); | ||
|
||
} |
This file contains 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 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 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 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 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 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 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 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
39 changes: 39 additions & 0 deletions
39
...ebeditor/src/main/java/org/eclipse/vorto/server/devtool/models/LinkReferenceResponse.java
This file contains 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,39 @@ | ||
package org.eclipse.vorto.server.devtool.models; | ||
|
||
public class LinkReferenceResponse { | ||
|
||
private String content; | ||
private String targetResourceId; | ||
private String referenceResourceId; | ||
|
||
public LinkReferenceResponse(String content, String targetResourceId, String referenceResourceId) { | ||
this.content = content; | ||
this.targetResourceId = targetResourceId; | ||
this.referenceResourceId = referenceResourceId; | ||
} | ||
|
||
public String getContent() { | ||
return content; | ||
} | ||
|
||
public void setContent(String content) { | ||
this.content = content; | ||
} | ||
|
||
public String getTargetResourceId() { | ||
return targetResourceId; | ||
} | ||
|
||
public void setTargetResourceId(String targetResourceId) { | ||
this.targetResourceId = targetResourceId; | ||
} | ||
|
||
public String getReferenceResourceId() { | ||
return referenceResourceId; | ||
} | ||
|
||
public void setReferenceResourceId(String referenceResourceId) { | ||
this.referenceResourceId = referenceResourceId; | ||
} | ||
|
||
} |
This file contains 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 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
Oops, something went wrong.