1 20 21 package org.jacorb.naming.namemanager; 22 23 import org.omg.CosNaming.*; 24 import org.jacorb.naming.*; 25 26 27 public class BindNode 28 { 29 protected Binding binding; 30 protected String typeID; 31 public boolean matched; 32 public boolean used; 33 34 public BindNode(Binding b) 35 { 36 binding=b; 37 used=false; 38 } 39 public boolean equals(BindNode bnode) 40 { 41 return toString().equals(bnode.toString()); 42 } 43 public Binding getBinding() 44 { 45 return binding; 46 } 47 public NameComponent[] getName() 48 { 49 return binding.binding_name; 50 } 51 public String getTypeID() 52 { 53 return typeID; 54 } 55 public boolean isContext() 56 { 57 return binding.binding_type.value()==BindingType._ncontext; 58 } 59 public void setTypeID(String id) 60 { 61 typeID=id; 62 } 63 64 67 68 public String toString() 69 { 70 NameComponent[] name=binding.binding_name; 71 77 return name[name.length-1].id; 78 } 79 } 80 81 82 | Popular Tags |