KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jacorb > trading > db > simple > offers > ProxyPolicy


1
2 // Copyright (C) 1998-1999
3
// Object Oriented Concepts, Inc.
4

5 // **********************************************************************
6
//
7
// Copyright (c) 1997
8
// Mark Spruiell (mark@intellisoft.com)
9
//
10
// See the COPYING file for more information
11
//
12
// **********************************************************************
13

14 package org.jacorb.trading.db.simple.offers;
15
16
17 import java.io.*;
18 import java.util.*;
19 import org.omg.CosTrading.Policy;
20 import org.jacorb.trading.util.*;
21
22
23 public class ProxyPolicy implements Serializable
24 {
25     private String JavaDoc m_name;
26     private AnyValue m_value;
27
28     static final long serialVersionUID = 3388263412267007271L;
29
30     private ProxyPolicy()
31     {
32     }
33
34     public ProxyPolicy(Policy prop)
35     {
36     m_name = prop.name;
37     m_value = new AnyValue(org.jacorb.trading.TradingService.getORB(),prop.value);
38     }
39
40
41     public Policy describe()
42     {
43     Policy result = new Policy();
44
45     result.name = m_name;
46     result.value = m_value.getValue();
47
48     return result;
49     }
50 }
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Popular Tags