1 7 8 package com.sun.corba.se.impl.ior ; 9 10 import java.util.Iterator ; 11 import java.util.Arrays ; 12 13 public class ObjectAdapterIdArray extends ObjectAdapterIdBase { 14 private final String [] objectAdapterId ; 15 16 public ObjectAdapterIdArray( String [] objectAdapterId ) 17 { 18 this.objectAdapterId = objectAdapterId ; 19 } 20 21 23 public ObjectAdapterIdArray( String name1, String name2 ) 24 { 25 objectAdapterId = new String [2] ; 26 objectAdapterId[0] = name1 ; 27 objectAdapterId[1] = name2 ; 28 } 29 30 public int getNumLevels() 31 { 32 return objectAdapterId.length ; 33 } 34 35 public Iterator iterator() 36 { 37 return Arrays.asList( objectAdapterId ).iterator() ; 38 } 39 40 public String [] getAdapterName() 41 { 42 return (String [])(objectAdapterId.clone()) ; 43 } 44 } 45 | Popular Tags |