Class: FlexObject

FlexObject(flexSchemanon-null, classNamenon-null)

Represents a FlexVertex FlexObject.

Constructor

new FlexObject(flexSchemanon-null, classNamenon-null)

Parameters:
Name Type Description
flexSchema FlexSchema The FlexSchema this FlexObject belongs
className string The name of the class of this FlexObject

Classes

FlexObject

Members

attributes

Properties:
Name Type Description
attributes Object Returns this FlexObject's attributes

className

Properties:
Name Type Description
className string Returns the name of this FlexObject's class

objectKey

Properties:
Name Type Description
objectKey string Returns this FlexObject's ObjectKey

properties

Properties:
Name Type Description
properties Object Returns this FlexObject's properties

Methods

connectFrom(sourcenon-null, options)

Creates a FlexConnection from the source FlexObject to this FlexObject
Parameters:
Name Type Description
source FlexObject
options Object
Properties
Name Type Attributes Description
class string <optional>
The connection class to use for the FlexConnection
name string <optional>
The name to associate with the created connection (cannot be used with toName or fromName)
toName string <optional>
The to name to associate with the created connection (cannot be used with name)
fromName string <optional>
The from name to associate with the created connection (cannot be used with name)

connectTo(destinationnon-null, options)

Creates a FlexConnection from this FlexObject to the destination FlexObject
Parameters:
Name Type Description
destination FlexObject
options Object
Properties
Name Type Attributes Description
class string <optional>
The connection class to use for the FlexConnection
name string <optional>
The name to associate with the created connection (cannot be used with toName or fromName)
toName string <optional>
The to name to associate with the created connection (cannot be used with name)
fromName string <optional>
The from name to associate with the created connection (cannot be used with name)

getProperty(keynon-null)

Parameters:
Name Type Description
key string
Returns:
This FlexObject's property named key if it exists

isNew() → {boolean}

Returns:
True if this FlexObject has no ObjectKey defined yet
Type
boolean

setProperty(keynon-null, valuenon-null) → {FlexObject}

Sets a property on this FlexObject
Parameters:
Name Type Description
key string
value *
Returns:
This FlexObject
Type
FlexObject