org.jafer.registry.uddi.model
Class TModel

java.lang.Object
  extended by org.jafer.registry.uddi.model.TModel

public class TModel
extends java.lang.Object

This class represents a specific TModel.This Class should never be directly instantiated.


Field Summary
private  java.util.Vector models
          Stores a reference to the set of actual TModels
private  java.lang.String name
          Stores a reference to the name of this TModel
 
Constructor Summary
TModel(java.util.Vector models, java.lang.String name)
          TModel Constructor
 
Method Summary
 org.uddi4j.datatype.binding.TModelInstanceDetails addTModel(org.uddi4j.datatype.binding.TModelInstanceDetails tmodels)
          Adds the TModel to the tmodels if it does not already exist
 org.uddi4j.util.TModelBag addToTModelBag(org.uddi4j.util.TModelBag tModelBag)
          This method adds this Tmodel to the tmodel bag supplied.
 java.util.List getActualModels()
          Gets the actual UDDI TModels for this model.
 java.lang.String getName()
          Get the name of this TModel
 org.uddi4j.datatype.binding.TModelInstanceDetails removeTModel(org.uddi4j.datatype.binding.TModelInstanceDetails tmodels)
          Removes the TModel to the tmodels if exists
 boolean supportsTModel(org.uddi4j.datatype.binding.TModelInstanceDetails tmodels)
          Checks to see if the TModel is supported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

models

private java.util.Vector models
Stores a reference to the set of actual TModels


name

private java.lang.String name
Stores a reference to the name of this TModel

Constructor Detail

TModel

public TModel(java.util.Vector models,
              java.lang.String name)
TModel Constructor

Method Detail

getName

public java.lang.String getName()
Get the name of this TModel

Returns:
The Tmodel name

getActualModels

public java.util.List getActualModels()
Gets the actual UDDI TModels for this model. This is not exposed on the interface to the caller and therfore should not be used outside of this framework.

Returns:
List of actual tmodels

addTModel

public org.uddi4j.datatype.binding.TModelInstanceDetails addTModel(org.uddi4j.datatype.binding.TModelInstanceDetails tmodels)
Adds the TModel to the tmodels if it does not already exist

Parameters:
tmodels - The TModelInstanceDetails list
Returns:
Updated TModelInstanceDetails list

removeTModel

public org.uddi4j.datatype.binding.TModelInstanceDetails removeTModel(org.uddi4j.datatype.binding.TModelInstanceDetails tmodels)
Removes the TModel to the tmodels if exists

Parameters:
tmodels - The TModelInstanceDetails list
Returns:
Updated TModelInstanceDetails list
Throws:
TModelDoesNotExistException

supportsTModel

public boolean supportsTModel(org.uddi4j.datatype.binding.TModelInstanceDetails tmodels)
Checks to see if the TModel is supported

Parameters:
tmodels - The TModelInstanceDetails list to check against
Returns:
True if the TModel is found

addToTModelBag

public org.uddi4j.util.TModelBag addToTModelBag(org.uddi4j.util.TModelBag tModelBag)
This method adds this Tmodel to the tmodel bag supplied. This is not exposed on the interface to the caller and therefore should not be used outside of this framework.

Parameters:
tModelBag - The tmodel bag to add tmodel to
Returns:
The updated tmodel bag