public class TimestampArgument extends ArgumentContent
Constructor and Description |
---|
TimestampArgument(java.lang.String name)
create a TimestampArgument for the given name
|
TimestampArgument(java.lang.String name,
java.lang.String label,
boolean defaultdisplayusehour) |
Modifier and Type | Method and Description |
---|---|
ArgumentContent |
generateCopy(java.lang.String newname)
generates a deep copy of the argument with a new name
|
java.lang.String |
getGenericDataEltName() |
java.util.ArrayList<java.lang.String> |
getImports() |
DataObjectDefinition |
getMasterObject()
This method is used to assess if a security argument is used in a manner
compatible with security rules
|
java.lang.String |
getPreciseDataEltName() |
java.lang.String |
getPreciseDataEltTypeName() |
java.lang.String |
getType() |
java.lang.String |
initblank() |
boolean |
isDefaultDisplayUseHour() |
boolean |
needDefinitionForInit() |
void |
writeImports(SourceGenerator sg,
Module module)
writes to a java class the imports necessary for automatic generation of
actions using this parameter
|
getDisplaylabel, getPreciseDataEltTypeNameWithArgument, isOptional, isSecurityrelevant, setDisplaylabel, setOptional
changeName, cleanName, equals, getName
public TimestampArgument(java.lang.String name)
name
- name of the argument, should be unique amongst input and output
argument, should be a valid java field namepublic TimestampArgument(java.lang.String name, java.lang.String label, boolean defaultdisplayusehour)
name
- name of the argument, should be unique amongst
input and output argument, should be a valid
java field namelabel
- plain default language description of the
argumentdefaultdisplayusehour
- if true, the hour and minutes are shown on the
GUIpublic boolean isDefaultDisplayUseHour()
public java.lang.String getType()
getType
in class ArgumentContent
public ArgumentContent generateCopy(java.lang.String newname)
ArgumentContent
generateCopy
in class ArgumentContent
newname
- new namepublic java.lang.String getGenericDataEltName()
getGenericDataEltName
in class ArgumentContent
public java.lang.String getPreciseDataEltTypeName()
getPreciseDataEltTypeName
in class ArgumentContent
public boolean needDefinitionForInit()
needDefinitionForInit
in class ArgumentContent
public java.lang.String getPreciseDataEltName()
getPreciseDataEltName
in class ArgumentContent
public void writeImports(SourceGenerator sg, Module module) throws java.io.IOException
ArgumentContent
writeImports
in class ArgumentContent
sg
- source generatormodule
- parent modulejava.io.IOException
- if any error is encountered writing to a filepublic java.util.ArrayList<java.lang.String> getImports()
getImports
in class ArgumentContent
public java.lang.String initblank()
initblank
in class ArgumentContent
public DataObjectDefinition getMasterObject()
ArgumentContent
getMasterObject
in class ArgumentContent