Package org.netxms.client.asset
Class AssetAttribute
java.lang.Object
org.netxms.client.asset.AssetAttribute
Assert attribute (element of asset management schema).
-
Constructor Summary
ConstructorDescriptionCreate new attributeAssetAttribute
(NXCPMessage msg, long baseId) Create attribute from server message. -
Method Summary
Modifier and TypeMethodDescriptionvoid
fillMessage
(NXCPMessage msg) Fill message with attribute dataDisplay name or name if display name is emptygetName()
int
int
boolean
isHidden()
boolean
boolean
isUnique()
void
setAutofillScript
(String autofillScript) void
setDataType
(AMDataType dataType) void
setDisplayName
(String displayName) void
setEnumValues
(Map<String, String> enumMapping) void
setHidden
(boolean hidden) void
setMandatory
(boolean isMandatory) void
void
setRangeMax
(int rangeMax) void
setRangeMin
(int rangeMin) void
setSystemType
(AMSystemType systemType) void
setUnique
(boolean isUnique)
-
Constructor Details
-
AssetAttribute
public AssetAttribute()Create new attribute -
AssetAttribute
Create attribute from server message.- Parameters:
msg
- NXCP messagebaseId
- base field ID
-
-
Method Details
-
fillMessage
Fill message with attribute data- Parameters:
msg
- message to fill
-
getName
- Returns:
- the name
-
setName
- Parameters:
name
- the name to set
-
getDisplayName
- Returns:
- the displayName
-
getEffectiveDisplayName
Display name or name if display name is empty- Returns:
- name that should be used as a display name
-
setDisplayName
- Parameters:
displayName
- the displayName to set
-
getDataType
- Returns:
- the dataType
-
setDataType
- Parameters:
dataType
- the dataType to set
-
isMandatory
public boolean isMandatory()- Returns:
- the isMandatory
-
setMandatory
public void setMandatory(boolean isMandatory) - Parameters:
isMandatory
- the isMandatory to set
-
isUnique
public boolean isUnique()- Returns:
- the isUnique
-
setUnique
public void setUnique(boolean isUnique) - Parameters:
isUnique
- the isUnique to set
-
isHidden
public boolean isHidden()- Returns:
- the hidden
-
setHidden
public void setHidden(boolean hidden) - Parameters:
hidden
- the hidden to set
-
getAutofillScript
- Returns:
- the autofillScript
-
setAutofillScript
- Parameters:
autofillScript
- the autofillScript to set
-
getRangeMin
public int getRangeMin()- Returns:
- the rangeMin
-
setRangeMin
public void setRangeMin(int rangeMin) - Parameters:
rangeMin
- the rangeMin to set
-
getRangeMax
public int getRangeMax()- Returns:
- the rangeMax
-
setRangeMax
public void setRangeMax(int rangeMax) - Parameters:
rangeMax
- the rangeMax to set
-
getSystemType
- Returns:
- the systemType
-
setSystemType
- Parameters:
systemType
- the systemType to set
-
getEnumValues
- Returns:
- the enumMapping
-
setEnumValues
- Parameters:
enumMapping
- the enumMapping to set
-