1 2 5 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 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 |