Interface AnnotationBean

    • Field Detail

      • ANNOTATION_BEAN_MODE_EDIT

        static final int ANNOTATION_BEAN_MODE_EDIT
        Mode where the user is editing existing annotations/information
        See Also:
        Constant Field Values
      • ANNOTATION_BEAN_MODE_ADD

        static final int ANNOTATION_BEAN_MODE_ADD
        Mode where the user is adding to existing annotations/information. This is the default mode
        See Also:
        Constant Field Values
    • Method Detail

      • updateAnnotation

        void updateAnnotation​(java.lang.String annotation)
                       throws WebBeanException
        Updates the annotations of the target object. This method will replaced the entire information of the object with the passed in annotation.
        Parameters:
        annotation -
        Throws:
        WebBeanException
      • appendAnnotation

        void appendAnnotation​(java.lang.String annotation)
                       throws WebBeanException
        Adds an annotation to the already existing information of the target object. This method will append the passed in annotation to the end of the existing information of the object along with a carriage return.
        Parameters:
        annotation -
        Throws:
        WebBeanException
      • setTarget

        void setTarget​(WebObjectInfo target)
        Sets the target object
        Parameters:
        target -
      • getPrefix

        java.lang.String getPrefix​(java.lang.String locale)
        Retrieves the prefix used when appending annotation. It's a combination of user name followed by time stamp.
        Parameters:
        locale - the locale used to display the time stamp.
        Returns:
        the prefix string
      • getPostfix

        java.lang.String getPostfix​(boolean isAppend)
        Retrieves the postfix used when appending or editing annotation. It's "\r\n---\r\n" for append and "\r\n" for editing
        Parameters:
        isAppend - true if doing append false for editing case
        Returns:
        the postfix string