***  This class provides Binary Compatibility only, not Source Compatibility  ***

com.sas.services.information.metadata.dav
Class DAVFactory

com.sas.services.information.metadata.dav.DAVFactory

public class DAVFactory

DAVFactory manufactures objects from the com.sas.services.information.metadata.dav package. Given an objectType the factory constructs the class name and then calls the class constructor with the correct parameters.

Since:
1.0

Constructor Summary
DAVFactory()
           
 
Method Summary
static java.lang.Object narrow(com.sas.services.information.RepositoryData entity)
          Given an entity, work out the correct class name and then create an instance of that class to return.
static DAVEntityInterface newDAVEntity(java.lang.String objectType, java.lang.String reposId, RepositoryInterface repos)
          Create an instance of a sublass of DAVEntity.
 

Constructor Detail

DAVFactory

public DAVFactory()
Method Detail

newDAVEntity

public static DAVEntityInterface newDAVEntity(java.lang.String objectType,
                                              java.lang.String reposId,
                                              RepositoryInterface repos)
Create an instance of a sublass of DAVEntity. The value of the className is used to construct the name of the class to instantiate.

Parameters:
objectType - Object's type
reposId - The location of where the instance will be located in the repository
repos - The repository in which this instance is to be created
Returns:
DAVEntity An instance of a subclass of DAVEntity is returned

narrow

public static java.lang.Object narrow(com.sas.services.information.RepositoryData entity)
Given an entity, work out the correct class name and then create an instance of that class to return. In this case, the class will always be a subclass of com.sas.services.information.metadata.dav.DAVEntity.

The first step is to check the value of the resourcetype property. This gives us the basis for the class name.

Parameters:
entity - An entity (collection of properties).
Returns:
Object The instance of a class determined from the values of the entities' properties

***  This class provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2009 SAS Institute Inc. All Rights Reserved.