Page 2 of 2

Re: How to get the list of all the TagAnnotationI objects?

PostPosted: Tue Jun 12, 2018 9:24 am
by Kouichi_C_Nakamura
Fair enough! Still the same message. MATLAB [] (empty array) should be treated as null in Java, but they are a bit suspicious.

Code: Select all
% in MATLAB language

service = session.getMetadataService

rootType = 'Dataset'
rootIds = javaArray('java.lang.Long',1);
rootIds(1) = java.lang.Long(1157);

annnotationTypes = javaArray('java.lang.String',1);
annnotationTypes(1) = java.lang.String('TagAnnotation');
annotatorIds = []
options = []

service.loadAnnotations(rootType,rootIds,annnotationTypes,annotatorIds,options)