jsdai.lang
Class SdaiContext

java.lang.Object
  extended byjsdai.lang.SdaiContext

public class SdaiContext
extends java.lang.Object

This class servers as context for several JSDAI operations. The main purposes of this class are the following:


Field Summary
 ASdaiModel domain
          Provides the domain for usedin in expressions, mapping operations, etc.
 java.util.Hashtable mapHashTable
          Provides hash table structure to store target data set for Express-X map schema
 SdaiModel mappedWorkingModel
          Provides ARM model used by some mapping operations.
 ASdaiModel mappingDomain
          Provides the mapping domain for mapping operations
 jsdai.dictionary.ESchema_definition schema
          Provides the schema for typeOf()
 jsdai.mapping.ESchema_mapping schemaMapping
          Provides schema mapping for Express-X operations.
 SdaiModel src_model
          Provides source model for Express-X map.
 SdaiModel tar_model
          Provides target model for Express-X map.
 jsdai.mapping.EUof_mapping[] uofs
          Provides uof list used by some mapping operations.
 SdaiModel working_model
          Used when temporory instances are needed to be created during the evaluation of expressions.
 ASdaiModel working_modelAggr
          Provides the aggregate of working models.
 
Constructor Summary
SdaiContext()
          Creates an empty SdaiContext.
SdaiContext(EEntity inst)
          Creates a new SdaiContext.
SdaiContext(jsdai.dictionary.ESchema_definition a_schema, ASdaiModel a_domain, SdaiModel a_working_model)
          Creates a new SdaiContext.
SdaiContext(SdaiModel workingModel)
          Creates a new SdaiContext based on working model.
 
Method Summary
 boolean isUofMapping(java.lang.String uofName)
          Returns true, if provided UOF is found in context's usable UOF's
 void setUofMappings(java.lang.String[] values)
          Sets the list of uofs for mapping operations.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

schema

public jsdai.dictionary.ESchema_definition schema
Provides the schema for typeOf()


domain

public ASdaiModel domain
Provides the domain for usedin in expressions, mapping operations, etc.


mappingDomain

public ASdaiModel mappingDomain
Provides the mapping domain for mapping operations


working_model

public SdaiModel working_model
Used when temporory instances are needed to be created during the evaluation of expressions. The non-temporary application model may be provided if needed. Working model is also used in some mapping operations.


working_modelAggr

public ASdaiModel working_modelAggr
Provides the aggregate of working models.


mappedWorkingModel

public SdaiModel mappedWorkingModel
Provides ARM model used by some mapping operations.


uofs

public jsdai.mapping.EUof_mapping[] uofs
Provides uof list used by some mapping operations.


schemaMapping

public jsdai.mapping.ESchema_mapping schemaMapping
Provides schema mapping for Express-X operations.


src_model

public SdaiModel src_model
Provides source model for Express-X map.


tar_model

public SdaiModel tar_model
Provides target model for Express-X map.


mapHashTable

public java.util.Hashtable mapHashTable
Provides hash table structure to store target data set for Express-X map schema

Constructor Detail

SdaiContext

public SdaiContext()
Creates an empty SdaiContext.


SdaiContext

public SdaiContext(EEntity inst)
            throws SdaiException
Creates a new SdaiContext.

Parameters:
inst - The entity instance to base the context on
Throws:
SdaiException - if an error occurs in underlying JSDAI operations

SdaiContext

public SdaiContext(SdaiModel workingModel)
            throws SdaiException
Creates a new SdaiContext based on working model.

Parameters:
workingModel - The working SdaiModel to base the context on
Throws:
SdaiException - if an error occurs in underlying JSDAI operations
Since:
3.6.0

SdaiContext

public SdaiContext(jsdai.dictionary.ESchema_definition a_schema,
                   ASdaiModel a_domain,
                   SdaiModel a_working_model)
            throws SdaiException
Creates a new SdaiContext.

Parameters:
a_schema - The schema definition of the context
a_domain - The domain of the context
a_working_model - The working model of the context
Throws:
SdaiException - if an error occurs in underlying JSDAI operations
Method Detail

isUofMapping

public boolean isUofMapping(java.lang.String uofName)
                     throws SdaiException
Returns true, if provided UOF is found in context's usable UOF's

Parameters:
uofName - The name uf UOF
Returns:
True if uof was found and false if uof was not found
Throws:
SdaiException - if an error occurs in underlying JSDAI operations

setUofMappings

public void setUofMappings(java.lang.String[] values)
                    throws SdaiException
Sets the list of uofs for mapping operations.

Parameters:
values - String array with the names of uofs
Throws:
SdaiException - if an error occurs in underlying JSDAI operations

Copyright © LKSoftWare GmbH, 1999-2008