Class CustomAttribute
java.lang.Object
org.netxms.client.objects.configs.CustomAttribute
Custom attribute class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longprotected longstatic final longstatic final longprotected longprotected String -
Constructor Summary
ConstructorsConstructorDescriptionCustomAttribute(String value, long flags, long inheritedFrom) Create custom attribute from scratch.CustomAttribute(NXCPMessage msg, long baseId) Constructor form NXCPMessageCopy constructor -
Method Summary
-
Field Details
-
INHERITABLE
public static final long INHERITABLE- See Also:
-
REDEFINED
public static final long REDEFINED- See Also:
-
CONFLICT
public static final long CONFLICT- See Also:
-
value
-
flags
protected long flags -
sourceObject
protected long sourceObject
-
-
Constructor Details
-
CustomAttribute
Constructor form NXCPMessage- Parameters:
msg- NXCP messagebaseId- base field ID
-
CustomAttribute
Copy constructor- Parameters:
src- source object
-
CustomAttribute
Create custom attribute from scratch.- Parameters:
value- valueflags- flagsinheritedFrom- ID of NetXMS object this attribute was inherited from (0 for non-inherited attributes)
-
-
Method Details
-
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
-