public void write(OutputStream theStream) throws IOException, TrexException { theStream.writeString(itsName); theStream.writeEnum(itsType); }