Class AssetAttribute

java.lang.Object
org.netxms.client.asset.AssetAttribute

public class AssetAttribute extends Object
Assert attribute (element of asset management schema).
  • Constructor Details

    • AssetAttribute

      public AssetAttribute()
      Create new attribute
    • AssetAttribute

      public AssetAttribute(NXCPMessage msg, long baseId)
      Create attribute from server message.
      Parameters:
      msg - NXCP message
      baseId - base field ID
  • Method Details

    • fillMessage

      public void fillMessage(NXCPMessage msg)
      Fill message with attribute data
      Parameters:
      msg - message to fill
    • getName

      public String getName()
      Returns:
      the name
    • setName

      public void setName(String name)
      Parameters:
      name - the name to set
    • getDisplayName

      public String getDisplayName()
      Returns:
      the displayName
    • getEffectiveDisplayName

      public String getEffectiveDisplayName()
      Display name or name if display name is empty
      Returns:
      name that should be used as a display name
    • setDisplayName

      public void setDisplayName(String displayName)
      Parameters:
      displayName - the displayName to set
    • getDataType

      public AMDataType getDataType()
      Returns:
      the dataType
    • setDataType

      public void setDataType(AMDataType dataType)
      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

      public String getAutofillScript()
      Returns:
      the autofillScript
    • setAutofillScript

      public void setAutofillScript(String autofillScript)
      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

      public AMSystemType getSystemType()
      Returns:
      the systemType
    • setSystemType

      public void setSystemType(AMSystemType systemType)
      Parameters:
      systemType - the systemType to set
    • getEnumValues

      public Map<String,String> getEnumValues()
      Returns:
      the enumMapping
    • setEnumValues

      public void setEnumValues(Map<String,String> enumMapping)
      Parameters:
      enumMapping - the enumMapping to set