Class CustomAttribute

java.lang.Object
org.netxms.client.objects.configs.CustomAttribute

public class CustomAttribute extends Object
Custom attribute class
  • Field Details

  • Constructor Details

    • CustomAttribute

      public CustomAttribute(NXCPMessage msg, long baseId)
      Constructor form NXCPMessage
      Parameters:
      msg - NXCP message
      baseId - base field ID
    • CustomAttribute

      public CustomAttribute(CustomAttribute src)
      Copy constructor
      Parameters:
      src - source object
    • CustomAttribute

      public CustomAttribute(String value, long flags, long inheritedFrom)
      Create custom attribute from scratch.
      Parameters:
      value - value
      flags - flags
      inheritedFrom - ID of NetXMS object this attribute was inherited from (0 for non-inherited attributes)
  • Method Details

    • getValue

      public String getValue()
      Returns:
      the value
    • getFlags

      public long getFlags()
      Returns:
      the flags
    • getSourceObject

      public long getSourceObject()
      Returns:
      the inheritedFrom
    • isRedefined

      public boolean isRedefined()
      If attribute is redefined
      Returns:
      true if redefined
    • isInherited

      public boolean isInherited()
      If attribute is inherited
      Returns:
      true if has source
    • isInheritable

      public boolean isInheritable()
      If attribute is inheritable
      Returns:
      true if inheritable flag
    • isConflict

      public boolean isConflict()
      If attribute is inheritable
      Returns:
      true if inheritable flag