![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
Table 25 Factory Methods
• className is a fully-qualified name of the BOM JavaScript class. This must be a class managed by the given factory. From form action methods, the specific createXXX() method for a given class should be used.
• className is a fully-qualified name of the BOM JavaScript class. This must be a class managed by the given factory. The following methods are available on the class object returned from the getClass(className) method of a factory, or the getClass() method of a BOM JavaScript object instance.Table 26 BOM Class Methods
This array is the union of attribute names retrieved using getPrimitiveAttributeNames() and getComplexAttributeNames().
• attName: name of attribute.
• attName: name of attribute. Returns true if the attribute with the given name is a multi-valued attribute as defined in the BOM.
• attName: name of attribute. Returns true if the attribute with the given name is of a primitive type or enumeration. If it returns true, it will be a member of the array returned from getPrimitiveAttributeNames().Table 27 BOM Class Instance Methods
• attName: name of attribute.
• attName is primitive and single-valued: returns a value of type String, Number, Date, or Duration, depending on the specific type of attribute.
• attName is primitive and multi-valued: returns a JavaScript array containing the underlying values.
• attName is complex and single-valued: returns an instance of the BOM JavaScript class associated with the attribute.
• attName is complex and multi-valued: returns a List object containing the underlying values.
• attName: name of attribute.
• value: new value of attribute.
• attName is primitive and single-valued: should be a value of type String, Number, Date, or Duration, depending on the specific type of attribute.
• attName is primitive and multi-valued: should be a JavaScript array containing the underlying values.
• attName is complex and single-valued: should be an instance of the BOM JavaScript class associated with the attribute.
• attName is complex and multi-valued: unsupported. In this case, the List object obtained from the object should be updated directly with additions or deletions.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |