Package org.netxms.client.asset
Class AssetAttribute
java.lang.Object
org.netxms.client.asset.AssetAttribute
Assert attribute (element of asset management schema).
- 
Constructor SummaryConstructorsConstructorDescriptionCreate new attributeAssetAttribute(NXCPMessage msg, long baseId) Create attribute from server message.
- 
Method SummaryModifier 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- 
AssetAttributepublic AssetAttribute()Create new attribute
- 
AssetAttributeCreate attribute from server message.- Parameters:
- msg- NXCP message
- baseId- base field ID
 
 
- 
- 
Method Details- 
fillMessageFill message with attribute data- Parameters:
- msg- message to fill
 
- 
getName- Returns:
- the name
 
- 
setName- Parameters:
- name- the name to set
 
- 
getDisplayName- Returns:
- the displayName
 
- 
getEffectiveDisplayNameDisplay 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
 
- 
isMandatorypublic boolean isMandatory()- Returns:
- the isMandatory
 
- 
setMandatorypublic void setMandatory(boolean isMandatory) - Parameters:
- isMandatory- the isMandatory to set
 
- 
isUniquepublic boolean isUnique()- Returns:
- the isUnique
 
- 
setUniquepublic void setUnique(boolean isUnique) - Parameters:
- isUnique- the isUnique to set
 
- 
isHiddenpublic boolean isHidden()- Returns:
- the hidden
 
- 
setHiddenpublic void setHidden(boolean hidden) - Parameters:
- hidden- the hidden to set
 
- 
getAutofillScript- Returns:
- the autofillScript
 
- 
setAutofillScript- Parameters:
- autofillScript- the autofillScript to set
 
- 
getRangeMinpublic int getRangeMin()- Returns:
- the rangeMin
 
- 
setRangeMinpublic void setRangeMin(int rangeMin) - Parameters:
- rangeMin- the rangeMin to set
 
- 
getRangeMaxpublic int getRangeMax()- Returns:
- the rangeMax
 
- 
setRangeMaxpublic 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
 
 
-