1 package SOFA.SOFAnode.Run.Deployment; 2 3 6 7 public final class TechnologyDescriptor implements cz.cuni.sofa.lib.CDLEntity, cz.cuni.sofa.lib.Streamable { 8 public java.lang.String id = null; 9 public SOFA.SOFAnode.Run.Deployment.TechnologyProperty[] props = null; 10 11 public TechnologyDescriptor() {} 12 13 public TechnologyDescriptor(java.lang.String _id, SOFA.SOFAnode.Run.Deployment.TechnologyProperty[] _props) { 14 id = _id; 15 props = _props; 16 } 17 18 public void _read(cz.cuni.sofa.lib.InputStream is) throws java.io.IOException { 19 id = is.read_string(); 20 int len = is.read_long(); 21 props = new TechnologyProperty [len]; 22 for (int i=0; i<len; i++) { 23 props[i] = new TechnologyProperty(); 24 props[i]._read(is); 25 } 26 } 27 28 public void _write(cz.cuni.sofa.lib.OutputStream os) throws java.io.IOException { 29 os.write_string(id); 30 os.write_long(props.length); 31 for (int i=0;i<props.length; i++) { 32 props[i]._write(os); 33 } 34 } 35 } 36 | Popular Tags |