Package com.thingworx.types
Class NamedObject
- java.lang.Object
-
- com.thingworx.types.NamedObject
-
- All Implemented Interfaces:
IDiffableObject
,INamedObject
,java.io.Serializable
- Direct Known Subclasses:
AlertDefinition
,ConfigurationTableDefinition
,DataShapeDefinition
,EventDefinition
,FieldDefinition
,OrganizationalUnit
,PersistableNamedObject
,ServiceDefinition
@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public abstract class NamedObject extends java.lang.Object implements INamedObject, java.io.Serializable, IDiffableObject
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Comparator<NamedObject>
NAME_COMPARATOR
Comparator used to compare the names of twoNamedObjects
.
-
Constructor Summary
Constructors Constructor Description NamedObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDescription()
java.lang.String
getName()
void
setDescription(java.lang.String value)
void
setName(java.lang.String value)
ValueCollection
toValueCollection()
-
-
-
Field Detail
-
NAME_COMPARATOR
public static final java.util.Comparator<NamedObject> NAME_COMPARATOR
Comparator used to compare the names of twoNamedObjects
.Please note that this Comparator considers
null
instances to be less than non-null
instances. Likewise, this Comparator also considersnull
name values to be less than non-null
name values.- See Also:
getName()
-
-
Method Detail
-
getName
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String getName()
- Specified by:
getName
in interfaceINamedObject
-
setName
@ThingworxExtensionApiMethod(since={6,6}) public void setName(java.lang.String value)
-
getDescription
@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String getDescription()
- Specified by:
getDescription
in interfaceINamedObject
-
setDescription
@ThingworxExtensionApiMethod(since={6,6}) public void setDescription(java.lang.String value)
-
toValueCollection
@ThingworxExtensionApiMethod(since={6,6}) public ValueCollection toValueCollection()
-
-