source: trunk/src/gcc/libjava/javax/naming/LinkRef.java@ 608

Last change on this file since 608 was 2, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 725 bytes
Line 
1/* Copyright (C) 2001 Free Software Foundation
2
3 This file is part of libgcj.
4
5This software is copyrighted work licensed under the terms of the
6Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
7details. */
8
9package javax.naming;
10
11import java.io.Serializable;
12
13/**
14 * @author Tom Tromey <[email protected]>
15 * @date May 16, 2001
16 */
17public class LinkRef extends Reference
18{
19 public LinkRef (Name name)
20 {
21 this (name.toString ());
22 }
23
24 public LinkRef (String name)
25 {
26 // FIXME: javax.naming.LinkRef?
27 super ("LinkRef", new StringRefAddr ("LinkAddress", name));
28 }
29
30 public String getLinkName ()
31 {
32 StringRefAddr sra = (StringRefAddr) get (0);
33 return (String) sra.getContent ();
34 }
35}
Note: See TracBrowser for help on using the repository browser.