KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jacorb > trading > db > pse > 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.pse.offers;
15
16
17 import java.util.*;
18 import org.omg.CosTrading.Policy;
19 import org.jacorb.trading.util.*;
20
21
22 public class ProxyPolicy
23 {
24   private String JavaDoc m_name;
25   private AnyValue m_value;
26
27
28   private ProxyPolicy()
29   {
30   }
31
32
33   public ProxyPolicy(Policy prop)
34   {
35     m_name = prop.name;
36     m_value = new AnyValue(prop.value);
37   }
38
39
40   public Policy describe()
41   {
42     Policy result = new Policy();
43
44     result.name = m_name;
45     result.value = m_value.getValue();
46
47     return result;
48   }
49 }
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Popular Tags