Class AnnotationData

    • Field Detail

      • FILE_TRANSFER_NS

        public static final java.lang.String FILE_TRANSFER_NS
        The name space used to identify the file transfer type.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AnnotationData

        protected AnnotationData​(java.lang.Class<? extends omero.model.Annotation> annotationClass)
        Creates a new instance.
        Parameters:
        annotationClass - The type of annotation to create.
        Throws:
        java.lang.IllegalArgumentException - If the type is not supported or if the passed parameter is null.
      • AnnotationData

        protected AnnotationData​(A annotation)
        Creates a new instance.
        Parameters:
        annotation - The Annotation object corresponding to this DataObject. Mustn't be null.
        Throws:
        java.lang.IllegalArgumentException - If the object is null.
    • Method Detail

      • setNameSpace

        public void setNameSpace​(java.lang.String name)
        Sets the name space of the underlying Annotation instance.
        Parameters:
        name - The value to set.
      • getNameSpace

        public java.lang.String getNameSpace()
        Retrieves the nameSpace of the underlying Annotation instance.
        Returns:
        See above.
      • getLastModified

        public java.sql.Timestamp getLastModified()
        Returns the time when the annotation was last modified.
        Returns:
        See above.
      • getDescription

        public java.lang.String getDescription()
        Retrieves the description of the underlying Annotation instance.
        Returns:
        See above
      • setDescription

        public void setDescription​(java.lang.String description)
        Sets the description of the underlying Annotation instance.
        Parameters:
        description - The description
      • setContent

        public abstract void setContent​(java.lang.Object content)
        Sets the annotation value. If the improper content is given for the current Annotation, then an IllegalArgumentException will be thrown.
        Parameters:
        content - The value to set.
      • getContent

        public abstract java.lang.Object getContent()
        Returns the content of the annotation.
        Returns:
        See above.
      • getContentAsString

        public abstract java.lang.String getContentAsString()
        Returns the content of the annotation as a String, which is parsed on a Class-by-Class basis.
        Returns:
        See above