com.sap.ide.webdynpro.checklayer.model
Class ModelPPObserver

java.lang.Object
  |
  +--com.sap.ide.webdynpro.checklayer.model.ModelPPObserver

public class ModelPPObserver
extends java.lang.Object

Title: ModelPPObserver

Description: Utility class that can be used in order to get information about MainDevelopment objects a model consists of. A model can be queried for its DDIC MainDevelopment objects or the corresponding model and model class objects

Copyright: Copyright (c) 2004

Company: SAP AG

Version:
$Id: //tc/WebDynproGeneration/630_VAL_REL/src/_webdynpro_tools_checklayer/java/com/sap/ide/webdynpro/checklayer/model/ModelPPObserver.java#1 $

Constructor Summary
ModelPPObserver()
           
 
Method Summary
static com.sap.ide.metamodel.general.MainDevelopmentObject[] getDDICEntities(com.sap.ide.metamodel.webdynpro.model.Model model)
          Returns all dictionary entities referenced by the corresponding model.
static com.sap.ide.metamodel.general.MainDevelopmentObject[] getDDICEntities(com.sap.ide.metamodel.webdynpro.model.Model model, boolean queryUsedModels)
          Returns all dictionary entities referenced by the corresponding model.
static com.sap.ide.metamodel.general.MainDevelopmentObject[] getModelEntities(com.sap.ide.metamodel.webdynpro.model.Model model)
          Returns all model entities (ModelClass and Model objects) contained in the given model.
static com.sap.ide.metamodel.general.MainDevelopmentObject[] getModelEntities(com.sap.ide.metamodel.webdynpro.model.Model model, boolean queryUsedModels)
          Returns all model entities contained in the given model.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelPPObserver

public ModelPPObserver()
Method Detail

getModelEntities

public static com.sap.ide.metamodel.general.MainDevelopmentObject[] getModelEntities(com.sap.ide.metamodel.webdynpro.model.Model model)
Returns all model entities (ModelClass and Model objects) contained in the given model. In case the given model has a dependency to some other model, the corresponding model is also queried for its model entities. This is done recursively. In case a model is contained in an archive (maybe defined in some other DC) it is not returned. This method implicitly queries all used models.
Parameters:
model - the model to query
Returns:
the array of MainDevolopmentObjects. The array does only contain objects of type ModelClass and Model and does not contain any duplicates.

getModelEntities

public static com.sap.ide.metamodel.general.MainDevelopmentObject[] getModelEntities(com.sap.ide.metamodel.webdynpro.model.Model model,
                                                                                     boolean queryUsedModels)
Returns all model entities contained in the given model. In case the given model has a dependency to some other model, the corresponding model is also queried for its model entities. This is done recursively. In case a model is contained in an archive (maybe defined in some other DC) it is not returned.
Parameters:
model - the model to query
queryUsedModels - determines whether the model should be queried for its used models or not
Returns:
the array of MainDevolopmentObjects. The array does only contain objects of type ModelClass and Model and does not contain any duplicates.

getDDICEntities

public static com.sap.ide.metamodel.general.MainDevelopmentObject[] getDDICEntities(com.sap.ide.metamodel.webdynpro.model.Model model)
                                                                             throws com.sap.ide.metamodel.general.exception.LoadException
Returns all dictionary entities referenced by the corresponding model. In case the given model has a dependency to some other model, the corresponding model is also queried for its referenced DDIC objects. This is done recursively. In case a DDIC object is located in an archive (maybe defined in some other DC or a built in type, etc.) it is not returned. This method implicitly queries all used models.
Parameters:
model - the model to query for referenced DDIC objects
Returns:
the array of MainDevolopmentObjects. The array does only contain objects of type DtSimpleType, DtGeneralStructure or DtLogicalDictionary and does not contain any duplicates.
Throws:
LoadException -  

getDDICEntities

public static com.sap.ide.metamodel.general.MainDevelopmentObject[] getDDICEntities(com.sap.ide.metamodel.webdynpro.model.Model model,
                                                                                    boolean queryUsedModels)
                                                                             throws com.sap.ide.metamodel.general.exception.LoadException
Returns all dictionary entities referenced by the corresponding model. In case a DDIC object is located in an archive (maybe defined in some other DC, or a built in type, etc.) it is not returned.
Parameters:
model - the model to query for referenced DDIC objects
queryUsedModels - determines whether used model should be queried for DDIC objects or not
Returns:
the array of MainDevolopmentObjects. The array does only contain objects of type DtSimpleType, DtGeneralStructure or DtLogicalDictionary and does not contain any duplicates.
Throws:
LoadException -  


Copyright © 2005 SAP AG. All Rights Reserved.