Class ADAnnotationHelper
- java.lang.Object
-
- de.mid.innovator.srv2api.icw2meta.ADAnnotationHelper
-
public abstract class ADAnnotationHelper extends java.lang.Object
This is a utility class for ADAnnotation that provides static methods for creation or other purposes.- See Also:
ADAnnotation
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ADAnnotation
createAnnotation(SrvContext srvCtx, ADClientAble ohContext, java.lang.String strText, java.util.List<? extends ADClientAble> seqElem)
Creates a new annotation.static java.util.List<java.lang.String>
getAllUserNames(SrvContext srvCtx)
All names of users who created at least one annotation.
-
-
-
Method Detail
-
getAllUserNames
public static java.util.List<java.lang.String> getAllUserNames(SrvContext srvCtx) throws InoNetException, SrvErrorException
All names of users who created at least one annotation.- Parameters:
srvCtx
- The context of the related innovator server.- Throws:
InoNetException
SrvErrorException
-
createAnnotation
public static ADAnnotation createAnnotation(SrvContext srvCtx, ADClientAble ohContext, java.lang.String strText, java.util.List<? extends ADClientAble> seqElem) throws InoNetException, SrvErrorException
Creates a new annotation. A referenced parent annotation and a text may be specified. At least one element should be connected to the new annotation.- Parameters:
srvCtx
- The context of the related innovator server.ohContext
- the diagram of the selected elements or a parent annotationstrText
- text of this annotationseqElem
- list of elements connected to this annotation- Throws:
InoNetException
SrvErrorException
-
-