
// Copyright (C) 1998-1999
// Object Oriented Concepts, Inc.

// **********************************************************************
//
// Copyright (c) 1997
// Mark Spruiell (mark@intellisoft.com)
//
// See the COPYING file for more information
//
// **********************************************************************

package jacorb.trading.db.simple.offers;


import java.io.*;
import java.util.*;
import org.omg.CosTrading.Policy;
import jacorb.trading.util.*;


public class ProxyPolicy implements Serializable
{
    private String m_name;
    private AnyValue m_value;

    static final long serialVersionUID = 3388263412267007271L;

    private ProxyPolicy()
    {
    }

    public ProxyPolicy(Policy prop)
    {
	m_name = prop.name;
	m_value = new AnyValue(jacorb.trading.TradingService.getORB(),prop.value);
    }


    public Policy describe()
    {
	Policy result = new Policy();

	result.name = m_name;
	result.value = m_value.getValue();

	return result;
    }
}




