Class Code
- java.lang.Object
-
- com.cloudofficeprint.RenderElements.RenderElement
-
- com.cloudofficeprint.RenderElements.Codes.Code
-
public abstract class Code extends RenderElement
Superclass for QR and BarCodes.
-
-
Constructor Summary
Constructors Constructor Description Code(java.lang.String name, java.lang.String type, java.lang.String value)
This class represents codes (barcode or QR codes) (created using the data of the key) for a template.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>
getTemplateTags()
java.lang.String
getType()
void
setType(java.lang.String type)
-
-
-
Constructor Detail
-
Code
public Code(java.lang.String name, java.lang.String type, java.lang.String value)
This class represents codes (barcode or QR codes) (created using the data of the key) for a template.- Parameters:
name
- Name of this code for the tag.type
- Type of code required. The options can be found on: http://www.cloudofficeprint.com/docs/#barcode-qrcode-tagsvalue
- Data to create the code from.
-
-
Method Detail
-
getType
public java.lang.String getType()
- Returns:
- Type of code required. The options can be found on: http://www.cloudofficeprint.com/docs/#barcode-qrcode-tags
-
setType
public void setType(java.lang.String type)
- Parameters:
type
- Type of code required. The options can be found on: http://www.cloudofficeprint.com/docs/#barcode-qrcode-tags
-
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.
-
-