jsdai.lang
Class Implementation

java.lang.Object
  extended byjsdai.lang.SdaiCommon
      extended byjsdai.lang.Implementation

public final class Implementation
extends jsdai.lang.SdaiCommon

This class gives a general information on this SDAI implementation. The attributes contain only static information which do not change during runtime.

See Also:
"ISO 10303-22::7.4.2 implementation"

Field Summary
static int build
          The current build number of this implementation.
static java.lang.String copyright
          The copyright information.
static short major_version
          The major number of SDAI implementation version.
static short middle_version
          The middle number of SDAI implementation version.
static short minor_version
          The minor number of SDAI implementation version.
 
Method Summary
 java.lang.String getBindingVersion()
          Returns the version of the SDAI language binding for this implementation.
 int getDomainEquivalenceLevel()
          Returns the level of domain equivalence supported by this implementation.
 int getExpressionLevel()
          Returns the level of expression evaluation supported by this implementation.
 java.lang.Object getFeature(java.lang.String name)
          Gets JSDAI feature.
 int getImplementationClass()
          Returns the implementation class to which this implementation conforms.
 java.lang.String getLevel()
          Returns the software version level of this implementation.
 java.lang.String getName()
          Returns the name of the implementation as a String.
 java.lang.String getSdaiVersion()
          Returns the version of SDAI to which this implementation conforms.
 int getTransactionLevel()
          Returns the level of transaction supported by this implementation.
 void setFeature(java.lang.String name, int value)
          Sets JSDAI feature with the integer value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

build

public static final int build
The current build number of this implementation.

See Also:
Constant Field Values

copyright

public static final java.lang.String copyright
The copyright information.

See Also:
Constant Field Values

major_version

public static final short major_version
The major number of SDAI implementation version.


middle_version

public static final short middle_version
The middle number of SDAI implementation version.


minor_version

public static final short minor_version
The minor number of SDAI implementation version.

Method Detail

getName

public java.lang.String getName()
                         throws SdaiException
Returns the name of the implementation as a String.

Returns:
the name of this implementation.
Throws:
SdaiException - SS_NOPN, session is not open.

getLevel

public java.lang.String getLevel()
                          throws SdaiException
Returns the software version level of this implementation.

Returns:
a String specifying the software version level.
Throws:
SdaiException - SS_NOPN, session is not open.

getSdaiVersion

public java.lang.String getSdaiVersion()
                                throws SdaiException
Returns the version of SDAI to which this implementation conforms.

Returns:
a String specifying the version of SDAI.
Throws:
SdaiException - SS_NOPN, session is not open.

getBindingVersion

public java.lang.String getBindingVersion()
                                   throws SdaiException
Returns the version of the SDAI language binding for this implementation.

Returns:
a String specifying the version of the SDAI language binding.
Throws:
SdaiException - SS_NOPN, session is not open.

getImplementationClass

public int getImplementationClass()
                           throws SdaiException
Returns the implementation class to which this implementation conforms.

Returns:
an integer specifying the implementation class.
Throws:
SdaiException - SS_NOPN, session is not open.
See Also:
"ISO 10303-22::13.2 Implementations class specification"

getTransactionLevel

public int getTransactionLevel()
                        throws SdaiException
Returns the level of transaction supported by this implementation.

Returns:
an integer specifying the level of transaction.
Throws:
SdaiException - SS_NOPN, session is not open.
See Also:
"ISO 10303-22::13.1.1 Levels of transaction"

getExpressionLevel

public int getExpressionLevel()
                       throws SdaiException
Returns the level of expression evaluation supported by this implementation.

Returns:
an integer specifying the level of expression evaluation.
Throws:
SdaiException - SS_NOPN, session is not open.
See Also:
"ISO 10303-22::13.1.2 Levels of expression evaluation for validation and derived attributes"

getDomainEquivalenceLevel

public int getDomainEquivalenceLevel()
                              throws SdaiException
Returns the level of domain equivalence supported by this implementation.

Returns:
an integer specifying the level of domain equivalence.
Throws:
SdaiException - SS_NOPN, session is not open.
See Also:
"ISO 10303-22::13.1.5 Levels of domain equivalence support"

setFeature

public void setFeature(java.lang.String name,
                       int value)
Sets JSDAI feature with the integer value. List of features is implementation specific. If JSDAI implementation does not support feature with this name this method does nothing.
Example: SdaiSession.getSession().getSdaiImplementation() .setFeature("mapping-read-cache-size", 8096);

Parameters:
name - feature name
value - feature value

getFeature

public java.lang.Object getFeature(java.lang.String name)
Gets JSDAI feature.

Parameters:
name - feature name
Returns:
value of the feature or null if JSDAI implementation does not support feature with this name

Copyright © LKSoftWare GmbH, 1999-2008