This repository has been archived by the owner on Mar 27, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ContextProperty -> DataElementTemplateProperty
And add preliminary PersistenceHandlerTemplateProperty Signed-off-by: Daniel Bluhm <bluhmdj@ornl.gov>
- Loading branch information
Showing
3 changed files
with
29 additions
and
14 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
16 changes: 6 additions & 10 deletions
16
...notations/processors/ContextProperty.java → ...ocessors/DataElementTemplateProperty.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,21 +1,17 @@ | ||
package org.eclipse.ice.dev.annotations.processors; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
/** | ||
* Enumeration for Keys used in DataElement Velocity Template. | ||
*/ | ||
enum ContextProperty { | ||
@AllArgsConstructor | ||
enum DataElementTemplateProperty { | ||
PACKAGE("package"), | ||
FIELDS("fields"), | ||
INTERFACE("interface"), | ||
CLASS("class"); | ||
|
||
private String key; | ||
|
||
ContextProperty(String key) { | ||
this.key = key; | ||
} | ||
|
||
String key() { | ||
return this.key; | ||
} | ||
@Getter private String key; | ||
} |
19 changes: 19 additions & 0 deletions
19
...n/java/org/eclipse/ice/dev/annotations/processors/PersistenceHandlerTemplateProperty.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,19 @@ | ||
package org.eclipse.ice.dev.annotations.processors; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
/** | ||
* Enumeration of keys of Persistence Handler Template. | ||
* @author Daniel Bluhm | ||
*/ | ||
@AllArgsConstructor | ||
enum PersistenceHandlerTemplateProperty { | ||
PACKAGE("package"), | ||
ELEMENT_INTERFACE("elementInterface"), | ||
CLASS("class"), | ||
COLLECTION("collection"), | ||
IMPLEMENTATION("implementation"); | ||
|
||
@Getter private String key; | ||
} |