TypeSchema Class
        
            Module: opcua.miscellaneous
Constructor
TypeSchema
        
                
                    (
        
        
        
        
        
        
        
        
            
        
            - 
                                
options 
Parameters:
- 
                                
optionsObject 
Item Index
Methods
computer_default_value
                    
                            
                                (
                    
                            
                                
                            
                    
                    
                    
                    
                    
                    
                    
                        
                    
                        - 
                                            
defaultValue 
Parameters:
- 
                                            
defaultValuethe default value
 
Returns:
                                            :
                                
                            findBuiltInType
                    find the Builtin Type that this
                    
                            
                                (
                    
                            
                                
                            
                    
                    
                    
                    
                    
                    
                    
                        
                    
                        - 
                                            
datatypeName 
Parameters:
- 
                                            
datatypeNameObject 
Returns:
                                            :
                                
                            initialize_value
                    
                            
                                (
                    
                            
                                
                            
                    
                    
                    
                    
                    
                    
                    
                        
                    
                        - 
                                            
value - 
                                            
defaultValue 
Parameters:
- 
                                            
valueObject - 
                                            
defaultValueObject 
Returns:
                                            :
                                
                            registerBasicType
                    
                            
                                (
                    
                    
                    
                    
                    
                    
                    
                    
                        
                    
                        - 
                                            
schema 
register a Basic Type , A basic type is new entity type that resolved to a SubType
Parameters:
- 
                                            
schemaObject- 
                                                        
nameString - 
                                                        
subtypeStringmandatory, the basic type from which the new type derives.
 - 
                                                        
[encode]Function optionaloptional,a specific encoder function to encode an instance of this type.
- 
                                                                    
value - 
                                                                    
streamStream 
 - 
                                                                    
 - 
                                                        
[decode]Function optionaloptional,a specific decoder function that returns the decode value out of the stream.
- 
                                                                    
[stream]Stream optional 
 - 
                                                                    
 - 
                                                        
[coerce]Function optionaloptional, a method to convert a value into the request type.
- 
                                                                    
valuethe value to coerce. 
 - 
                                                                    
 - 
                                                        
[random]Function optionaloptional, a method to construct a random object of this type
 - 
                                                        
[toJSONFunc]Function optionaloptional, a method to convert a value into the request type.
 
 - 
                                                        
 
Example:
:
registerBasicType({name:"Duration" ,subtype:"Double"});
            The NodeOPCUA API