NamedValueImpl.java revision 608:7e06bf1dcb09
1139776Simp/* 222521Sdyson * Copyright (c) 1996, 2003, Oracle and/or its affiliates. All rights reserved. 322521Sdyson * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4164829Srodrigc * 5164829Srodrigc * This code is free software; you can redistribute it and/or modify it 61541Srgrimes * under the terms of the GNU General Public License version 2 only, as 71541Srgrimes * published by the Free Software Foundation. Oracle designates this 81541Srgrimes * particular file as subject to the "Classpath" exception as provided 91541Srgrimes * by Oracle in the LICENSE file that accompanied this code. 101541Srgrimes * 111541Srgrimes * This code is distributed in the hope that it will be useful, but WITHOUT 121541Srgrimes * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 131541Srgrimes * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 141541Srgrimes * version 2 for more details (a copy is included in the LICENSE file that 151541Srgrimes * accompanied this code). 161541Srgrimes * 171541Srgrimes * You should have received a copy of the GNU General Public License version 181541Srgrimes * 2 along with this work; if not, write to the Free Software Foundation, 191541Srgrimes * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 201541Srgrimes * 211541Srgrimes * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 221541Srgrimes * or visit www.oracle.com if you need additional information or have any 231541Srgrimes * questions. 241541Srgrimes */ 251541Srgrimes/* 261541Srgrimes * Licensed Materials - Property of IBM 271541Srgrimes * RMI-IIOP v1.0 281541Srgrimes * Copyright IBM Corp. 1998 1999 All Rights Reserved 291541Srgrimes * 301541Srgrimes */ 311541Srgrimes 321541Srgrimespackage com.sun.corba.se.impl.corba; 331541Srgrimes 341541Srgrimesimport org.omg.CORBA.NamedValue; 3522521Sdysonimport org.omg.CORBA.Any; 3650477Speter 371541Srgrimesimport com.sun.corba.se.spi.orb.ORB ; 381541Srgrimes 391541Srgrimespublic class NamedValueImpl extends NamedValue 401541Srgrimes{ 41164829Srodrigc private String _name; 422979Swollman private Any _value; 4378906Sjhb private int _flags; 44164829Srodrigc private ORB _orb; 45164829Srodrigc 46164829Srodrigc public NamedValueImpl(ORB orb) 471541Srgrimes { 481541Srgrimes // Note: This orb could be an instanceof ORBSingleton or ORB 49164829Srodrigc _orb = orb; 50164829Srodrigc _value = new AnyImpl(_orb); 5177031Sru } 521541Srgrimes 53164829Srodrigc public NamedValueImpl(ORB orb, 5430354Sphk String name, 55164829Srodrigc Any value, 56164829Srodrigc int flags) 57164829Srodrigc { 58164829Srodrigc // Note: This orb could be an instanceof ORBSingleton or ORB 59164829Srodrigc _orb = orb; 60164829Srodrigc _name = name; 61164829Srodrigc _value = value; 62164829Srodrigc _flags = flags; 63164829Srodrigc } 64164829Srodrigc 6512595Sbde public String name() 66164829Srodrigc { 67164829Srodrigc return _name; 681541Srgrimes } 69164829Srodrigc 701541Srgrimes public Any value() 71164829Srodrigc { 72164829Srodrigc return _value; 73164829Srodrigc } 74164829Srodrigc 75164829Srodrigc public int flags() 76164829Srodrigc { 77164829Srodrigc return _flags; 78164829Srodrigc } 79164829Srodrigc} 80164829Srodrigc