Skip to content

Commit

Permalink
Extract toTagSet interface
Browse files Browse the repository at this point in the history
  • Loading branch information
ppouchin committed Dec 1, 2024
1 parent d6c971c commit 0aeb56d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
14 changes: 14 additions & 0 deletions src/main/java/fr/igred/omero/annotations/Tag.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package fr.igred.omero.annotations;


@FunctionalInterface
public interface Tag {

/**
* Converts this tag annotation to a tag set.
*
* @return See above.
*/
TagSet toTagSet();

}
10 changes: 1 addition & 9 deletions src/main/java/fr/igred/omero/annotations/TagAnnotation.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/**
* Interface to handle Tag Annotations on OMERO.
*/
public interface TagAnnotation extends Annotation {
public interface TagAnnotation extends Tag, Annotation {

/**
* The name space used to indicate that the tag is used a tag set.
Expand Down Expand Up @@ -68,12 +68,4 @@ default boolean isTagSet() {
return NS_TAGSET.equals(getNameSpace());
}


/**
* Converts this tag annotation to a tag set.
*
* @return See above.
*/
TagSet toTagSet();

}

0 comments on commit 0aeb56d

Please sign in to comment.