Class Property


  • public class Property
    extends RenderElement
    The most basic RenderElement. It simply consists of a name and a value. In a template the tag '{name}' will be replaced by 'value'.
    • Constructor Summary

      Constructors 
      Constructor Description
      Property​(java.lang.String name, int value)
      The most basic RenderElement.
      Property​(java.lang.String name, java.lang.String value)
      The most basic RenderElement.
    • Constructor Detail

      • Property

        public Property​(java.lang.String name,
                        java.lang.String value)
        The most basic RenderElement. It simply consists of a name and a value. In a template the tag '{name}' will be replaced by 'value'.
        Parameters:
        name - Name of this property for the tag.
        value - Value of this element to replace the tag with.
      • Property

        public Property​(java.lang.String name,
                        int value)
        The most basic RenderElement. It simply consists of a name and a value. In a template the tag '{name}' will be replaced by 'value'.
        Parameters:
        name - Name of this property for the tag.
        value - Value of this property to replace the tag with.
    • Method Detail

      • getJSON

        public com.google.gson.JsonObject getJSON()
        Specified by:
        getJSON in class RenderElement
        Returns:
        JSONObject with the tags for this property for the Cloud Office Print server.
      • getTemplateTags

        public java.util.Set<java.lang.String> getTemplateTags()
        Specified by:
        getTemplateTags in class RenderElement
        Returns:
        An immutable set containing all available template tags this element can replace.