Class Property
- java.lang.Object
-
- com.cloudofficeprint.RenderElements.RenderElement
-
- com.cloudofficeprint.RenderElements.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'.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gson.JsonObject
getJSON()
java.util.Set<java.lang.String>
getTemplateTags()
-
Methods inherited from class com.cloudofficeprint.RenderElements.RenderElement
getName, getValue, setName, setValue
-
-
-
-
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 classRenderElement
- 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 classRenderElement
- Returns:
- An immutable set containing all available template tags this element can replace.
-
-