Telogis.GeoBase.Class |
Contains functions for manipulating and validating managed GeoBase classes.
Name | Description | ||||||
---|---|---|---|---|---|---|---|
configure (Class Constructor, Array validList) | Registers a class as one with a configured constructor, and reads a list of valid configuration properties for that class. Once the class is thus registered, instances of it will be automatically checked for unrecognized configuration properties on construction. Arguments
| ||||||
create (Object instProps, Object staticProps) | Creates a new class by calling Class.extend without any base class. Arguments
Class - The class described by the supplied properties. | ||||||
createUnmanaged (Object instProps, Object staticProps) | Creates a new unmanaged class with the specified instance and static properties. Unmanaged classes lack the small construction overhead of managed ones, but cannot extend existing classes or be extended from. Arguments
Class - The unmanaged class described by the supplied properties. | ||||||
extend (Class Base, Object instProps, Object staticProps) | Creates a new class, and performs inheritance from a base class if specified. The resulting inheritance hierarchy is recorded in the static properties of each class. Arguments
Function - The class described by the specified properties and base class. | ||||||
getDNClassDesc (Function jsClass) | Looks up a registered .NET class description by its JavaScript constructor function. Arguments
Array - An array whose first element is the name of the .NET server-side class, and whose second element is the name of the .NET DLL in which it is defined. | ||||||
getDNPropName (Class Constructor, String jsName) | Looks up the property name for a .NET class that corresponds to a named property on its JavaScript equivalent. This relationship should have been previously recorded with a call to Class.serializeWith if the property names differ. Arguments
String - The .NET property name associated with Class.getDNPropName.jsName. | ||||||
getInstantiator (Class Class) | Gets the method used to instantiate the specified class during JSON deserialization. Arguments
Function - A function to be executed when the class is deserialized from a string of JSON text, used to initialize the members of a newly-created instance from the field values read from the JSON. This will be executed in the scope of the object being instantiated. | ||||||
getJSClass (Array dnClassDesc) | Looks up a registered JavaScript constructor from a description of its .NET analogue. Arguments
Function - The associated Javascript constructor, or null if none is present. | ||||||
getJSPropName (Class Constructor, String dnName) | Looks up the property name for a JavaScript class that corresponds to a named property on its .NET equivalent. This relationship should have been previously recorded with a call to Class.serializeWith if the property names differ. Arguments
String - The JavaScript property name associated with Class.getJSPropName.dnName. | ||||||
isConfigured (Class Class) | Determines whether a class has a configured constructor -- that is, one that takes a configuration object as an argument. Arguments
Boolean - True if Class.isConfigured.Class is configured; false otherwise. | ||||||
isSerializable (Class Class, String propName) | Determines whether a JavaScript class or instance property can be serialized in a call to Internal.JSON.serialize. Arguments
| ||||||
serializeAs (Function jsClass, String dnName, String dnAssembly) | Registers a JavaScript class as serializable by recording an association with a .NET class name and assembly. Arguments
| ||||||
serializeWith (Class Class, Array aliasTable) | Records a list of property name aliases from the client-side JavaScript class to its server-side .NET analogue. These are used to override the names of serialized properties for server communications involving the calling class. Note that the class this is called for need not be a managed class. Arguments
| ||||||
serializeWithout (Class Class, Array ignoreList) | Registers a list of property names that will not be serialized with the specified class when an instance of it is passed to Internal.JSON.serialize. Arguments
| ||||||
setInstantiator (Class Class, Function method) | Sets the method used to instantiate the specified class during JSON deserialization. Arguments
| ||||||
virtualize (Class Class, String virtualList) | Associates a list of virtual methods with a class, so that when this class is extended, the virtual methods must be implemented. If they are not, a warning is given. Arguments
|