Package com.logicaldoc.webservice.model
Class WSAttribute
java.lang.Object
com.logicaldoc.webservice.model.WSAttribute
- All Implemented Interfaces:
Serializable
Extended attribute of a document
- Since:
- 4.0
- Author:
- Matteo Caruso - LogicalDOC
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
getLabel()
int
int
getName()
int
int
getSetId()
int
getType()
static Object
getValue
(WSAttribute attribute) Gets the attribute value.void
setDateValue
(String dateValue) void
setDependsOn
(String dependsOn) void
setDoubleValue
(Double doubleValue) void
setEditor
(int editor) void
setHidden
(int hidden) void
setInitialization
(String initialization) void
setIntValue
(Long intValue) void
void
setMandatory
(int mandatory) void
setMultiple
(int multiple) void
void
void
setPosition
(int position) void
setReadonly
(int readonly) void
void
setStringValue
(String stringValue) void
setStringValues
(String stringValues) void
setType
(int type) void
setValidation
(String validation) static void
setValue
(WSAttribute attribute, Object value) Sets the attribute value.toString()
-
Field Details
-
TYPE_STRING
public static final int TYPE_STRING- See Also:
-
TYPE_INT
public static final int TYPE_INT- See Also:
-
TYPE_DOUBLE
public static final int TYPE_DOUBLE- See Also:
-
TYPE_DATE
public static final int TYPE_DATE- See Also:
-
TYPE_USER
public static final int TYPE_USER- See Also:
-
TYPE_BOOLEAN
public static final int TYPE_BOOLEAN- See Also:
-
TYPE_FOLDER
public static final int TYPE_FOLDER- See Also:
-
-
Constructor Details
-
WSAttribute
public WSAttribute()
-
-
Method Details
-
getName
-
setName
-
toString
-
getStringValue
-
setStringValue
-
getIntValue
-
setIntValue
-
getDoubleValue
-
setDoubleValue
-
getDateValue
-
setDateValue
-
getType
public int getType() -
setType
public void setType(int type) -
getMandatory
public int getMandatory() -
setMandatory
public void setMandatory(int mandatory) -
getPosition
public int getPosition() -
setPosition
public void setPosition(int position) -
getLabel
-
setLabel
-
getValue
Gets the attribute value. It can be as String, Long, Double or Date. We declare this static because do not want the value field to be serialized in SOAP / REST- Parameters:
attribute
- the attribute instance- Returns:
- The attribute value as Object.
-
setValue
Sets the attribute value. It can be as String, Long, Double or Date.- Parameters:
attribute
- the attribute instancevalue
- The attribute value
-
getEditor
public int getEditor() -
setEditor
public void setEditor(int editor) -
getSetId
-
setSetId
-
getHidden
public int getHidden() -
setHidden
public void setHidden(int hidden) -
getMultiple
public int getMultiple() -
getParent
-
setMultiple
public void setMultiple(int multiple) -
setParent
-
getStringValues
-
setStringValues
-
getDependsOn
-
setDependsOn
-
getValidation
-
setValidation
-
getInitialization
-
setInitialization
-
getReadonly
public int getReadonly() -
setReadonly
public void setReadonly(int readonly)
-