-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add @HideValue to hide a type’s and its instances’ values in the reactor
- Loading branch information
1 parent
35f2f4a
commit 57660fd
Showing
18 changed files
with
138 additions
and
77 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
18 changes: 18 additions & 0 deletions
18
gs-api/src/main/java/org/genericsystem/api/core/annotations/HideValue.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,18 @@ | ||
package org.genericsystem.api.core.annotations; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
/** | ||
* Indicates that the value of this generic should not be displayed by the reactor. | ||
* | ||
* @author Fabienne Ducroquet | ||
* | ||
*/ | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target({ ElementType.TYPE }) | ||
public @interface HideValue { | ||
|
||
} |
2 changes: 2 additions & 0 deletions
2
gs-carcolor/src/main/java/org/genericsystem/carcolor/model/CarColor.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,12 +1,14 @@ | ||
package org.genericsystem.carcolor.model; | ||
|
||
import org.genericsystem.api.core.annotations.Components; | ||
import org.genericsystem.api.core.annotations.HideValue; | ||
import org.genericsystem.api.core.annotations.SystemGeneric; | ||
import org.genericsystem.api.core.annotations.constraints.SingularConstraint; | ||
|
||
@SystemGeneric | ||
@Components({ Car.class, Color.class }) | ||
@SingularConstraint | ||
@HideValue | ||
public class CarColor { | ||
|
||
} |
2 changes: 2 additions & 0 deletions
2
gs-carcolor/src/main/java/org/genericsystem/carcolor/model/CarColor2.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,10 +1,12 @@ | ||
package org.genericsystem.carcolor.model; | ||
|
||
import org.genericsystem.api.core.annotations.Components; | ||
import org.genericsystem.api.core.annotations.HideValue; | ||
import org.genericsystem.api.core.annotations.SystemGeneric; | ||
|
||
@SystemGeneric | ||
@Components({ Car.class, Color.class }) | ||
@HideValue | ||
public class CarColor2 { | ||
|
||
} |
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
2 changes: 2 additions & 0 deletions
2
gs-extendedcarcolor/src/main/java/org/genericsystem/extendedcarcolor/model/CarColor.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,12 +1,14 @@ | ||
package org.genericsystem.extendedcarcolor.model; | ||
|
||
import org.genericsystem.api.core.annotations.Components; | ||
import org.genericsystem.api.core.annotations.HideValue; | ||
import org.genericsystem.api.core.annotations.SystemGeneric; | ||
import org.genericsystem.api.core.annotations.constraints.SingularConstraint; | ||
|
||
@SystemGeneric | ||
@Components({ Car.class, Color.class }) | ||
@SingularConstraint | ||
@HideValue | ||
public class CarColor { | ||
|
||
} |
2 changes: 2 additions & 0 deletions
2
gs-extendedcarcolor/src/main/java/org/genericsystem/extendedcarcolor/model/CarColor2.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,10 +1,12 @@ | ||
package org.genericsystem.extendedcarcolor.model; | ||
|
||
import org.genericsystem.api.core.annotations.Components; | ||
import org.genericsystem.api.core.annotations.HideValue; | ||
import org.genericsystem.api.core.annotations.SystemGeneric; | ||
|
||
@SystemGeneric | ||
@Components({ Car.class, Color.class }) | ||
@HideValue | ||
public class CarColor2 { | ||
|
||
} |
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
Oops, something went wrong.