Package com.dassault_systemes.catweb.databackend.dataType

   
Interface EnvironmentIF

 
Class Hierarchy
com.dassault_systemes.catweb.databackend.dataType.EnvironmentIF
Class Location

Framework : CATJDataAccessBasicModel

Module : PLAdatabackend

Class Description

public interface EnvironmentIF

Interface to know the different environments your data are organize with. For example, you use parts object, but some parts are targeted for the production, and others for the marketing. There will be an environment for producting parts and another for marketing parts. These different environments implies different attributes, for example the producting parts contains the attributes "name", "type", "maturity" and the marketing parts the attributes "name", "color". The end-users will choose which environment they need.
Though, there will be one PEType: "part" with two sets of PEAttributes for each environment. Every PENode or PELeaf of this type have to belong to one of this two environments.
The environment of a PENode or a PELeaf is contained in its Uuid. When the Driver will be called on getEnvironmentList(), there is two scenarios :

  1. if the returned array is null or empty then
    Call on showDialog()
    Call on getEnvironmentList()
    Call on getDisplayableInformation()
  2. else
    Call on getDisplayableInformation()
If there is no environment in your system, you can use a default implementation: defaultEnvironmentIFImpl. This default implementation sets the environment to "default".

See Also:
com.dassault_systemes.catweb.databackend.dataType.defaultEnvironmentIFImpl
Field Summary

Constructor Summary

Method Summary
String[] getEnvironmentList()
void showDialog()
String[] getDisplayableInformation()


Field Detail

Constructor Detail

Method Detail

getEnvironmentList

    String[] getEnvironmentList()

Returns the list of all environments


showDialog

    void showDialog()

The first time the Driver will call you on getEnvironmentList(), if you return null or an empty array, the Driver will call you on this method. After the return, it will call you again on getEnvironmentList().


getDisplayableInformation

    String[] getDisplayableInformation()

Returns some information displayed in the Message window.



Copyright © 2000, Dassault Systèmes. All rights reserved