1 28 29 30 package org.objectweb.ccm.runtime; 31 32 import org.objectweb.corba.runtime.*; 33 34 37 public class FacetSet 38 implements java.io.Serializable 39 { 40 static final private String _class_name = "FacetSet"; 42 private Facet[] _elements; 43 44 public 46 FacetSet() 47 { 48 _elements = new Facet[0]; 50 } 51 52 public 54 FacetSet(Facet[] facets) 55 { 56 _elements = facets; 58 } 59 60 64 final public Facet 65 get(String name) 66 throws org.omg.Components.InvalidName 67 { 68 Facet[] facets = _elements; 69 for (int i=0;i<facets.length;i++) { 70 if (facets[i].name.equals(name)) { 71 return facets[i]; 72 } 73 } 74 75 throw new org.omg.Components.InvalidName(); 76 } 77 78 final public Facet 79 uncheckedGet(String name) 80 { 81 Facet[] facets = _elements; 82 for (int i=0;i<facets.length;i++) { 83 if (facets[i].name.equals(name)) { 84 return facets[i]; 85 } 86 } 87 88 return null; 90 } 91 } 92 | Popular Tags |