Package org.netxms.client.asset
Class AssetAttribute
java.lang.Object
org.netxms.client.asset.AssetAttribute
Assert attribute (element of asset management schema).
-
Constructor Summary
ConstructorsConstructorDescriptionCreate new attributeAssetAttribute(NXCPMessage msg, long baseId) Create attribute from server message. -
Method Summary
Modifier and TypeMethodDescriptionvoidfillMessage(NXCPMessage msg) Fill message with attribute dataDisplay name or name if display name is emptygetName()intintbooleanisHidden()booleanbooleanisUnique()voidsetAutofillScript(String autofillScript) voidsetDataType(AMDataType dataType) voidsetDisplayName(String displayName) voidsetEnumValues(Map<String, String> enumMapping) voidsetHidden(boolean hidden) voidsetMandatory(boolean isMandatory) voidvoidsetRangeMax(int rangeMax) voidsetRangeMin(int rangeMin) voidsetSystemType(AMSystemType systemType) voidsetUnique(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
-