Package org.nuxeo.template.api
Class TemplateInput
- java.lang.Object
-
- org.nuxeo.template.api.TemplateInput
-
- All Implemented Interfaces:
Serializable
public class TemplateInput extends Object implements Serializable
Represents input parameters of a Template. Inputs parameters have anInputType
, a name an a value. Value can be a xpath pointing to aDocumentModel
property.- Author:
- Tiry ([email protected])
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TemplateInput(String name)
TemplateInput(String name, Object value)
-
Method Summary
-
-
-
Field Detail
-
name
protected String name
-
stringValue
protected String stringValue
-
booleanValue
protected Boolean booleanValue
-
dateValue
protected Date dateValue
-
type
protected InputType type
-
source
protected String source
-
desciption
protected String desciption
-
readOnly
protected boolean readOnly
-
autoLoop
protected boolean autoLoop
-
-
Method Detail
-
getCopy
public TemplateInput getCopy(boolean readOnly)
-
update
public TemplateInput update(TemplateInput other)
-
getSource
public String getSource()
-
setSource
public void setSource(String source)
-
getDesciption
public String getDesciption()
-
setDesciption
public void setDesciption(String desciption)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getStringValue
public String getStringValue()
-
setStringValue
public void setStringValue(Object stringValue)
-
getBooleanValue
public Boolean getBooleanValue()
-
setBooleanValue
public void setBooleanValue(Object booleanValue)
-
setBooleanValue
public void setBooleanValue(boolean booleanValue)
-
getDateValue
public Date getDateValue()
-
setDateValue
public void setDateValue(Object dateValue)
-
setMapValue
public void setMapValue(Object value)
-
getMapValue
public Map<String,TemplateInput> getMapValue()
-
getListValue
public List<TemplateInput> getListValue()
-
getType
public InputType getType()
-
getTypeAsString
public String getTypeAsString()
-
setType
public void setType(InputType type)
-
setTypeAsString
public void setTypeAsString(String strType)
-
isSimpleValue
public boolean isSimpleValue()
-
isSourceValue
public boolean isSourceValue()
-
isReadOnly
public boolean isReadOnly()
-
setReadOnly
public void setReadOnly(boolean readOnly)
-
isSet
public boolean isSet()
-
isAutoLoop
public boolean isAutoLoop()
-
setAutoLoop
public void setAutoLoop(boolean autoLoop)
-
factory
public static TemplateInput factory(String name, InputType type, Object value)
-
-