Class BaseContentNode.TemplateContentData

    • Constructor Detail

      • TemplateContentData

        public TemplateContentData​(ContentData contentData,
                                   QName property)
        Constructor
        Parameters:
        contentData - The ContentData object this object wraps
        property - The property the ContentData is attached too
    • Method Detail

      • getContent

        public String getContent()
        Returns:
        the content stream
      • getContentMaxLength

        public String getContentMaxLength​(int length)
        Returns:
        the content stream to the specified maximum length in characters
      • getContentAsText

        public String getContentAsText​(int length)
        Parameters:
        length - Length of the character stream to return, or -1 for all
        Returns:
        the binary content stream converted to text using any available transformer if fails to convert then null will be returned
      • getUrl

        public String getUrl()
      • getDownloadUrl

        public String getDownloadUrl()
      • getServiceUrl

        public String getServiceUrl()
      • getSize

        public long getSize()
      • getMimetype

        public String getMimetype()
      • getDisplayMimetype

        public String getDisplayMimetype()
      • getEncoding

        public String getEncoding()