Class LinqContext


  • public class LinqContext
    extends Object
    • Method Detail

      • valueOrDefault

        public Object valueOrDefault​(String expressionText,
                                     Object defaultValue)
      • booleanValue

        public boolean booleanValue​(String expressionText)
      • hasValue

        public boolean hasValue​(Object obj,
                                String key)
      • image

        public byte[] image​(String expressionText)
      • asHtml

        public String asHtml​(String expressionText)
        The 'rich text' component stores its value either as markdown or html. When stored as markdown, it's possible to transform this to html using the 'markdownToHtml function'. When stored as html, the html won't be 100% perfect for using in Aspose with a Word template. Calling this method will change the html that is incompatible with using it in such a template. Note that it's always possible to get the 'raw html' by simply calling the value(String) method like any other component.
      • markdownAsHtml

        public String markdownAsHtml​(String expressionText)
      • cleanHtmlForAspose

        protected String cleanHtmlForAspose​(String html)
      • convertContentItemToBytes

        protected byte[] convertContentItemToBytes​(ContentItem contentItem)
      • convertContentItemToBytes

        protected byte[] convertContentItemToBytes​(String contentItemId)
      • resolveExpressionOrReturnDefault

        protected Object resolveExpressionOrReturnDefault​(String expressionText,
                                                          Object defaultValue)