1 16 package org.apache.cocoon.portal.pluto.om.common; 17 18 import java.util.Iterator ; 19 import java.util.Locale ; 20 21 import org.apache.pluto.om.common.Description; 22 import org.apache.pluto.om.common.DescriptionSet; 23 24 31 public class DescriptionSetImpl 32 extends AbstractSupportSet 33 implements DescriptionSet, java.io.Serializable , Support { 34 35 38 public Description get(Locale locale) { 39 Iterator iterator = this.iterator(); 40 while (iterator.hasNext()) { 41 Description desc = (Description)iterator.next(); 42 if (desc.getLocale().equals(locale)) { 43 return desc; 44 } 45 } 46 return null; 47 } 48 49 52 public void postBuild(Object parameter) throws Exception { 53 } 55 56 59 public void postLoad(Object parameter) throws Exception { 60 Iterator iterator = this.iterator(); 61 while (iterator.hasNext()) { 62 ((DescriptionImpl)iterator.next()).postLoad(parameter); 63 } 64 } 65 66 69 public void postStore(Object parameter) throws Exception { 70 } 72 73 76 public void preBuild(Object parameter) throws Exception { 77 } 79 80 83 public void preStore(Object parameter) throws Exception { 84 } 86 87 } 88 | Popular Tags |