1 24 package org.objectweb.jalisto.se.impl.server.page; 25 26 import org.objectweb.jalisto.se.api.internal.JalistoObject; 27 import org.objectweb.jalisto.se.api.JalistoProperties; 28 import org.objectweb.jalisto.se.impl.InFileAddress; 29 import org.objectweb.jalisto.se.impl.server.page.Page; 30 import org.objectweb.jalisto.se.impl.server.page.info.PageInfo; 31 32 public class SystemPage extends Page { 33 public SystemPage(int size) { 34 super(size); 35 } 36 37 public void setIfa(InFileAddress ifa) { 38 super.setIfa(ifa); 39 this.ifa.setFileIndex(JalistoProperties.SYSTEM_INDEX); 40 } 41 42 public JalistoObject getClone() { 43 SystemPage clone = new SystemPage(getSize()); 44 clone.setIfa(getIfa()); 45 for (short i = 0; i < getSize(); i++) { 46 PageInfo infos = (PageInfo) getDataAt(i); 47 if (infos != null) { 48 clone.setDataAt(i, infos.getClone()); 49 } 50 } 51 return clone; 52 } 53 54 protected String pageName() { 55 return "SsP"; 56 } 57 58 static final long serialVersionUID = -7586477097964761459L; 59 } 60 | Popular Tags |