1 7 8 package com.sun.corba.se.spi.extension ; 9 10 import org.omg.CORBA.Policy ; 11 import org.omg.CORBA.LocalObject ; 12 import com.sun.corba.se.impl.orbutil.ORBConstants ; 13 14 16 public class CopyObjectPolicy extends LocalObject implements Policy 17 { 18 private final int value ; 19 20 public CopyObjectPolicy( int value ) 21 { 22 this.value = value ; 23 } 24 25 public int getValue() 26 { 27 return value ; 28 } 29 30 public int policy_type () 31 { 32 return ORBConstants.COPY_OBJECT_POLICY ; 33 } 34 35 public org.omg.CORBA.Policy copy () 36 { 37 return this ; 38 } 39 40 public void destroy () 41 { 42 } 44 45 public String toString() 46 { 47 return "CopyObjectPolicy[" + value + "]" ; 48 } 49 } 50 | Popular Tags |