1 package org.myoodb.core; 25 26 import java.io.*; 27 28 public abstract class AbstractRootContainer extends AbstractObjectContainer 29 { 30 private String m_name; 31 32 public AbstractRootContainer() 33 { 34 } 36 37 public AbstractRootContainer(int state, Identifier objectId, String name) 38 { 39 super(state, objectId); 40 41 m_name = name; 42 } 43 44 public String getName() 45 { 46 return m_name; 47 } 48 49 public String toString() 50 { 51 return "RootContainer [target="+getTarget()+", objectId="+getObjectId()+", name=" + getName() + ", cluster="+getCluster()+"]"; 52 } 53 54 public void writeExternal(ObjectOutput out) throws IOException 55 { 56 super.writeExternal(out); 57 58 out.writeObject(m_name); 59 } 60 61 public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException 62 { 63 super.readExternal(in); 64 65 m_name = (String ) in.readObject(); 66 } 67 } 68 | Popular Tags |