Class ValueCollection

  • java.lang.Object
    • java.util.AbstractMap<K,​V>
      • java.util.HashMap<java.lang.String,​IPrimitiveType>
        • com.thingworx.types.collections.ValueCollection
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      ValueCollection()  
    • Constructor Detail

      • ValueCollection

        public ValueCollection()
    • Method Detail

      • SetValue

        @ThingworxExtensionApiMethod(since={6,6})
        public void SetValue​(java.lang.String name,
                             java.lang.Object value,
                             BaseTypes baseType)
                      throws java.lang.Exception
        Throws:
        java.lang.Exception - If an error occurs
      • SetBooleanValue

        @ThingworxExtensionApiMethod(since={6,6})
        public void SetBooleanValue​(java.lang.String name,
                                    java.lang.Object value)
                             throws java.lang.Exception
        Throws:
        java.lang.Exception - If an error occurs
      • SetNumberValue

        @ThingworxExtensionApiMethod(since={6,6})
        public void SetNumberValue​(java.lang.String name,
                                   java.lang.Object value)
                            throws java.lang.Exception
        Throws:
        java.lang.Exception - If an error occurs
      • SetIntegerValue

        @ThingworxExtensionApiMethod(since={6,6})
        public void SetIntegerValue​(java.lang.String name,
                                    java.lang.Object value)
                             throws java.lang.Exception
        Throws:
        java.lang.Exception - If an error occurs
      • SetLongValue

        @ThingworxExtensionApiMethod(since={6,6})
        public void SetLongValue​(java.lang.String name,
                                 java.lang.Object value)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception - If an error occurs
      • SetImageValue

        @ThingworxExtensionApiMethod(since={6,6})
        public void SetImageValue​(java.lang.String name,
                                  java.lang.Object value)
                           throws java.lang.Exception
        Throws:
        java.lang.Exception - If an error occurs
      • SetTagsValue

        @ThingworxExtensionApiMethod(since={6,6})
        public void SetTagsValue​(java.lang.String name,
                                 java.lang.Object value)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception - If an error occurs
      • SetInfoTableValue

        @ThingworxExtensionApiMethod(since={6,6})
        public void SetInfoTableValue​(java.lang.String name,
                                      java.lang.Object value)
                               throws java.lang.Exception
        Throws:
        java.lang.Exception - If an error occurs
      • SetDateTimeValue

        @ThingworxExtensionApiMethod(since={6,6})
        public void SetDateTimeValue​(java.lang.String name,
                                     java.lang.Object value)
                              throws java.lang.Exception
        Throws:
        java.lang.Exception - If an error occurs
      • SetStringValue

        @ThingworxExtensionApiMethod(since={6,6})
        public void SetStringValue​(java.lang.String name,
                                   java.lang.Object value)
                            throws java.lang.Exception
        Throws:
        java.lang.Exception - If an error occurs
      • SetLocationValue

        @ThingworxExtensionApiMethod(since={6,6})
        public void SetLocationValue​(java.lang.String name,
                                     java.lang.Object value)
                              throws java.lang.Exception
        Throws:
        java.lang.Exception - If an error occurs
      • SetVec2Value

        @ThingworxExtensionApiMethod(since={7,1})
        public void SetVec2Value​(java.lang.String name,
                                 java.lang.Object value)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception - If an error occurs
      • SetVec3Value

        @ThingworxExtensionApiMethod(since={7,1})
        public void SetVec3Value​(java.lang.String name,
                                 java.lang.Object value)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception - If an error occurs
      • SetVec4Value

        @ThingworxExtensionApiMethod(since={7,1})
        public void SetVec4Value​(java.lang.String name,
                                 java.lang.Object value)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception - If an error occurs
      • SetThingCodeValue

        @ThingworxExtensionApiMethod(since={7,1})
        public void SetThingCodeValue​(java.lang.String name,
                                      java.lang.Object value)
                               throws java.lang.Exception
        Throws:
        java.lang.Exception - If an error occurs
      • SetXMLValue

        @ThingworxExtensionApiMethod(since={6,6})
        public void SetXMLValue​(java.lang.String name,
                                java.lang.Object value)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception - If an error occurs
      • SetJSONValue

        @ThingworxExtensionApiMethod(since={6,6})
        public void SetJSONValue​(java.lang.String name,
                                 java.lang.Object value)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception - If an error occurs
      • getJSONSerializedValue

        @Deprecated
        @ThingworxExtensionApiMethod(since={6,6},
                                     deprecatedSince={8,4})
        public java.lang.Object getJSONSerializedValue​(java.lang.String name)
                                                throws java.lang.Exception
        Deprecated.
        no replacement


        Gets the JSON representation of the IPrimitiveType property having the specified name.
        Parameters:
        name - the name of the value to retrieve
        Returns:
        the value, or null if no value with the specified name exists
        Throws:
        java.lang.Exception - if an exception occurs
      • toJSONTyped

        @Deprecated
        @ThingworxExtensionApiMethod(since={6,6},
                                     deprecatedSince={8,4})
        public org.json.JSONObject toJSONTyped​(DataShapeDefinition dataShapeDefinition)
                                        throws java.lang.Exception
        Deprecated.
        no replacement


        Gets the JSON representation of this collection, populating the resulting JSON object only with properties whose names match the Fields within the specified DataShapeDefinition. If a value within this collection is null, then no entry for that value will be added to the returned JSON object, even if its name matches a Field within the DataShapeDefinition.
        Parameters:
        dataShapeDefinition - contains the Fields governing how the returned JSON object is populated
        Returns:
        a non-null JSON object containing only those properties from this collection whose names match Field names within the specified DataShapeDefinition
        Throws:
        java.lang.Exception - if an error occurs
      • toJSON

        @Deprecated
        @ThingworxExtensionApiMethod(since={6,6},
                                     deprecatedSince={8,4})
        public org.json.JSONObject toJSON()
                                   throws java.lang.Exception
        Deprecated.
        no replacement


        Returns a JSON representation of this ValueCollection.
        Returns:
        a JSON object
        Throws:
        java.lang.Exception - if an error occurs