public class AnnotationManager extends Object
Modifier and Type | Field and Description |
---|---|
private List<Annotation> |
allAnnotations |
private Map<String,Annotation> |
annotationIds |
private Map<String,List<Annotation>> |
annotations |
private static AnnotationManager |
instance |
Modifier | Constructor and Description |
---|---|
private |
AnnotationManager() |
Modifier and Type | Method and Description |
---|---|
List<Annotation> |
getAllAnnotations()
Returns list of all annotations.
|
Annotation |
getAnnotationById(String id)
Returns annotation by specified id.
|
List<Annotation> |
getAnnotations(String move)
Returns annotation by specified string.
|
static AnnotationManager |
getInstance()
Returns AnnotationManager instance to work with it.
|
void |
loadAnnotations(String directory)
Loads annotations from specified directory.
|
private Map<String,List<Annotation>> annotations
private Map<String,Annotation> annotationIds
private List<Annotation> allAnnotations
private static AnnotationManager instance
public List<Annotation> getAllAnnotations()
public static AnnotationManager getInstance()
public void loadAnnotations(String directory) throws IOException
directory
- IOException
public List<Annotation> getAnnotations(String move)
move
- public Annotation getAnnotationById(String id)
id
-